Advertisement:

Author Topic: Ads removed with paid subscription?  (Read 4462 times)

Offline The Mitchelli

  • Semi-Newbie
  • *
  • Posts: 18
Ads removed with paid subscription?
« 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

Offline Baby Daisy

  • Jr. Member
  • **
  • Posts: 350
  • Gender: Female
Re: Ads removed with paid subscription?
« Reply #1 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
あなたは私のお尻にキスするとき、私はそれを愛する

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Ads removed with paid subscription?
« Reply #2 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 :)
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline The Mitchelli

  • Semi-Newbie
  • *
  • Posts: 18
Re: Ads removed with paid subscription?
« Reply #3 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.

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,628
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: Ads removed with paid subscription?
« Reply #4 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
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
 Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline The Mitchelli

  • Semi-Newbie
  • *
  • Posts: 18
Re: Ads removed with paid subscription?
« Reply #5 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!


Offline The Mitchelli

  • Semi-Newbie
  • *
  • Posts: 18
Re: Ads removed with paid subscription?
« Reply #6 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.