![]() |
Dynamic variables in a template
I'm new to vbulletin. I made a custom template that uses a script I made in PHP to look up email addresses. The script stores the email addresses in an array variable. What I'd like to do is use the output from the array variable in the template, or just figure out a way to use any custom variable in the template. Would my variable have to go through the session or a cookie somehow?
I have the feeling this might get rather complicated. Any help would be immensely appreciated. |
Do you want the code to be in a default template or a custom template?
|
The code itself will need to be in a custom template I made, following a form submission. It retrieves $_POST variables, queries the db for some data, and then outputs the results. I added my script into profile.php, specifically. What I need to do is transfer the variable containing the query results and be able to use it in the custom template.
|
Post your custom code so I can tell you what to put and where to put it.
|
just assign the value to a variable, then insert the variable wherever you want it to appear in the template.
|
Thanks for your help everyone. I added the new variable in the template and that worked (for some reason I wasn't able to get that to work before).
|
All times are GMT. The time now is 06:26 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:
|