![]() |
get $user[''] info within postbit?
I'd like to show an ad for all users having less than 50 posts. There is a quick tip for do that here:
http://www.vbulletin.com/forum/showthread.php?t=198875 But how do I find out about getting user information? $user, $bbuserinfo, $userinfo are not working. Is there a way to do that with $vbulletin-> ... ? Thanks in advance!!! |
Change:
Code:
<if condition="$post[postcount] == 1"> Code:
<if condition="($post[postcount] == 1) AND ($bbuserinfo[posts] < 50)"> |
Thanks very much, it works within postbit template. I want to get the user[posts] information within plugin on postbit_display_complete. But there I do not get $user, $bbuserinfo, $userinfo. Can I get the user information via $this->registry-> or something like that? Thanks in advance!
|
Try: $vbulletin->userinfo['posts']
Or: $this->registry->userinfo['posts'] |
$this->registry->userinfo['posts'] works great :D
|
All times are GMT. The time now is 12:17 PM. |
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:
|