The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change hook location?
I have two images that are generated by modifications that I'd like to move a bit. They both appear in the same area on top of each other but I'd like them to fit into boxes like the rest of my postbit. The images are a trophy and a small medal. Here's what it looks like now:
I can see in the two plugins where the images are rendered and sent to "template_hook['postbit_userinfo_left']" but I don't know how to change the location from that spot. I realize I could replace the hook location but that won't help me. Let's say that I want a new box to be below "Thanked" and for it to contain trophies and medals. Here is what the last few lines of the postbit_legacy look like: Code:
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if> <dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd> <dt>Thanks</dt> <dd>{vb:raw post.vbseo_likes_out} times</dd> Could I do something like <dt>Awards</dt> <dd>{vb:raw template_hook.NEW_HOOK_LOCATION</dd>? I'd have to change the PHP code to the new hook location but this seems a rather crude way to try this. Any ideas are very much appreciated! I've been at this for ages and I'm about to break. |
#2
|
|||
|
|||
I don't see anything wrong with doing it that way, as long as you make sure the value for NEW_HOOK_LOCATION is not something used for another template hook somewhere else, of course. Another way would be to create your own variable and preRegister() it to postbit_legacy.
|
#3
|
|||
|
|||
Right now in the mod I see this line which I am pretty sure outputs the image.
PHP Code:
2) Once I have that done I can use this code to generate the image? PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|