expatscz
11-17-2004, 10:19 PM
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.
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.