The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]() Quote:
{vb:raw totalpost} = $totalpost First will start from VB3 For Ex: Suppose i created a plugin: Hook: forumhome_complete Code: Code:
$myvar = 2; //and other things.... As you can see in plugin we assigned $myvar = 2, so we can use $myvar variable in FORUMHOME template. Now some question's comes in our mind: 1. can i use $myvar in other place like user profile. Ans. No, because forumhome_complete plugin hook execute at homepage only. So you need to find a diff hook for it, you can use debug mode to get the right hook. Now lets come to VB4 ![]() All the things will be same as in vb3, except few changes. Hook: forumhome_complete Code: PHP Code:
Now in FORUMHOME template u can use Code:
{vb:raw myvar} Read This article to know more about Registering variable's in templates. Code:
https://vborg.vbsupport.ru/showthread.php?t=228078 |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|