The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Template question
I have some php code that i want to use
If i create a template using this code and place the template in the forumhome/display where i want it to show, Will it call this template and show the content ? |
#2
|
||||
|
||||
php code needs to go in a plugin. HTML goes in templates. You do not put php in templates.
|
#3
|
||||
|
||||
I know you help out a lot and probably not enough hours in the day BUT......
If you could help me with this ? I have a slideshow php code that is all set up, i have the php code and i want to display it on my vbadvanced home page or forumhome under my navbar I shall PM you the code and hopefully you can help me ? cheers |
#4
|
||||
|
||||
Sorry, but you'll have to just post in these forums as I don't help via PM. Do you know how to create a plugin? There is info in the manual about it and also some articles. If you want it on the forumhome page, then you can probably just put the php into a plugin using the forumhome_start plugin. Make sure you register any variables you plan to use in your template. Cellarius wrote a really good article that you may be interested in regarding that - [vB4] Rendering templates and registering variables - a short guide
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|