The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How Do I Make XML plugin which update template ?
Hi Everybody,
I want to make XML file which can be uploaded from the ( Products & Plugins Management ) and do the following: update the template "forumhome" by putting a certain HTML code in the top of the template. This HTML code will be just a simple code, with no variables and displays a simple form. I tried to read the vBulletin API manual & the normal manual and after a lot of searches I did not find a method to create the XML file to do that. Any help for this issue would be much appreciated. thanx in advance |
#2
|
|||
|
|||
There are varying opinions on this approach, but if you are looking to prepend something to the FORUMHOME template, try the parse_templates or forumhome_complete hook:
Code:
$vbulletin->templatecache['FORUMHOME'] = 'your stuff' . $vbulletin->templatecache['FORUMHOME']; |
#3
|
|||
|
|||
Thank you very much Mr.calorie, this method is working.
Regards |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|