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 ...hiding admin barhiding admin bar
Previous
 
Next
New Post
5/22/2007 9:01 AM
 

hi, i have dnn 3.3.7 and i'd like to add a bit of javascript to allow administrators to hide the top horizontal admin bar that has 'page functions' and other bits in. I'm guessing I just need to do a bit of JS that will give a link for 'show/hide' with placing a <div> around a control or html table.

where should i be looking to place this code? i cant see anything in default.aspx or in my module skin.

any help much appreciated

 
New Post
5/22/2007 9:08 AM
 

You can look in the latest versions of DNN 4.5.1+ to get an example of how to do this.


DotNetNuke Modules from Snapsis.com
 
New Post
5/22/2007 10:11 AM
 

ahevans wrote

hi, i have dnn 3.3.7 and i'd like to add a bit of javascript to allow administrators to hide the top horizontal admin bar that has 'page functions' and other bits in. I'm guessing I just need to do a bit of JS that will give a link for 'show/hide' with placing a

around a control or html table.

 

where should i be looking to place this code? i cant see anything in default.aspx or in my module skin.

any help much appreciated

Used this for something else, but Im sure it would work with some tweaking.

Wrap the Menu with this:

<div id="MyDiv" style="position:absolute; top: -100px; left: -100px;">
</div>

Add this js:

<SCRIPT>
function hide(div) {
       
  if (document.getElementById)
     document.poppedLayer = eval('document.getElementById(div)');
  else if (document.all)
     document.poppedLayer = eval('document.all[div]');
  else
     document.poppedLayer = eval('document.layers[div]');
  document.poppedLayer.style.display = "none";
 
}

function show(div) {
  if (document.getElementById)
     document.poppedLayer = eval('document.getElementById(div)');
  else if (document.all)
     document.poppedLayer = eval('document.all[div]');
  else
     document.poppedLayer = eval('document.layers[div]');
  document.poppedLayer.style.display = "block";
  document.poppedLayer.style.top = "155px"
  document.poppedLayer.style.left = "1px"
}
</SCRIPT>

then add the "show" and "hide"

<a href=" show('MyDiv');"><b>Show</b></a>&nbsp;::&nbsp;
<a href=" hide('MyDiv');"><b>Hide</b></a>

 

 


Eric MacKenzie
 
New Post
5/23/2007 8:50 AM
 

hi, thanks for the code, i have that part pretty much covered, but what physical files in dnn 3 would i use to implement it?

regards

 
New Post
5/23/2007 8:53 AM
 

The ControlPanel file is at:

<root>/admin/ControlPanel/IconBar.ascx


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...hiding admin barhiding admin bar


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