Quote:
|
Hi, I kinda only have a short question (before I waste another few days of my life, because I didn't wanted to ask for help lol).
My Problem is, that I would like to hook a template on {vb:raw header} (so I don't need any Template edits anymore). But all I get to work is, when I add in for example Forumhome Template {vb:raw header2} (then my template gets shown, but not if I try to use the real one). So the Question is: Is it actual possible or not (to use {vb:raw header})? The Plugin Code I am using: PHP Code:
And sorry for asking stupid Questions ;). |
Quote:
But the answer is that it probably won't work because I think if 'header' gets registered somewhere else (which it probably is, just before the template is rendered), it will override what you pre-registered. |
That's what I almost feared. So back to thinking how to get rid of the last template edit.
And thanks for the answer. |
It may not be wise to use additional templates etc. just to get rid of a template edit. It adds considerable overhead.
|
There is always 2 things to consider:
- the right way - the way people / customers and such prefer it (and thats usually no template edits :P) |
1 Attachment(s)
I have been trying to do this for days, but ended up failing all the times. I have read this entire thread twice, from page 1-14 but still couldn't figure this out.
So I'm trying to change this part of showthread: https://vborg.vbsupport.ru/attachmen...1&d=1322471332 I want to change it into my own moderation action instead of just closing the thread. I want to change the template with plug-in, but I couldn't get the right variable in which the informations about showthread quickreply are stored. On the early page of this thread, someone tried to change the footer just by accessing $footer .= "things to add"; on process_template_complete. So what variable should I be focusing on with my problem? I have already prepared a new template to replace that "checkbox", I just don't know how to access the existing template by using a plugin. Any help is appreciated.. |
Ok, I'm obviously missing something, but not sure what. I'm trying to display a variable in the header template, and what I have works just fine in the navbar. Here's what I have to display my mod in the navbar (this works):
PHP Code:
PHP Code:
|
What hook are you using? Header is rendered early, you may need a hook that is executed earlier.
|
Quote:
|
All times are GMT. The time now is 01:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|