![]() |
Please help me convert this code to vbb4
Please help me convert this code to vbb4
Thanks a lot. Code:
if ($vbulletin->options['on_off'] AND (THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost')){ bump. --------------- Added [DATE]1335614520[/DATE] at [TIME]1335614520[/TIME] --------------- bump. |
There's not enough information there. You might be able to do it by rendering the postbit_point template, but if it uses any varibles they would have to be registered to the template before rendering. Also, it's strange that a str_replace is used instead of just using the template hook, but it could be that the template couldn't be rendered at that point because some variables hadn't been set yet.
|
Hook Location: parse_templates
Plugin PHP Code: PHP Code:
postbit_credits: Code:
<if condition="$bbuserinfo[userid]"> |
Try this: First change template postbit_credits to:
Code:
<vb:if condition="$bbuserinfo[userid]"> Then, use hook location postbit_display_complete instead of parse_templates, and change the code to this: PHP Code:
|
i'm try it but not work :(
{vb:raw post.credits} not show |
Hmm...I tested it and it works for me. I didn't get any actual number for credits because I don't have the rest of the mod installed, but I got "Credits: ( )" added to my postbit.
How did you make the changes, did you edit the xml file? |
ok because at least one field in the user table :)
and i want add {vb:raw post.credits} to header? thank advanced. |
Quote:
Quote:
|
All times are GMT. The time now is 05:27 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:
|