The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi there,
I have been reading on how to include a conditional statement so I can display a different template depending on the forum number. I'm using this method: <if condition="$foruminfo[forumid] == 1">$forum_1</if> And to parse the template, I've added to phpinclude_start: eval('$forum_1 = "' . fetch_template('forum_1') . '";'); My question is, if I had 60 forums and then added the above IF statement 60 times and also included the eval 60 times, would this be a huge load on the system? Is there an easier way to do this? All I really want to do, is this: <? include("$foruminfo[forumid].php"); ?> This way I could just have 60 php giles on my server, which are easier to edit. Apparently I can't do this with VB. Am I making sense? I hope so. Please help if you can- 10,000 users depend on getting this right! Regards, Martin. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|