The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Insert content on footer
hook: parse_templates
code: $vbulletin->templatecache['footer'] .= 'content added to footer'; Work fine on 3.x, how to I can do same on 4.x? Thanks |
#2
|
||||
|
||||
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
You could do a str_replace for whatever is at the bottom of the footer. (You know there is an ad_location there, right? You could just use that, I think.) |
#3
|
|||
|
|||
I tried...
$ad_location[ad_footer_end] .= 'this insert text fail'; And the article is about fech template to insert in other or add var manually. Sorry if I'm wrong, but it still a little hard for me yet. |
#4
|
||||
|
||||
I'm trying to do this too. For the life of me, I can't understand why it is so hard to do. Or why it's so hard to get a straight answer. If someone knows how to do this, then there should be a specific and to the point article on how to append text to the footer without using a template.
|
#5
|
||||
|
||||
Quote:
Follow the instructions the op mentions but use the hook: cache_templates instead and it's working for me. On parse_templates I'd get an error. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|