The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Integrating into templates
Just another noob modding question of mine. From what script is all the PHP code inserted into the templates? If I have a variable, say $var[test], how would I integrate that page into the vB templates so I can reference that variable?
|
#2
|
|||
|
|||
Using plugins
Which page are you trying to use that variable on? Where are you defining that variable? |
#3
|
|||
|
|||
It's all custom work, actually. I just need to know where or how to plugin to the templates.
|
#4
|
||||
|
||||
If it is a custom page of yours, then you don't need to use the plugins.
You may want to read these regarding Plugins/Products: https://vborg.vbsupport.ru/showthread.php?t=82625 https://vborg.vbsupport.ru/showthread.php?t=82923 |
#5
|
|||
|
|||
I know I don't need the plugins, that was the point of my upper post. I need to know how to include custom script into the templates.
|
#6
|
||||
|
||||
You cannot include custom script in a template. You do any sort of scripting in the php file, or plugin, and then just spit out the results in the template.
|
#7
|
|||
|
|||
That's what I need to know. How do I get said results to spit out to the templates?
I may have misused the word include, if that is the case, apologies. I don't normally work with templates, so I'm at a slight disadvantage here. |
#8
|
||||
|
||||
You still haven't specified if you are writing your own php page or trying to add to an existing one. Either way, you will do the php code in your page, or in a plugin, and assign the results to a variable, $myvar = foo;, and then use that variable in the templates. It's very hard to answer your questions when you are being so vague.
|
#9
|
|||
|
|||
The script is all custom. Custom php files.
|
#10
|
||||
|
||||
OK, then in the custom script, you will assign results to variables and then use the variables in the templates. Have you seen these articles? How to create your own vBulletin-powered page! (uses vB templates) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|