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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to remove the red color border around the module when page is set to be viewed by adminHow to remove the red color border around the module when page is set to be viewed by admin
Previous
 
Next
New Post
11/14/2008 1:12 AM
 

Hi,

 

I want to remove the red border around the module in a page which is displayed automatically when i set the page settings to be viewed by the administrators only. I was able to remove the text that displayed but coudnt remove the red border color.

Please help how to remove it.

 

Thanks

 
New Post
11/14/2008 2:45 AM
 

AFAIK this requires a core code change. The easiest option to achieve your goal would be to create a second role with no members and grant access to it for the module.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/14/2008 10:30 AM
 

Sebastian is correct; the border-color style is set on the DIV tag itself, instead of via a stylesheet class. 

DNN 5.0 does not exhibit this behavior (there is no such admin-only differentiation, as far as I'm aware).  Your best bet is probably just to deal with it until 5.0 is released.

Brandon

 


Brandon Haynes
BrandonHaynes.org
 
New Post
11/15/2008 8:45 AM
 

So i have to create one user who can do it. This red color border cannot be removed. Ok Thanks for the help

 
New Post
11/15/2008 9:12 AM
 

Yeah this is one of those other why didnt they think this ove better issues you un into

 

the do have NormalRed class for the messgelabel but hat they do is for thsi part is inject a style instead of a class

 

style="border-top:2px #FF0000 solid;border-bottom:2px #FF0000 solid;border-right:2px #FF0000 solid;border-left:2px #FF0000 solid;"


the class is applied to each contentpane so what you can do is use javascript and after the page is loaded set the border style to 0 on all divs with and id that contains "Pane"



If this is solved in 5 then i would wait for 5 but if you realy need it i woul use the jquery javascript framework and then you can solve it like this put the following code in javascript block at bottom of your skin


$(document).ready(function(){ // Your code here $(‘div[id*=”Pane”]’).css('border','0');
});

small explanation

wait until page i loaded, then check for each div that has an id name that contains "Pane" then reset the css border style back to 0


done by head, not tested but this is the  way to approach it


 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to remove the red color border around the module when page is set to be viewed by adminHow to remove the red color border around the module when page is set to be viewed by admin


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