Simple Machines Community Forum

Customizing SMF => Building Your Community and other Forum Advice => Topic started by: The Mitchelli on May 10, 2011, 01:53:00 AM

Title: Ads removed with paid subscription?
Post by: The Mitchelli on May 10, 2011, 01:53:00 AM
Is it possible to set up a theme that contains google ads, but have them invisible if a member takes out a paid subscription?

Can it be done?

If so can it be done via a mod or does it require hand coding?

Thanks
Title: Re: Ads removed with paid subscription?
Post by: Baby Daisy on May 10, 2011, 02:34:13 AM
are you using a mod to show those google ads in the first place?

manual coding is easier, all you need to do is call $user_info and check the 'groups' key (it returns an array of groups you're in, as the logged in user). if you have it set up that you get put into another group on ordering a subscription, that is
Title: Re: Ads removed with paid subscription?
Post by: Aleksi "Lex" Kilpinen on May 10, 2011, 03:20:41 AM
There are mods available out there, that let you specify which groups see adds and which don't.
Combine a mod like that with the paid subs feature so that a paid subscription changes the primary membergroup of everyone subscribing, and you're golden :)
Title: Re: Ads removed with paid subscription?
Post by: The Mitchelli on May 10, 2011, 07:03:36 AM
Thank you, do you know what the mods are called? There seem to be so many that do slightly similar things that I don't want to get it wrong or use a mod that is not rated by the community.
Title: Re: Ads removed with paid subscription?
Post by: Aleksi "Lex" Kilpinen on May 10, 2011, 07:06:18 AM
I do not know much of those mods, and can not recommend one because of that.
But I know this one has permissions for the ad slots, so it could be used just for that.
http://custom.simplemachines.org/mods/index.php?mod=255
Title: Re: Ads removed with paid subscription?
Post by: The Mitchelli on May 10, 2011, 08:09:06 AM
Thank you Lex, I will give it a go. Although my forum is technically live - I have not publicised it and have no users yet so I guess bow is the best time to experiment!

Title: Re: Ads removed with paid subscription?
Post by: The Mitchelli on May 17, 2011, 05:33:56 AM
All sorted now with Simple Ads,

I tried the 'more popular' ad management mod, but I didn't get the level of control I needed. I am now very happy with how it worked out.