Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Tab Module List Built Upon MemberRole(s)
Previous Previous
 
Next Next
New Post 11/9/2007 11:14 AM
Resolved
User is offline Gary Bruno
9 posts
10th Ranked


Tab Module List Built Upon MemberRole(s) 

PROBLEM

Anytime the dean would like to view a particular teachers gradebook they would simply add themselves to "<Teacher Name Math Class>" memberrole via a custom implementation of DNN's orginal SecurityRoles.ascx. The page is redirected to itself so the TabModuleList can be rebuilt taking into account the new adjustments in the MemberRoles. This all works, but the TAB MODULE LIST BUILT UPON MEMBERROLE(S) does not take instantly. There is up to a 30 second delay. You can continue to hit refresh over & over & it will eventually work. This is not exceptable, it needs to be instantly.

 

SCENARIO

School Teacher Grade Books

DNN Module - Gradebook

    One instance of this module is created per teacher. The moduleSettings save the name of the teacher so that instance of the module can record grades for only that teacher's students.

DNN Tab

    If there are 10 teachers, each one of those teachers will have there own module instance on a particular tab.

Users

     Each of the 10 teachers will have a DNN login & 1 dean/principle will have a login

MemberRoles

    - Each of the 10 teachers will have a MemberRole names something like "<Teacher Name Math Class>"

    - Each of those teacher module instances will the "<Teacher Name Math Class>" memberrole assigned with VIEW permissions

 

NOT THE PROBLEM

I. Caching

    a. I clear the "GetPortalTabModules<TABID>" cache after the changes & before redirect to self. It's not this caching

    b. I have even tried performing an entire DataCache.ClearHostCache(true)

II. Adding Dean user to "<Teacher Name Math Class>" memberrole

    a. This is instant; I know this because I can monitor it with another browser & see the effects instantly.

 

NOTE:

    I'm using DNN 3.1 for this

 

 
New Post 11/9/2007 12:16 PM
User is offline Stefan Kamphuis
310 posts
www.superska.net
8th Ranked






Re: Tab Module List Built Upon MemberRole(s) 

My gut feeling sais this is not a way you'd normally want to use Users and Roles. Wouldn't it be an option to create a special role for the Dean to enable him to see ALL teachers gradebooks?


Greetz,
Stefan Kamphuis
 
New Post 11/9/2007 2:06 PM
User is offline Gary Bruno
9 posts
10th Ranked


Re: Tab Module List Built Upon MemberRole(s) 

I agree with your gut feeling also. Here is the reason why I'm making this so complicated with using
A single Module Instance & memberRole per teacher
DNN Search Indexing!
Each module instance implements the ISearch interface to have it's Students, Grades, etc indexed by DNN. When a teacher searches the site, the only get results pertaining to there grade book. When the Dean uses the search, he will only get results pertaining to the Gradebooks he is currently searching.
This is a powerful functionality I would like to use. At this time, it works great once the Dean adds himself to the proper memberRole to access the correct GradeBook. The way it works now, the Dean gets irritated that it takes so long for him to access different GradeBooks.

 
New Post 11/11/2007 10:51 AM
User is offline Gary Bruno
9 posts
10th Ranked


Re: Tab Module List Built Upon MemberRole(s) 

It's Sunday, my girlfriend is out getting her hair done, I'm looking at code -- I shouldn't be. I think I have pin-pointed the problem I face. Within the HTTPModule.DNNMembership, the current UserInfo is created & shoved into the HttpContext.Current.Items dictionary. For performance reasons I'm sure; it looks as if the current users' role(s) are end up in a cookie that last for a minute. I'm willing to bet this is getting evaluated somewhere down the line to figure out what modules to inject. This would explain why I can continue to hit refresh after a user adds themselves to a new role & eventually the module shows. We shall see on Monday.

 
New Post 11/12/2007 10:21 AM
User is offline Gary Bruno
9 posts
10th Ranked


Re: Tab Module List Built Upon MemberRole(s) 

Got it! In DNN 3.1.* - If a non-superuser w/authentication adds themselves to a memberrole it will not take effect until the "portalroles" cookie expires. DNNMembership seems to set this expiration for 1 minute.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Tab Module List Built Upon MemberRole(s)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com
DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP