The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
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:
|
#12
|
||||
|
||||
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. |
#13
|
|||
|
|||
Oke that i can do.
|
#14
|
|||
|
|||
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"> <a href="{vb:link member, {vb:raw memberinfo}}&tab=AJGattach"> <img src="{vb:stylevar imgdir_siteicons}/profile.png" alt="" /> show attachments </a> </li> why isn't it getting the members id. |
#15
|
||||
|
||||
I do believe you have to add
Code:
$global memberinfo |
#16
|
|||
|
|||
In the plugin? I think
|
#17
|
||||
|
||||
You need tor register the variable memberinfo for use in your template.
|
#18
|
||||
|
||||
Yeah that too, I totally over looked that.
|
#19
|
|||
|
|||
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. |
#20
|
|||
|
|||
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'] = |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|