PHPNuke layout w/ vB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • _
    Member
    • Sep 2000
    • 57

    PHPNuke layout w/ vB

    Does anyone know how to add in the header.php & footer.php from phpnuke into vB? & could you tell how to do it?

    I've tried turning on PHP parsing in header & footer & adding in: include ("header.php"); & footer...

    But I get an error in global.php

    Help?

    Thanks.
  • wajones
    Senior Member
    • Jul 2000
    • 458

    #2
    Originally posted by _
    Does anyone know how to add in the header.php & footer.php from phpnuke into vB? & could you tell how to do it?

    I've tried turning on PHP parsing in header & footer & adding in: include ("header.php"); & footer...

    But I get an error in global.php

    Help?

    Thanks.
    I am doing it at http://www.purecrap.com/nuke2vb by inserting the following into vB's header template

    if ($action!="clearcookies"
    and $action!="login"
    and $action!="move"
    and $action!="prune"
    and $action!="addmember"
    and $action!="useroptions"){
    if(!isset($mainfile)) { require("mainfile.php"); }
    include ('header.php');
    }

    There maybe more $actions you have to excude to avoid header errors but I haven't found them yet.

    In the footer template you should be able to just add

    if(!isset($mainfile)) { require("mainfile.php"); }
    include ('footer.php');

    I have tested the footer thing...

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...