The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
You can't move it there because $auinfo is not defined there. You need to move it to within the while statement. The while statement is what defines $auinfo - $auinfo = $db->fetch_array($getusers). So, after $auinfo is defined but before the template is evaled.
|
#32
|
|||
|
|||
Now things have gone weired :S
Before:- http://i41.tinypic.com/2yyw67a.jpg After:- http://i40.tinypic.com/105ce8g.jpg PHP File: PHP Code:
After Screenshot:- http://i40.tinypic.com/105ce8g.jpg Here's what happens you can see from the 'before' screenshot all of the usernames are generated with their post count however in the 'after' screenshot you can see the field works but only that field works, also selecting a month from the dropdown changes that number. |
#33
|
||||
|
||||
You need to have your code within the parenthesis for your while statement. You don't have it there right now which is why it's all screwed up. Basically:
PHP Code:
|
#34
|
|||
|
|||
YAY that worked...kinda.
For some reason not all of the fields display properly. PHP File PHP Code:
http://i41.tinypic.com/5kg1tx.jpg |
#35
|
||||
|
||||
You should make sure to set conditional to 0 before entering your series of conditions to define it otherwise it will just use the variable it was set to before. If that isn't it, time for some debugging by spitting out a bunch of stuff along the way to see what is going on.
|
#36
|
|||
|
|||
I took your advice and went and told the PHP file that $conditional always = 0 unless otherwise stated, which worked now it's only RESELLER B & C that display 0
Here is their code PHP Code:
|
#37
|
||||
|
||||
I meant you should put some new variables into your code to help you debug stuff. Like actually print out field7 on the page so you can see why it is giving you 0 instead of values for B & C. (Can you visually see a difference right before B? You have the else if on a new line. Perhaps move that to the same line as the end parenthesis.)
|
#38
|
|||
|
|||
I tried moving the else if to the same line, no luck. As for your other question yes you can see the other values right before B&C and right after just B&C that don't work.
|
#39
|
||||
|
||||
This is your problem:
PHP Code:
Are you using a proper editor when coding? Use one made for php (or html when you do html) and things like that will be quite obvious. I think it's a real necessity because you can't always test everything and a helpful editor will certainly point out some flaws you make before they come and get you later. |
#40
|
|||
|
|||
I am using PHP designer but I guess it is technically not an error so it didn't flag it up. However:
Lynne, Dismounted and everyone else who has helped me is a star! As you can probably tell this is fixed now THANKS A BUNCH! I REALLY APPRECIATE IT! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|