View Full Version : Template question
betts02
09-19-2010, 05:57 PM
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 ?
Lynne
09-19-2010, 06:23 PM
php code needs to go in a plugin. HTML goes in templates. You do not put php in templates.
betts02
09-19-2010, 06:28 PM
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
Lynne
09-19-2010, 07:06 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=228078)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.