Including PHP in templates?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rebby
    Senior Member
    • Mar 2001
    • 220
    • 2.3.3

    Including PHP in templates?

    Can PHP be included in templates? If so, are any special excapes required (for example, do i need to use "<?" or "<?php" and "?>")?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74170

    #2
    You can only include PHP in the phpinclude template. It won't work in any other template...
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • rebby
      Senior Member
      • Mar 2001
      • 220
      • 2.3.3

      #3
      Originally posted by Wayne Luke
      You can only include PHP in the phpinclude template. It won't work in any other template...
      that's what i was afraid of but... i can set some variables there and referance them in another template... thanks.

      Comment

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