I recently decided to add ads for the first time in the 23 years my forum has existed. It is not going over well with many of the old timers. They are however open to a subscription service that would allow them to turn off the ads.
Is it possible, or can it be made possible, to have a subscription that turns on the ability for that member to switch themes once subscribed and then remove it if the subscription expires. I have a copy of the default theme installed called noads, that does not include the ad company's script in the template. I also created a members group called Premium Subscription group based on the permissions of the regular members.
I'd appreciate any insight you may have. Thank you.
Jeff
How I did this at one point, fairly simple depending on how you display ads.
- Create an "Ad free" membergroup
- Create a subscription that adds users to that membergroup
- Add code to the ad display that simply says "If not in membergroup X", and so only display ads to everyone else.
Even simpler if you just use something like Ad Management mod, I think that would just allow you to choose groups that see the ads (through permissions).
No need for a different theme.
Our ads are through the Monumetrics company. There is a line of code in our theme index.template for the default theme. I do not allow user switching of themes
Lex, your post got me thinking, maybe that code could be moved to a block in tiny portal that I use, and then use tiny portal to set permission for the subscription membergroup.
yes, that would be your best bet -- use a code-block in TinyPortal and there is no need to mess with custom coding themes
You could probably just add the if statement in index.template.php around the existing ad code as well, I don't have a working example handy at the moment, but I can dig for one later if you want to try.