View Full Version : Linking Templates
Trovador
01-25-2005, 07:05 PM
Hello!
Im trying to link a template from a different one..
What I mean is if I can have the Forumhome linked to a template with the name forumhome2 for instance.
I was wondering if this is possible.
Thanks for the help.
Jolten
01-25-2005, 07:16 PM
It's possible except you'd need to define the template and it's variables in the php file
Trovador
01-25-2005, 08:49 PM
But how exactly should I do that?, could you please give me a small example of it? Thanks again :nervous:
Andreas
01-25-2005, 08:55 PM
eval('$forumhome2 = "' . fetch_femplate('forumhome2') . '";');
Assuming that you put this in index.php before template forumhome is being used you can put $forumhome2 in template forumhome and the content will appear there - if this is what you want.
Also make sure that the template is being cached.
Trovador
01-25-2005, 09:46 PM
But to which Url should I link the Forumhome to Forumhome2? Should I just put a link that says "go to forumhome2" in order to get the template loaded?. Thanks for everything
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.