The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Hooks and templates
Hi there,
I got a basic question: How can I create my own hooks in templates and php files ? And another question: How can I use them? I wanted to add something to my home page in the cms. Basically I wanted to add a slider function to it, or lets say, firstly just the template. So what I did was as follows: 1. Add own template in default style: called 'content_slider' and put my html code in 2. added product: Add-On: CMS Hook: init_start Title: content_slider Priority: 5 Code PHP Code:
3. I edited the template:vbcms_page and put this code inside: Code:
{vb:raw template_hook.cms_content_slider} Everything is vice versa and my page looks very arabic... no offense .... but it actually changed to RTL!!!! I was really confused. Maybe somebody could help me out how to add template hooks and php hooks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|