![]() |
hook location not in plugin manager
i have found a hook location in template memberaction_dropdown called {vb:raw template_hook.memberaction_dropdown_items}
but i can't find it back in the plugin manager, where is it or how can i add this hook location in the plugin manager. |
template_hooks are different than regular hooks. template_hooks are for inserting html into them from a plugin, like:
PHP Code:
|
That is a template hook. It is not meant to be in the plugin manager.
The hooks in the plugin manager are for adding code to the core vbulletin files with out actually editing the files. |
Oke and where do i put this extra html data. I thought i do it by plugin but which one does it.
Can i use somthing lik forum start or something like that. In there i file THE template hook witheet html |
You need to pick a plugin that is eval prior to the template being evaled. You can try forumhome_start and see if it works for you. It really depends on what page you are doing this on.
|
i wish to add a extra icon to the members popup thing.
where you could go to the members page and pm and that kind of stuff. i try some plugin hook locations. |
The members popup things on *what* page? They show up on several pages. You need to access a hook that is used when that particular popup is being rendered. For instance, if you were adding it to the posts on the showthread page, you would use the postbit_display_complete hook since that hook is accessed when the individual posts are being rendered. You need to do similar for wherever else you are wanting to add this.
|
It must be displayed on every page, where you can click on a
members name. |
You are going to need several plugins then.
|
Take a look at my Useful links modification in my profile and see how I did it.
|
i have found a hook location which works but now i have a new problem.
this is what i do but the template variables don't work when they called from within a plugin. is there a way to inject these variables into the template. the tekst "show attachments" is displayed at the left side in the members drop down menu hook location is forumhome_start this is my code PHP Code:
|
You cannot put template syntax into template hooks in that manner.
Think of it as like using the php echo command, and build the output you want as a string. |
Oke that i can do.
|
i still have a problem
i made a plugin which create a temple and output its content to a hook location this is the plugin code PHP Code:
Code:
<li class="left"> why isn't it getting the members id. |
I do believe you have to add
Code:
$global memberinfo |
In the plugin? I think
|
You need tor register the variable memberinfo for use in your template.
|
Quote:
|
What hook did you end up using for this?
I can't get memberinfo to be a global in any of the hooks I've tried so far. Thanks. |
you can add it to "template_render_output" plugin will show on all needed popups :)
when also using the template hook $template_hook['memberaction_dropdown_items'] = |
All times are GMT. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|