Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Jun 2002, 05:36
JAC JAC is offline
 
Join Date: May 2002
Setting PHP Variables

If I set a variable in "forumdisplay.php" should I be able to access it in any of the templates called by "forumdisplay.php"? Because I have tried and not been able to.
Reply With Quote
  #2  
Old 08 Jun 2002, 06:39
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
You should be able to.

Where did you set the variable and where are you using it?
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #3  
Old 08 Jun 2002, 14:44
JAC JAC is offline
 
Join Date: May 2002
I set it right after the moderator section in "forum_display.php" around line 119, and I'm trying to use it in "forumdisplay_forumbit_level1_post" .

Also where is the "$forum[moderators]" variable set at in the code, I've searched everywhere and can't find it.
Reply With Quote
  #4  
Old 08 Jun 2002, 15:45
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
(1) Globalize the variable name in the makeforumbit() function, in that same file.

(2) Here:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #5  
Old 08 Jun 2002, 19:07
JAC JAC is offline
 
Join Date: May 2002
Worked Perfectly
Thanks A Bunch
Reply With Quote
  #6  
Old 13 Jun 2002, 00:10
conductorchris conductorchris is offline
 
Join Date: Jun 2002
I'm having a similar problem: I appended an image swapping script to the global.php file and the variables are not being read by the header template: <img src="<?echo $imgsrc;?>" >

What does it mean to globalize the variable name?

Thanks, Chris
Reply With Quote
  #7  
Old 13 Jun 2002, 06:59
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
conductorchris, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #8  
Old 13 Jun 2002, 14:50
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Tell me please (gmarik@hotbox.ru) is there a site, where is explained the PHP code of vb.2.2.6. and the new things, that will be in vb.3.0.?
Reply With Quote
  #9  
Old 13 Jun 2002, 15:08
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
gmarik, please go to this page and enter your username, to show you are licensed. (you will need to use your customer number and password to access that page)
Thank you.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HTL] & [Normal] Setting Varname Next to the Setting Title. Link14716 vBulletin 3.0 Full Releases 6 15 Jan 2004 15:26

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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:09.

Layout Options | Width: Wide Color: