Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Confused about roles-specific content - suggestions?Confused about roles-specific content - suggestions?
Previous
 
Next
New Post
12/2/2008 9:45 AM
 

I am wondering if anyone can offer some guidance for creating role-specific content.  I already know how to change the content of the page for unauthenticated users vs. registered users.  I would like to do something similar for registered users vs. 'premium' users.

What I can't figure out is how to set up the roles so that I can HIDE content from premium users.  For example, let's say I have a page with two text/html modules containing different content.  In the unauthenticated vs. registered users scenario, I can set the permissions to only display the content of one module to one of these two roles.  Thus, if a user is logged in, they see one module and the other is hidden.  If they are not logged in, they see the other module instead.  Easy.

I am probably not being clever enough, but I can't accomplish the same thing in a registered vs. premium users scenario because the premium users are also registered users.  Thus, both modules always display for premium users.  I realize I could force all users into a premium vs. non-premium role, and display content on this basis, but I know of no way to automate dropping the non-premium role when a member subscribes to the premium service.  Has anyone else solved this problem?

 
New Post
12/2/2008 11:00 AM
 

Keeping track of a "non-premium" role is your best bet, currently.  In DotNetNuke 5.0, they will be introducing "deny" permissions, which is what you're really wanting.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
12/2/2008 5:24 PM
 

As Brian suggested, I think creating a "non-premuim" role is your best bet under DNN 4.x.  Just to be clear:

  • Create a "NonPremuim" role and set it to "auto-assign" just like the "Registered Users" role.  Create "Premium" role but do not set "auto-assign".  When you assign a user to "Premium" you'll have to unassign that user from "NonPremium".  You'll thus end up with the following roles:

    NonPremuim:  Regular registered users
    Premium:  Special (paid?) users
    Registered Users:  The collection of both Premium and NonPremium users


I've tackled this before and quickly discovered that management of "Premium-versus-nonPremium" content can be a much bigger headache than user role/account management.  To help keep content management ...uh...manageable, I recommend making your "Premium" content easy to identify at a glance:

  • SEGREGATE PAGES:  If you can, create "premuim-only" pages for premuim users and alternate "non-premium-only" versions for non-premuim users.  Set each page's VIEW permissions to either "Premium" or "NonPremium" and always uncheck "Registered Users".  Use of segragated pages keeps content tidy and also means you will not need to worry about configuring permissions for individual modules.
     
  • IDENTIFY PAGES:  For your "Premium" pages, create a variation of your site skin and change some noticable aspect of the skin (banner, background color, etc) to visually distinguish the "Premium" pages from "NonPremium".  Alternately, use each Premium page's HEADER TAGS settings section to alter the CSS for the page (i.e., override the skin's CSS link to a banner graphic, change the background-color, etc).
     
  • IDENTIFY MODULES:  If you MUST support both premium and non-premium users on the same page, give the "Premuim" modules a different-colored container to distinguish them from the non-premium modules.

Besides helping site admins with content management, adding visual cues to "premium" content reminds Premium users why they did whatever they did to get premium access.  Hopefully such reminders encourage those users to renew when their premium period is set to expire.

-mamlin


esmamlin atxgeek.me
 
New Post
1/10/2009 5:36 PM
 

In case anyone else finds this helpful, I did manage to find a free TEXT/HTML module that adds deny permissions.  So I was able to easily add some html content that was role specific by using combinations of module permissions and deny options.  Here is the site:

http://iowacomputergurus.com/free-products/dotnetnuke-modules.aspx

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Confused about roles-specific content - suggestions?Confused about roles-specific content - suggestions?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out