The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Updating Mod to v4... while not iterating?
So I've gone through and fixed the template, and I've gone through the PHP and something isn't right...
Before: PHP Code:
After: PHP Code:
I'm sure I'm doing something wrong, but I'm not sure what. |
#2
|
|||
|
|||
What about trying the render line outside of the loop and changing the first line of your while loop to:
$templater .= vB_Template::create('gwr_roster_bit'); I'm not sure if that wold work exactly but I think that's closer to what you need. I think you just need the render line to be called once and that you jsut append to the $templater variable each loop. i.e. PHP Code:
|
#3
|
|||
|
|||
This was the direction I took, and it's working quite well...
I'm in the middle of totally rewriting the template now in a consolidated template, but HTML is actually my weakness! Anyhow in the php I setup a player_data array and added the players to it, registered that, etc... and called the render once. |
#4
|
|||
|
|||
Sounds cool, good luck with it. Hope it goes well.
BTW if you plan to release this updated mod once your done I'd check with the original coder of the mod (assuming you aren't the originator as you have no mods posted) before doing so. |
#5
|
|||
|
|||
Current plans are to e-mail the code back to him once I'm done... of course I like the idea better where he beats me to the punch and releases before me!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|