The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Do it under the hook "Parse Templates", and use eval() codes.
I believe this is the structure: PHP Code:
|
#12
|
|||
|
|||
![]() Quote:
![]() |
#13
|
|||
|
|||
![]()
What error are you getting now? (Copy and Paste it)
Or is just not showing up? |
#14
|
|||
|
|||
![]()
This is my plugin code
PHP Code:
I have the following in my custom template PHP Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/website/public_html/forums/global.php(554) : eval()'d code on line 7 Thanks. |
#15
|
|||
|
|||
![]()
No wonder...you have a colon before the final speech mark. Change it to a semi-colon and it should work.
![]() Here: PHP Code:
|
#16
|
|||
|
|||
![]()
Even with the change, I still get the error. Are the quotes in the right place?
|
#17
|
|||
|
|||
![]()
First try this:
PHP Code:
PHP Code:
![]() If things don't start working trial and error is the way to go haha. |
#18
|
|||
|
|||
![]()
None gave me errors but non worked
![]() |
#19
|
||||
|
||||
![]() Code:
$template_hook['postbit_userinfo_right'] .= ' <if condition="$post[userid]"><div>iTrader: <a href="itrader.php?' . $session['sessionurl'] . 'u= ' . $post['userid'] . '">' . $post['itrader_total'] . '</a></div></if> '; |
#20
|
|||
|
|||
![]() Quote:
I also want to thank everyone that helped me as well!!! ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|