Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Feb 2005, 05:55
Takamine334 Takamine334 is offline
 
Join Date: Aug 2004
variable help...I'm lost

I created a template called "footer2". I need it to contain all the copyrights of Jelsoft and the copyrights of a certain hack. I am using this for a portal homepage. The forumhome page contains the regular $footer variable.

I'm having problems getting the $footer2 to show up. How does one implement variables so they show up on certain pages?

I'm thinking this has to do with global.php, but I don't know where to start.

just something I could read, perhaps would really help. I'll do all the homework, I just need to get pointed in the right direction.

Last edited by Takamine334; 27 Feb 2005 at 06:07. Reason: Automerged Doublepost
Reply With Quote
  #2  
Old 27 Feb 2005, 06:14
noppid noppid is offline
 
Join Date: Mar 2003
eval('$TEMPLATE_VAR = "' . fetch_template('TEMPLATE_NAME') . '";');

$TEMPLATE_VAR in final template.

Don't forget to cache it.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #3  
Old 27 Feb 2005, 06:23
Takamine334 Takamine334 is offline
 
Join Date: Aug 2004
where in global.php? anywhere?

also, what do you mean by "cache it"?

I assume $TEMPLATE_VAR & 'TEMPLATE_NAME' are usually the same for simplicity purposes.

Originally Posted by noppid
eval('$TEMPLATE_VAR = "' . fetch_template('TEMPLATE_NAME') . '";');

$TEMPLATE_VAR in final template.

Don't forget to cache it.
hmmm....just tried it and it's not showing up.

Last edited by Takamine334; 27 Feb 2005 at 06:33. Reason: Automerged Doublepost
Reply With Quote
  #4  
Old 27 Feb 2005, 11:23
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Real name: Michael Morris
Originally Posted by Takamine334
where in global.php? anywhere?

also, what do you mean by "cache it"?

I assume $TEMPLATE_VAR & 'TEMPLATE_NAME' are usually the same for simplicity purposes.



hmmm....just tried it and it's not showing up.
You have to put that code in PHPINCLUDE_START. Read the tutorial linked from my sig for the answers you seek
Reply With Quote
  #5  
Old 01 Mar 2005, 21:46
Takamine334 Takamine334 is offline
 
Join Date: Aug 2004
cool, thanks Michael!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:00.

Layout Options | Width: Wide Color: