Announcement

Collapse
No announcement yet.

templates and php code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • templates and php code

    Is it possible to put php code inside of a template, even though the templates are all HTML?

  • #2
    Originally posted by jrbush82
    Is it possible to put php code inside of a template, even though the templates are all HTML?
    Short answer: No

    Short-ish answer: the script which calls the template is already writing HTML when it reads it so it will not want to see new php code. You can, however, use variables from the calling script or global variables in your templates.

    Comment


    • #3
      jrbush82, can you go to http://www.vbulletin.com/members/forums.php and enter your email address. You will need your customer number and password you recieved when you purchased vBulletin.
      Scott MacVicar

      My Blog | Twitter

      Comment

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