The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Im having an issue, im trying to make last seen online use a hook instead of having to edit the postbit_legacy template everytime. However this always fails to work. Anyone know why?
Code:
<plugin active="1" executionorder="5"> <title>lastseenonline postbit</title> <hookname>postbit_userinfo_right_after_posts</hookname> <phpcode><![CDATA[ $lastseenonlinepostbit = ' <if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] $post[lastseen_time]</div></if> '; $template_hook['postbit_userinfo_right_after_posts'] .= $lastseenonlinepostbit; ]]></phpcode> </plugin> |
#2
|
||||
|
||||
![]()
You would have to generate the compiled template code.
|
#3
|
|||
|
|||
![]()
Argh that I have no clue, my editing is very basic.
|
#4
|
||||
|
||||
![]()
Actually my mistake. You can do it as is, but you can't use the <if> or variables since it is not evaluated.
Use the actual variables instead of single quoting the string, and for any ifs, use either the ternary operator or PHPs if(). |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|