The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hi. ive been trying to add a total template and i really would like it all to be a php of such since the rest of the site is. i have been trying to get my head around this hooks system since it is aparently from where ive been reading makes the templates load faster. so ive made custom hooks and what not just how do i add them or make them templates. i have html code do i add it in the plugins with the hook or what. ive looked all over and theirs really no explanation on how it makes templates. it just says to add these variables but they say nothing else about the html or php side of the system.
any help would be apreciated on how i make this work. regards, Fluffy |
#2
|
||||
|
||||
![]()
Using the hook system is like editing files. When you add a plugin, it stores the code inside of the database. When the file is run where the hook is located, the PHP code
is automatically run. |
#3
|
||||
|
||||
![]()
Have you tried looking through the articles forum for articles about plugins and hooks and templates. Here's one on plugins and hooks:[How to] Write Plug-ins/Hooks Take a look in the forum and read up a little to make it easier to do.
|
#4
|
|||
|
|||
![]()
ok so now i know how to use it. now how do i put a hook into a template to displat what the php is calling for? do i use the a command like
Code:
<if condition=$hook[name]></if> or <phrase>$hook[name]</phrase> or <lable>$hook[name]</lable> |
#5
|
||||
|
||||
![]()
How about "None of the Above"?
If you have a hook in a template, it will look like (this one if from "postbit": Code:
$template_hook[postbit_userinfo_right] Code:
eval('$template_hook[postbit_userinfo_right] .= " ' . fetch_template('postbit_your_own_template') . '";'); |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|