![]() |
Including a loop
I have a question - If I make a while or for loop in a plugin, how could I include it in a template?
What I want to do? I want to make a table with all users and some custom fields with a mysql query. Or could I make it ready in the plugin and then include it in the template? If so, how? |
Hi BaussDesigns,
i hope i understood u in the right way, here is an example of my code how I am solving that issue: PHP Code:
hope it helps you at least in getting an idea! |
Rendering very small templates (that are used nowhere else) in a loop is kinde wasting resources.
It would be a lot more efficient to use <vb:each> in the parent template. |
All times are GMT. The time now is 07:29 PM. |
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:
|