The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ive been looking through manuals and i just cant get my head around using pre-existing raw variables in different templates. Im rather new to the coding arena of vBulletin and this issue keeps blocking me from modifying templates.
Example: In the header template we have Code:
{vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime} Any help? |
#2
|
||||
|
||||
![]()
Even the variables you see in vbulletin templates aren't global you have to register them again if you want to use them in another template
There are only a few variables and costants that are availavle in every template However the last visit and activity code is very easy you could make a new plugin Plugin hook: forumhome_start (should work) PHP Code:
I didn't test it so I'm not sure it will work but you can play this plugin and see if you can get it working by yourself, if you can't feel free to ask further help ![]() |
#3
|
||||
|
||||
![]()
Thank you!! I'll be trying this when i get back to the templates. This also helps me understand more in registering variables.
|
#4
|
||||
|
||||
![]()
cellarius wrote a good article on registering variables here, 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:
|