×

Error

Please login first

Hide Module/Stuff Based on Plan

12 years 8 months ago #174836 by dan1165
Hide Module/Stuff Based on Plan was created by dan1165
Hello, is it possible to have a module be visible to free members/unregistered members and disappear for paid ones?

Example, I have an HTML module on the bottom of free content preview pages that says subscribe now. I'd like to have that removed for paid subscribers.

Alternatively, if CBsubs can't do this (I saw requests for it in older posts), is it possible to hide modules based on CB Fields? So a subscriber could have a special CB Field added to their profile (which is removed upon cancellation), and modules/things could be hidden based on that rather than something through CBsubs.

Please Log in to join the conversation.

12 years 8 months ago #174838 by dan1165
Replied by dan1165 on topic Re: Hide Module/Stuff Based on Plan
Managed to do this using ArtofUser and MetaMod(free).

Make an ArtofUser group and have CBsubs put the subscribers in there (and remove when they cancel).
Pick the module you want MetaMod to hide based on a condition for, and in the PHP area

// example: return 93 (moduleID); group name is Guys

if ($user->usertype == 'Guys') echo '<br>';
else return 93;

Thanks to metamodguy on metamod forums for the code.

Please Log in to join the conversation.

12 years 8 months ago #174848 by nant
Replied by nant on topic Re: Hide Module/Stuff Based on Plan
You can most likely achieve the same using the CB Content module and CB field substitutions.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.289 seconds

Facebook Twitter LinkedIn