Remove 'check messages' and 'check notifications' from user
Last Post 08/06/2015 5:31 AM by Shalom Keynan. 7 Replies.
Author Messages
kevin
Nuke Newbie
Nuke Newbie
Posts:3


--
02/25/2014 11:33 AM  
I would like to create users that do not have access to the check messages and check notifications icons. Is there a way to do this through user security roles? I don't currently use this functionality, are there core modules that I should delete? I am afraid that I'll want to use the functionality in the future and so I'd prefer to limit access at the user level.

I am using DNN7

Thanks,
Kevin
Joseph Craig
DNN MVP
Posts:11667


--
02/25/2014 2:02 PM  
Two solutions, courtesy of Matthias Schlomann over on the DNN Forums.

You will have to edit your skin files, but that's not a bid deal.

Solution1: Edit the attributes of the UserLogin skin object to set the LegacyMode="true".

Solution 2: Remove the UserLogin skin object and replace it with two skin objects.

<dnn:LOGIN runat="server" id="dnnLOGIN" cssclass="LoginTokens" />

<dnn:USER runat="server" id="dnnUSER" cssclass="LoginTokens" />


You may also need to add "register" tags for these two skin objects at the top of the skin files.

We have a recent tutorial in the Bootstrap series that discusses styling the UserLogin skin object. Another great reference is http://www.10poundgorilla.com/DotNe...spx#Banner

Joe Craig, Patapsco Research Group
Complete DNN Support
kevin
Nuke Newbie
Nuke Newbie
Posts:3


--
02/26/2014 6:19 PM  
Thank you Joe, I'll give it a go..

Kevin
kevin
Nuke Newbie
Nuke Newbie
Posts:3


--
02/26/2014 8:36 PM  
Well this seems to be a partial solution. By changing legacymode to true, the messages and notifications icons go away, which is good, however the user ID name remains as a hyperlink. When one clicks the user ID hyperlink, one is still directed to the messaging area. I tried removing the entire userlogin line of code and that seemed to work ok, however the user id is not listed anywhere, just the logout hyperlink. I'd like to keep the user ID listed, but just not as an active hyperlink so that there is no way for one of my users to get to the messaging functions.

I also tried replacing the two lines of code as well as offered in the second suggestion, however that caused my homepage to revert to a pre-DNN7 layout.

Thanks,
Kevin
Joseph Craig
DNN MVP
Posts:11667


--
02/26/2014 10:58 PM  
If you look at the default "activity feed" page, which is where you go when you click the username, you will see (in Edit mode) that the page contains several different modules, and you delete pieces that you don't want.

Probably a better approach is to create a custom User Profile page. You can specify that on the Site Settings page, Advanced Settings tab. And if you look at Admin, Page Management, you'll see that each of the pieces are actually separate pages. There is a My Profile page which you can specify as the User Profile Page.

Dig around and you will see that you customize the Activity Feed / My Account / User Profile experience quite a bit just by making some configuration adjustments.

My choice would be to create a custom page, and leave the other stuff there in case you ever want to go back to what's standard. Just disable the pages you ddon't want, and people can never get to them.

Joe Craig, Patapsco Research Group
Complete DNN Support
kevin
Nuke Newbie
Nuke Newbie
Posts:3


--
03/05/2014 10:59 AM  
Great idea Craig! I really don't like to limit, or take away functionality. If I can customize the landing page that my customer sees should he click on the User Profile link, I can control what he gets access to. All the while leaving the base functionality essentially intact.

I'll root around and see if I can make this approach work for me.

Thanks again for your help.
Kevin
Joseph Craig
DNN MVP
Posts:11667


--
03/05/2014 6:01 PM  
This should be easy. Just duplicate the existing landing page and start removing stuff from the copy.

Joe Craig, Patapsco Research Group
Complete DNN Support
Shalom Keynan
Nuke Newbie
Nuke Newbie
Posts:1


--
08/06/2015 5:31 AM  
I agree with Joe, the best approach is not to modify pages but use the existing functionality of DNN.
Since admin doesn't have a simple check boxes to add remove messages and notification you can address it at the following way.
First address navigation thus if someone clicks on the icons they will be navigated to the place of your choice

Follow the seteps specified by Joe
Click on the icon and go to edit mode
Remove permissions and in advance settings -> Other Settings /link URL: select redirection to a page on your site
Note: it will remove access and navigation
should you need to go back and find the page settings go to Admin -> Page management -and search for messages
the page will appear under profile



Second hide these icons from site
This can be done by changing style sheet
Open Admin ->Site settings -> Stylesheet Editor
Add the following at the and of your stylesheet

.userNotifications
{
 visibility: hidden;
  width:1px;
}

.userMessages 
{
   visibility: hidden;
    width:1px;
}


---