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...Skins, Themes, ...Skins, Themes, ...Members Only LayerMembers Only Layer
Previous
 
Next
New Post
7/28/2009 3:30 PM
 

Please read this before replying to my post:    I am fully aware of how to create permissions on pages and modules, however my issue below is not addressed by these options, which is why I am posting my question again.

I want to create a footer for my site - inside a specific CSS layer - that is visible to the logged in user only.

The actual layer itself will be fixed to the bottom of the screen and only about 250 pixels high.  It's this layer that I want to be invisible to users not logged in which is why I need to do it via a layer in the skin.

Setting page permissions or module permissions will not work because I need this layer open all the time, regardless of what page the user is on, ie the layer will not change if you go to a different page.

For security reasons I will still create permissions for any modules in this layer so they are seen by the registered users only, however I still want the layer itself to not show to anyone not logged in.

Can anyone offer advice on how to do this?

Thanks

 
New Post
7/29/2009 5:19 AM
 

Well, I would think you could simply set the layer's css class to "display: none" as the default setting, and then employ javascript in the skin that checks to see if the user is logged in, and if so it then does a find element by id and either removes the "display:none" or assigns a new class altogether to the layer that does not have display:none.  I'm sure it could be done, but I'm not a programmer so I can't tell you the exact code to accomplish this.  Javascript or jquery should be able to handle this, though. 


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/29/2009 5:27 AM
 

You know, this could probably be accomplished with a container and module, too, without any special programming.  Just create a special container that has the background of the layer and set it to 100% width of that layer's content area.  If the container you want to use in this layer has a different background color or images, you could simply hard-code the container images to surround the containers content pane while having the layer background surround the container background, so you'd have a nested container so to speak.  A container with the layer background built in to it.   Then you could use just the module permissions to display the container and not have to worry about figuring out the javascript or jquery.  Of course, this would only work if you are only using one module in that layer.  If you need to use more than one module in this hidden layer area, then you would have to use javascript or something else to change out the classes or css attributes.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

New Post
7/29/2009 6:13 AM
 

Thanks for the replies.   Actually I was thinking about this method, let me know what you think.

 

1.  Create a layer that is positioned above the other page layers and give it a unique name in the skin

2.  Set the properties of this layer to be fixed to the bottom of the page and the background to be invisible, ie transparent

3.  Insert a module that shows different content depending on the user permission.   (I know there are some out there on Snowcovered)

4.  Make the modules that I want to be shown appear to registered users only  and the rest see nothing.

 

What do you think?   It's probably the simplest solution.

 

 

 
New Post
7/29/2009 2:22 PM
 

Setting the layer's background to transparent while fixing it to the bottom of the screen is probably not a good idea.  You'd end up with normal page content showing behind this fixed layer, and if the container used on the module in the fixed layer also had a transparent background, you'd end up with some really jumbled looking content.  Just to be clear, I'm assuming you mean that this "hidden layer" has a fixed position at the bottom of the screen, does not scroll with the page so it's always visible.  If my assumption is correct, I think I would set the background to something at least semi-opaque if not entirely opaque, and then in the skin for the general content that does scroll, make certain that there is enough empty space at the bottom of the page for all the content to be able to scroll up past this fixed layer that rests at the bottom of the screen. 

If you want to leave this layer with a transparent background, make sure you have a container that will look good when it resides overtop other content, for example has an opaque background color or image to avoid any problems with readability.

If I'm misunderstanding and the layer is not a fixed area that does not scroll with the page, then there really wouldn't be any problem with just having a transparent content pane that collapses as normal when the module is not rendered for unregistered site visitors.


JOHN GIESY
DotNetNuke Hosting Expert

DotNetNuke 7 Hosting $70 /year
DNN4Less.com Team DotNetNuke  

Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Members Only LayerMembers Only Layer


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