The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ok, I'm a little confused as to why this isn't working. The code works, however, when I try adding in the option so only certain usergroups can('t) view the content, it doesn't work, nothing shows up.
![]() Here's the current code I'm using: Hook location: postbit_display_start PHP Code:
![]() PHP Code:
![]() |
#2
|
||||
|
||||
![]()
Try:
Code:
is_member_of($this->userinfo, $noadsense) AND Code:
$noadsense = explode(',', $this->registry->options['usml_google_adsense_usergroups']); |
#3
|
||||
|
||||
![]()
Still nothing lol
|
#4
|
|||
|
|||
![]()
Maybe try $this->registry->userinfo.
The list of usergroups in the option is the groups that *will* see the ad, right? |
#5
|
||||
|
||||
![]()
That didn't work either lol, and yes (for now anyway).
|
#6
|
||||
|
||||
![]()
Try using your old code and making $vbulletin global. Did you try using the postbit_display_complete hook instead?
|
#7
|
||||
|
||||
![]() Quote:
![]() |
#8
|
||||
|
||||
![]()
I was going to suggest making $vbulletin global the first time around but I usually try avoiding doing that in the postbit hooks if at all possible.
|
#9
|
||||
|
||||
![]()
Why is that? Or is that just personal preference?
|
#10
|
||||
|
||||
![]()
They took out the global $vbulletin for the postbit a while back and I just got used to using to not having to make it global, I guess.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|