The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Do you want the code to be in a default template or a custom template?
|
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
Post your custom code so I can tell you what to put and where to put it.
|
#5
|
|||
|
|||
just assign the value to a variable, then insert the variable wherever you want it to appear in the template.
|
#6
|
|||
|
|||
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).
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|