The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I'd of written a more descriptive title if I knew what was wrong.
I'm trying to list information from a table and to do it I first printed a template then underneath that in the plugin I wrote. PHP Code:
I added eval for the template, and put $cats in the first printed template for where I wanted these results to go and they don't show up and I don't get why. Its probably something stupid I'm overlooking. Any ideas? EDIT--Oh and I know its not the template name, I've checked that around 4 times now. |
|
#2
|
|||
|
|||
|
Where is your query?
|
|
#3
|
||||
|
||||
|
Its above.
Heres the whole plugin PHP Code:
|
|
#4
|
|||
|
|||
|
How are you outputting $cats? echo? Using it in a template that is further down the code using print_output function? Your current code is outputting nothing.
|
|
#5
|
||||
|
||||
|
I'm outputting it through the extra_categories template using $cats to compile the list.
|
|
#6
|
|||
|
|||
|
Try moving this after the while
PHP Code:
|
|
#7
|
||||
|
||||
|
Hey that worked, thanks!
|
|
#8
|
|||
|
|||
|
print_output() end the script execution, hence nothing after that line will be run.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|