![]() |
Template Help!
Ok, I have a template I am using as my base template, then I have sub templates.. there are put into the base template with variables like $tplink.. but when I put them in it shows under the $footer... how would I get it to show correctly?
the link I use is something like this $tplink = eval("dooutput(\"".gettemplate("temp_under_2")."\" );"); I am lost and need help :smoke: |
Did u tried this?
eval("\$tplink .= \"".gettemplate("temp_under_2")."\";"); |
Yes, and nothing showed up at all.
|
COme on FireFly.. you do pro, can ya give me a hand ;)
|
give me more details neo. i should be able to give you a straight answer. ;)
what exacly you try to do? btw, you cannot use the function dooutput(), because it calls the headers twice on the same page. that's a no no.. :) |
well in a template I have...
example: <html> $headrer $tplink $footer </html> I want the $tplink to be another template.. but when I try and make it a variable.. it only puts it at the bottom and the coe that Lesane posted doesnt show anything at all... how can I get it to work G funk |
forum/global.php
1. find this code: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
all you have to do now is place your $tplink variable, wherever you want (except header and footer). bam.. you are done.. (did you liked that bam thing?) ;) |
YOU THE MAN!!!! :D Thanks
|
ur more then welcome neo.. :)
|
OK I am having the same problem.. here is the code I am using...
So where is my question and what I am trying to do in short This is in members.php --- if ($action=="custom") { $templatesused = "customize_1,customize_2,customize_3"; include("./global.php"); eval("dooutput(\"".gettemplate("customize_1")."\") ;"); if ($bbuserinfo[cpbenabled]!=0) { eval("\$cpjoin .= \"".gettemplate("customize_2")."\";"); } else { eval("\$cpjoin .= \"".gettemplate("customize_3")."\";"); } } --- Now I want to put $cpjoin in customize_1 template, so the if cpbenabled statment will have two different out comes and show two different things. But when I use this code it shows nothing either way.. do you know where my problem is? Thanks for your time - Neo |
All times are GMT. The time now is 09:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|