View Full Version : $template_hook in newreply template?
Alphawolf83
08-10-2009, 02:47 PM
Hey folks,
am I totally blind or isn't there a single template_hook in the newreply template?
I'd like to add a dropdown box below the message area, but I couldn't find any hook I could use.
Any hints?
Oliver
Lynne
08-10-2009, 03:00 PM
Your eyes are functioning just fine - there is no template hook in that template. You can either add a template hook of your own, just add the code, or do a search/replace to add your code.
Alphawolf83
08-10-2009, 03:12 PM
Your eyes are functioning just fine - there is no template hook in that template. You can either add a template hook of your own, just add the code, or do a search/replace to add your code.
Hey Lynne,
thanks for your reply. :) Is there a reason for that fact?
I'd like to avoid to manually edit the template, and rather do it with a plugin. What do you mean by "search/replace to add your code"?
Lynne
08-10-2009, 03:16 PM
There is a thread over on vb.com where users ask for hooks to be placed in specific places in the code or templates. I'd guess there is no template hook there because no one has ever suggested it.
Alphawolf83
08-10-2009, 03:32 PM
There is a thread over on vb.com where users ask for hooks to be placed in specific places in the code or templates. I'd guess there is no template hook there because no one has ever suggested it.
Heh, I'll head over to vb.com tonight and suggest adding one (or more).
And... I just had a look into another plugin, and found an example of what you was referring to by saying "search/replace to add your code". Thanks a lot for the hint! :)
Dismounted
08-11-2009, 06:21 AM
I just had a look into another plugin, and found an example of what you was referring to by saying "search/replace to add your code". Thanks a lot for the hint! :)
[How-To] Using Plugins for Automatic Template Edits (https://vborg.vbsupport.ru/showthread.php?t=151254)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.