![]() |
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 04:52 AM. |
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:
|