![]() |
Making a Custom Template (vba/vb)
So I've been learning how the template engine works and the more I mess with it the more I love it (1000000x more than phpBB). I've been messing around with vba's custom modules but I've having some problems.
The module I'm making basically queries my mysql database and retrieves a listing of items (for a MMORPG), and then displays it. Here is the weapon.php file: PHP Code:
HTML Code:
<tr> I'm not quite sure what to put in the while() loop in the php file to make this work. Any help is appreciated, thanks! ^^ |
I don't know, but maybe something like:
PHP Code:
|
well that "semi" works. When I try that, it only grabs the very last weapon that was pulled.
I think I'm missing something with arrays in templates. *edit* grrr didn't notice the concat, yes that works, thanks ^^ |
Ever single dot is needed. ;)
|
Thanks for posting this !
Very useful and great time-saver to see how someone goes from [total newbie] to the first example of something working. I'm completely in awe of how elegantly and cleanly vBulletin developers separated out logic from presentation using PHP vs templates. Stachel |
All times are GMT. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|