No announcement yet.

Adding PHP to templates?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding PHP to templates?

    I want to add the following the vBulletin's footer:

    PHP Code:
    include ("http://www.adventuregamers/com/banners/");
    show_banner ($li,1); ?>
    However that doesnt'seem to work. Is it possible to use PHP in the templates?

  • #2
    No, templates aren't parsed for PHP code. You could put that in the phpinclude and assign show_banner to a variable, then call that banner from within your footer template.


    • #3
      When I write this in phpinclude:

      PHP Code:
      include ("");
      $insertbanner show_banner($li,1); 
      the banner simply shows up at the top, instead of in the footer where I placed $insertbanner
      what's wrong?

      P.S. This also shows up after a while under the banner:

      Warning: Cannot add header information - headers already sent by (output started at in /home/sites/site55/web/forums/admin/functions.php on line 1187
      Last edited by marek; Sun 10 Jun '01, 7:06am.


      • #4
        Hi Chris

        And now I only wont filling this variable if the user get the
        index.php for a fine homepage and i dont want doing the code for each *.php get.
        What can i do.

        I had included my code in the index.php and fill a variable but when I use this variable in the forumhome-template - dont work.

        Can you help me?


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