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 ...How to hide Mode: View Edit block?How to hide Mode: View Edit block?
Previous
 
Next
New Post
4/25/2007 10:53 AM
 

I don't know what code you are referring to about hiding it with CSS.

This code will remove it on the server, and is not using CSS:

<%
    If Not DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission("EDIT") Then
        ControlPanel.visible = false
    End If
%>

This code keeps the ControlPanel control from being added to the page on the server.
It should not remove any available links that are displayed in your calendar module, but if it is, then maybe your calendar module depends on the ControlPanel for some reason.

You can also try setting the cache time to -1 in module settings.


DotNetNuke Modules from Snapsis.com
 
New Post
4/26/2007 4:12 AM
 

Ups....

I have to apologize 1000 times. I was working on three issues at the same time and mixed them up in my brain (it's time for vacation, i guess)

One was fixed in fact by changing the CSS, but this issue here....yes, i added the line <%...%> in the corresponding / used ascx-file of the skin. And then the panel won't appear.

However, when the panel is hidden, the users normally having rights to add events to the standard event-module from dnn, can't add events as the "link" in the lower left corner of the module is hidden, too.

For testing purposes i removed the line from the ascx, so the panel will appear for non-admin-users if there is a module (like events) on the page and then the "Add Event"-Links will come up when switching first to Edit-Mode.

Even when i'm logged in as the admin, the Panel will be visible of course, when in View-Mode, i cannot add events. I have to switch into Edit-Mode.

Strange effect when setting the cache time to -1 and in view-mode, only the module frame will stay visible, the whole month view (set ot "only view") won't be visible.

Again, i'm using the standard Event-Module from DNN in the latest version.
And what (not only) i wanna have is that if an user has the right to add events he just should has it without clicking on Edit. The Panel shouldn't be visible at all to everybody (but the admin).

 

 
New Post
4/26/2007 1:47 PM
 

Ok, I believe I know what the problem is.

Since they can't see the mode selector, they can't switch into Edit mode and it has them stuck in View mode.

The action menu items also use this UserMode setting to decide if the action items should be displayed.

You should be able to go into the Site Settings and set the Mode for the site to Edit instead of View.  This will take care of the users that do not already have that mode set in the database.

So, if you still have a specific user that does not have their mode set specifically to View in the DB they'll still be stuck in View mode.

What a mess...

 


DotNetNuke Modules from Snapsis.com
 
New Post
4/27/2007 2:28 AM
 

I'm going mad.....

Allthough i made the setting in the Portal to Standard = Edit, it is not working.

Then, just a test, i created a new user and it is working like desired with the new user. No Panel up-left and having the ADD-Event-"Link" in the Events-Module.

I had a look into USERS of the DB but can't see any difference. Where the hack are these information stored?
I compared an old user (not working as desired) and the new user (working as desired). They both are having the same UserRoles, so the same ROLEIDs which is in ModuleDefinition set accordingly to "2", which means Edit-Rights, doesn't it?

I really don't know what to do, i can't create all the users again.

 
New Post
4/27/2007 8:47 AM
 

They are in the ProfileDefinitions table, if you delete the UserMode records from there they should all act like new.


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to hide Mode: View Edit block?How to hide Mode: View Edit block?


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