new templates and global.php ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • George L
    Former vBulletin Support
    • May 2000
    • 32996
    • 3.8.x

    new templates and global.php ?

    i have a question that goes back to making custom templates and adding the additional code to the global.php file:

    okay in global.php there's only one instance of fivelinks
    Code:
    eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");
    i want to add a second alternative fivelinkstxt template to use... so can i just add another line below this so it's like
    Code:
    eval("\$fivelinks = \"".gettemplate("fivelinks")."\";");
    eval("\[b]$fivelinks-txt[/b] = \"".gettemplate("[b]fivelinks-txt[/b]")."\";");
    ?

    is it the same for header and footer in global.php that i can add a second line under it ?
    Code:
    eval("\$header = \"".gettemplate("header")."\";");
    Code:
    eval("\$footer = \"".gettemplate("footer")."\";");
    i.e. $header2
    Code:
    eval("\$header = \"".gettemplate("header")."\";");
    eval("\[b]$header2[/b] = \"".gettemplate("[b]header2[/b]")."\";");
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]
  • Mike Sullivan
    Former vBulletin Developer
    • Apr 2000
    • 13327
    • 3.6.x

    #2
    Yup, exactly.

    Although I'm not sure how PHP will handle $fivelinks-txt as a variable - change it to $fivelinksTXT to be sure.

    Comment

    • George L
      Former vBulletin Support
      • May 2000
      • 32996
      • 3.8.x

      #3
      okay thanks .... i converted the original fivelinks template into a forum news box so needed another fivelinks template
      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
      :: Nginx SPDY SSL - World Flags Demo [video results]
      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

      Comment

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