PDA

View Full Version : How to replace all template content with other one ?


ARP
01-06-2010, 08:15 AM
Hello Guys,

Just want to know, If there any way to replace template content with other one via plugins system.

I'm think I can do this with remove all the template content and add only one code "add custom template hook" but I didn't' want any Manuel template edits I asking if there any way to replace it automatically with plug-ins

Thanks.

Zaiaku
01-06-2010, 01:22 PM
Yes you can, just have to get the right hook. Depending on what page you want to replace the template look in the appropriate php file. Then what you can do it make it call your template right after they call the other. I'm not sure if you can do it for all templates but should be able to replace most, I haven't had one I couldn't yet.

ARP
01-06-2010, 01:57 PM
Very Nice, So what's the code to do this in vBulletin 4 ?

Zaiaku
01-06-2010, 04:15 PM
there is no short code to do this because it depends on what template you want to replace. And then you have to worry about what new phrases you may use. Also the html coding must be correct so it doesnt make the page look funky.