The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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!!! |
#2
|
|||
|
|||
Change:
Code:
<if condition="$post[postcount] == 1"> Code:
<if condition="($post[postcount] == 1) AND ($bbuserinfo[posts] < 50)"> |
#3
|
||||
|
||||
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!
|
#4
|
|||
|
|||
Try: $vbulletin->userinfo['posts']
Or: $this->registry->userinfo['posts'] |
#5
|
||||
|
||||
$this->registry->userinfo['posts'] works great
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|