View Full Version : get $user[''] info within postbit?
ThorstenA
21 Oct 2007, 16:23
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!!!
Opserty
21 Oct 2007, 16:33
Change:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
To:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ThorstenA
21 Oct 2007, 16:43
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!
Opserty
21 Oct 2007, 17:28
Try: $vbulletin->userinfo['posts']
Or: $this->registry->userinfo['posts']
ThorstenA
28 Oct 2007, 14:44
$this->registry->userinfo['posts'] works great :D
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.