How can I include PHP code in a template?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leon Calder
    Senior Member
    • Apr 2006
    • 193
    • 3.6.x

    How can I include PHP code in a template?

    I need to define this varible as the following:
    PHP Code:
    $gamertag str_replace(' ','+'$userinfo[field6]); 
    however when I put it in a template it doesn't solve my problem

    is there a special way of doing this?
    Gaming Forums: http://www.gamernade.com/
    Xbox360 Gamercards: http://www.360sigs.com/
    Portfolio: http://www.leoncalder.com/
  • Floris
    Senior Member
    • Dec 2001
    • 37767

    #2
    You can not use php in a template.

    Add $gamertag to the template.

    And add the code from your first post in a plugin that points to the right hook.

    Comment

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