The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Auto-Linker

Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2009, 02:25 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Question Groups not having to view GAL - Support Request

Morgan,

I set up one of my categories so that a couple of different usergroups could opt out of seeing GAL links for advertisers. I checked the boxes next to those groups in category edit screen which I have attached as a screen capture below.

For example Planet-9 Insiders group should be able to opt out of seeing the pop-ups links if the choose the userprofile box of "Other Member Number" and put a value of 1881 into that box in their profile.

However, when I have a member in that group do just that, they still see the pop-up links for the advertisers.

The member in question has a Primary Group of "Registered Users" which you can see from the list CANNOT opt out of seeing the ads, the member has a secondary or additional group of "Planet 9 Insiders" which CAN opt out of the ads.

It appears that either it isn't working, or that the primary group is overriding the secondary group and not allowing them to opt out. I cannot place the member in the Planet-9 group as primary for several reasons in how forum and other permissions are managed on the site.

Can you please help?
Attached Images
File Type: jpg gal_groups.jpg (78.4 KB, 5 views)

Last edited by KenDude; 12-02-2009 at 03:39 PM..
Reply With Quote
  #2  
Old 12-05-2009, 08:01 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Morgan,
I don't mean to be a pest, but 3 days have gone by with no reply to this topic, are you still providing support for this product?

Thanks,
Ken
Reply With Quote
  #3  
Old 12-09-2009, 02:25 AM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

6 days have now gone by, has something happened to Morgan?
Reply With Quote
  #4  
Old 12-09-2009, 05:43 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

As previously mentioned, when I am available, I answer these threads. If I'm not available, then I'll answer them when I am again available. Bumping doesn't get an answer any faster but it does put your query later in the queue, as oldest are answered first. As to your question, are the keywords in more than one category? I don't see a reason for what you describe, but the code that handles this is in the gal_class_core.php file:
Code:
    		$catid = $this->cached[$id]['catid'];

    		if (!$this->cat_usergroups[$catid]['ini'])
    		{
    			$this->cat_usergroups[$catid]['ini'] = true;
    			$this->cat_usergroups[$catid]['exempt'] = is_member_of($this->user, explode(",", $this->cached[$id]['usergroups']));
    			if ($this->cat_usergroups[$catid]['exempt'])
    			{
    				$this->cat_usergroups[$catid]['exempt'] = strtolower($this->core->userinfo['field' . $this->cached[$id]['profile']]) == strtolower($this->cached[$id]['field_value_yes']);
    			}
    		}

    		if (!$this->cat_usergroups[$catid]['exempt'])
    		{
If you want to edit the file, you could change this part:
Code:
    		if (!$this->cat_usergroups[$catid]['exempt'])
To this"
Code:
    		if (!$this->cat_usergroups[$catid]['exempt'] AND !in_array($this->user['userid'], array(X, Y, Z)))
Where X, Y, Z are the user IDs of the members who you want to not see GALs.
__________________
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
  #5  
Old 12-09-2009, 06:27 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Morgan,
Apologies I didn't know you were away for extended periods of time these days.

It would appear from the code that all you need to do is put a member into any exempt group and they should immediately become exempt from seeing the gal links.

Given the attachment I added in my first message did I set it up the right way? If someone was a member of planet-9 insiders group and then added that 4 digit number to that profile field should they then be exempt from seeing any items in that category? I do understand how it is supposed to work don't I?

BTW adding individual user accounts won't work because there could be hundreds, so I need to use a usergroup and for other reasons as well. I'll keep running some more tests.
Reply With Quote
  #6  
Old 12-09-2009, 06:57 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

No problem, and yes that is how it should work. Check whether you have the same GALs in more than one category. Also try it where you don't select a field, and you make the field value blank, and see what that does. You could also change this:
Code:
if (!$this->cat_usergroups[$catid]['exempt'])
To this:
Code:
if (!$this->cat_usergroups[$catid]['exempt'] AND !is_member_of($this->user, array(A, B, C)))
Where A, B, C are usergroup IDs of the usergroups that you want to not see GALs.
__________________
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
  #7  
Old 12-10-2009, 01:58 PM
KenDude KenDude is offline
Senior Member
 
Join Date: Nov 2006
Posts: 176
GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I do have 2 different categories on my site, one category is for sponsor advertisement links, the other are for general information/glossary links. The same groups can be exempt from either, but I made the value different in the user profile field, 1881 for exempting from sponsor ads and 2112 for exempting from glossary links.

Yesterday with a test account I put in 1881 and the test user appeared to be exempt from both categories. I guess that "sorta" works. Does the code look at the actual value in the user profile field, or just that "some" value is there?
Reply With Quote
  #8  
Old 01-02-2010, 02:30 AM
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

It is meant to look at whatever profile field and value you set in GAL via the ACP. At this point I haven't been able to duplicate the problem you describe, so am not sure what to offer up as a fix.
__________________
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
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
Problem with exempt groups najaru Geek Auto-Linker 11 11-04-2009 11:31 AM
Sneaker Groups Seeker GARS Link Directory 0 09-19-2008 09:59 PM
Errors in GAL and Feature Request KenDude Geek Auto-Linker 7 01-30-2008 04:47 AM
user groups who can turn off ads... tspore Geek Advertising Banner System 1 02-22-2007 04:20 AM
GAL dosnt support Multi-Lang. !! Dr_HUS Geek Auto-Linker 12 11-25-2005 02:25 PM


All times are GMT. The time now is 11:12 PM.


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