$20 epass to anyone that can...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    I have to go potty
    • Aug 2002
    • 55817

    #1

    $20 epass to anyone that can...

    show me how to call a php script into the header file in vbulletin a normal php call inst working.
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


    My Newest Theme
  • jeffrey
    Confirmed User
    • Jul 2004
    • 1864

    #2
    Code:
    ob_start(); 
    require("/path/to/include/file"); 
    $file = ob_get_contents(); 
    ob_end_clean();
    add to 'phpinclude' template

    Replace '/path/to/include/file' with the path to the file you want to include.
    Then put '$file' in the templates where you want your included file to display



    Hope that helps took me forever to figure out.
    Coming Soon!

    Comment

    • jeffrey
      Confirmed User
      • Jul 2004
      • 1864

      #3
      my epass id is jeff000 if you feel I deserved it Merry Xmas either way
      Coming Soon!

      Comment

      • BruceM
        Confirmed User
        • Jul 2001
        • 4084

        #4
        Say "Hey php script get into the header file!"
        SellHealth - Sell Herbal Sex Enhancers, HGH Releasers and more!
        Skype: brucemorrey

        Comment

        • TheMob
          Confirmed User
          • Jan 2003
          • 8584

          #5
          why not just..

          <? php

          $include = 'file path slash file name dot php'

          ?>

          Comment

          • jeffrey
            Confirmed User
            • Jul 2004
            • 1864

            #6
            Originally posted by TheMob
            why not just..

            <? php

            $include = 'file path slash file name dot php'

            ?>
            cause its not jsut a php file, you have to put it in a template.
            Coming Soon!

            Comment

            • TheMob
              Confirmed User
              • Jan 2003
              • 8584

              #7
              Originally posted by jeffrey
              cause its not jsut a php file, you have to put it in a template.
              ah ;) what if you added the simple include to the actual header.php file?

              Comment

              • jeffrey
                Confirmed User
                • Jul 2004
                • 1864

                #8
                Originally posted by TheMob
                ah ;) what if you added the simple include to the actual header.php file?

                then it might not be in the right spot after all the other templates load
                and you cant just change everything there, cuase it will mess up the placement of everything else.

                besides, how hard is adding the above code :D


                change '$file' to like '$file1' etc if you have more then one thing you want to include.
                Coming Soon!

                Comment

                Working...