The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template hooks
How can I edit a template from a plugin using a template hook? Is that possible?
|
#2
|
||||
|
||||
Have you tried reading any articles about this?
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide |
#3
|
|||
|
|||
I've tried finding some tutorials on this, I don't think that's what I'm looking for. I'm trying to basically insert my variable into a template from a plugin because there's no hook spots for where I need it
|
#4
|
||||
|
||||
You will need to register that variable for use in the template and that is what that article is about.
|
#5
|
|||
|
|||
Yes, but I don't want to manually add the variable to the template.. I want to somehow find a way to insert it with a plugin.
|
#6
|
||||
|
||||
|
#7
|
|||
|
|||
I've tried that, but I'm stuck on actually how I'm supposed to read the template
|
#8
|
||||
|
||||
I would suggest posting exactly what you have done (please use code tags), letting us see the result, and then we can help you out. Right now, you are being way to general for us to be of any help.
|
#9
|
|||
|
|||
PHP Code:
|
#10
|
||||
|
||||
What plugin hook are you using?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|