View Full Version : Looking Simple template Include ..
CRego3D
10-27-2002, 02:10 AM
I am lookign for somehting that you PHP gods might be able to help me with
I am lookign to include a teamplate in a specific forum (above the threads)
somethign that would say "if forumif=XX show $template_name"
is this easy to do ? :) .. I coudl create a second style, but when you have multiple skins it becomes inpractical ;)
cheers
DrkFusion
10-27-2002, 02:35 AM
Open forumdisplay.php and find:
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
?>
above it add
// Get Show template for Forumid XX
$showbitifid='';
if ($forumid == 'XX') {
eval("\$showbitifid = \"".gettemplate('template_name')."\";");
}
// End -Arunan
Replace XX with the forum id, and template_name with the actualy name of the template.
Open the Forum Display template and add
$showbitifid
Where ever you want the template to show when $forumid=XX
Good Luck
-Arunan
DrkFusion
10-27-2002, 02:42 AM
Here is a little screenshot :)
-Arunan
CRego3D
10-27-2002, 03:19 AM
excellent !!! .. will try and let you know inf a few :)
CRego3D
10-27-2002, 03:28 AM
Works like a champ :D .. it will be on yaxay v.2 ;)
thank you very much :)
DrkFusion
10-27-2002, 12:02 PM
No problem, looking forward to yaxay 2
-Arunan
Dean C
10-27-2002, 02:44 PM
Aren't we all ;)
- miSt
Dean C
10-27-2002, 02:49 PM
Carlos i just had a good idea which i think you'll find extrememly useful to use on yaxay...
I'd install this hack by Logician which allows you to have conditionals in your templates based on forumid's etc... Which will prevent you from having to edit the php code every time you want to do template includes :D
Take a look at it here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=43325
If you need to know how to do something with the conditionals hack then simply ask Logician and he'll help you within 1-2 days :D
Regards
- miSt
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.