The Arcive of vBulletin Modifications Site. |
|
problem with condition Details »»
|
|||||||||||||||||||||||||
condition in the phpinclude template:
PHP Code:
the goal here is to have $picnumber parse into the forumid of the current forum when loading forumdisplay.php . example, you click on the forum with forumid 3 and $picnumber will parse into 3. then you click on the forum with forumid 6 and it parses into nothing. problem: the condition is evaluating to true for all forums. i load forumdisplay.php and, regardless of what forumid is in the url, the condition evaluates to true and $picnumber always parses into the forumid of the current forum. i can't figure out why this is always parsing to true. any help is appreciated. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
||||
|
||||
|
that worked *cream pie*
|
|
#4
|
||||
|
||||
|
that is to say, it worked on my test forums but not for the person i'm doing this for. his forums give this error at the top of every page now:
Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site3/fst/var/www/html/global.php(281) : eval()'d code on line 1 the error refers to the first line of the phpinclude template (where the if statement is). and so my questions are... questions: 1. what does this error mean? i'm not sure what a t_variable is. 2. how do i fix it? |
|
#5
|
||||
|
||||
|
thx for the help tonight firefly
|
|
#6
|
|||
|
|||
|
<a href="http://www.php.net/manual/en/tokens.php" target="_blank">http://www.php.net/manual/en/tokens.php</a>
|
![]() |
|
|