parsing PHP in header template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frank47
    Member
    • Jun 2003
    • 88

    parsing PHP in header template

    First, I have searched the forums, been through many pages, and am still having problems - I must be doing something really STUPID. Can you see what I am doing wrong?

    Header template:
    <!--\HEADER-->
    <!--NAVIGATION-->
    $navigation
    <!--NAVIGATION-->
    <!--SPACERS-->


    phpinclude_start:

    ob_start();
    include('/home/xxxx/www/templates/navigation.php');
    $navigation = ob_get_contents();
    ob_end_clean();


    The include file has the full path. Have tried with other paths as well. Navigation.php is simple an image at this stage as I have not added the navigation:

    ../templates/navigation.php:

    <!--NAVIGATION-->
    <TR>
    <TD COLSPAN=7><IMG SRC="http://www.xxx.com/images/layout_10.jpg" WIDTH=780 HEIGHT=46></TD></TR>
    <!--NAVIGATION-->

    So the php script can't be interferring with anything

    Any ideas as to why thsi bloody thingy won't work woiuld be appreciated

    Thanx
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    why not just put http://www.xxx.com/images/layout_10.jpg into the header? instead of trying to remotely call it?

    have you tried getting it from a web url?

    Comment

    • frank47
      Member
      • Jun 2003
      • 88

      #3
      Simply because the image is JUST a PLACEHOLDER and will be replaced with a navigation system, probably flash, and because this navigation is being called by a host of different scripts. Therefore, it needs to be remotely called or I have to have a completely separate navigation for vb.

      Yes, tried complete URL, same thing

      Comment

      • frank47
        Member
        • Jun 2003
        • 88

        #4
        Come on, doesn't anyone have any ideas? This has got to be some stupid little error or something

        Comment

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