The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Advertising Banner System

Geek Advertising Banner System GAB is a highly configurable banner management system for vBulletin.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2008, 08:53 PM
Hengis Hengis is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Question GAB with Paid Subscriptions

Hi there,

I use (and love) GAB and was wondering if someone could help with a small dilemma....

I am introducing a VIP level for members, via paid subscriptions. All is set to go but I simply can't get my head around how to set the GAB . My VIP members will not see ads and that's fine, I have set it in AdminCP > GAB , tested this and it's all good.

The problem is, if they are a secondary member of any other group (that DOES see ads), they automatically see all ads and their excluded VIP setting is ignored.

I need to know if there is a way to set the paid subs/ GAB to keep them in the groups but only set permissions based on their primary usergroup.

Thanks....
Reply With Quote
  #2  
Old 12-30-2008, 04:40 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Untested but edit the usergroup_views_ads function in the gab_class_core.php file, adding in the bold red bit where X is the primary usergroup ID:
Code:
		if ($this->settings['usergroups_view'] && $this->vb->userinfo['usergroupid'] != X)
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #3  
Old 12-30-2008, 04:43 PM
Hengis Hengis is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

Thank you Morgan, what will that do exactly?
Reply With Quote
  #4  
Old 12-30-2008, 05:21 PM
Hengis Hengis is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

Double post!! :P

Adding that line;
Code:
if ($this->settings['usergroups_view']) && $this->vb->userinfo['usergroupid'] != 86)
Generates
Code:
Parse error: syntax error, unexpected T_BOOLEAN_AND in /home/XXXX/public_html/geek/gab/includes/gab_class_core.php on line 333
Code:
    Warning: require_once([path]/geek/gab/includes/gab_class_core.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(360) : eval()'d code on line 171

    Fatal error: require_once() [function.require]: Failed opening required '/home/xxxx/public_html/geek/gab/includes/gab_class_core.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/global.php(360) : eval()'d code on line 171
Reply With Quote
  #5  
Old 12-30-2008, 05:38 PM
Morgan's Avatar
Morgan Morgan is offline
Administrator
 
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Untested, but it should do what you want, though redo the edit. You added an extra right parenthesis, and that is why you are getting an error.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #6  
Old 12-30-2008, 05:46 PM
Hengis Hengis is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

Quote:
You added an extra right parenthesis, and that is why you are getting an error.
DOH! I didn't even spot that....

I'll test it and let you know how it goes. Thanks for taking the time to code this up.
Reply With Quote
  #7  
Old 12-30-2008, 05:49 PM
Hengis Hengis is offline
Junior Member
 
Join Date: Apr 2008
Posts: 17
Geek Article and Review System License Holder Geek Advertising Banner License Holder 
Default

Another double post...but worth it!

It WORKS!

Thanks again Morgan
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: Guest Subscriptions TheProphet Geek Gazette 3 10-06-2008 04:13 PM
User subscriptions in UserCP henrikhansen Geek Gazette 1 05-17-2008 10:12 AM
It says I don't have any product subscriptions, but I paid for one nearly a year ago. TheHaloGod Geek Article and Review System 0 01-05-2007 09:54 PM
Just paid chet Geek Auto-Linker 5 07-10-2006 11:24 PM


All times are GMT. The time now is 05:51 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.