PDA

View Full Version : How Do I Make XML plugin which update template ?


Dr.Designer
06-28-2007, 11:29 PM
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

calorie
06-29-2007, 01:06 AM
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:

$vbulletin->templatecache['FORUMHOME'] = 'your stuff' . $vbulletin->templatecache['FORUMHOME'];

Dr.Designer
06-30-2007, 08:34 AM
Thank you very much Mr.calorie, this method is working.

Regards