View Full Version : Use $online status on postibit
Bisha
12-02-2011, 05:11 PM
Hello!
I want to use the $onlinestatus variable inside the postbit_legacy template!
I created a hook but is not working :S
Any help?
$onlinestatus isn't a global variable so there's no way to use it in the postbit, but the same value is saved in the $post array, so you should be able to use {vb:raw post.online_status_code} or use $post[online_status_code] in a condition.
Bisha
12-02-2011, 10:32 PM
Wow, thanks kh99 (https://vborg.vbsupport.ru/member.php?u=346440)! Was a while that i was trying!
$post[online_status_code] worked! :)
Tyyy
hilaryl
08-25-2016, 09:43 PM
@kh99 legend
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.