The Arcive of vBulletin Modifications Site. |
|
Template Help! Details »»
|
|||||||||||||||||||||||||
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: Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Did u tried this?
eval("\$tplink .= \"".gettemplate("temp_under_2")."\";"); |
|
#3
|
||||
|
||||
|
Yes, and nothing showed up at all.
|
|
#4
|
||||
|
||||
|
COme on FireFly.. you do pro, can ya give me a hand
|
|
#5
|
||||
|
||||
|
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..
|
|
#6
|
||||
|
||||
|
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 |
|
#7
|
||||
|
||||
|
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?)
|
|
#8
|
||||
|
||||
|
YOU THE MAN!!!!
Thanks
|
|
#9
|
||||
|
||||
|
ur more then welcome neo..
|
|
#10
|
||||
|
||||
|
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 |
![]() |
|
|