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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHide the Browse Server button for non-admins onlyHide the Browse Server button for non-admins only
Previous
 
Next
New Post
10/10/2009 3:17 AM
 

I've seen this asked a lot over the past year, but still no solutions. 

I do not want users to be able to browse the server when using the Link toolbar feature in FCK, but I do want admins to be able to.  I've seen posts stating to wrap a permission hack around the button code in the html file... that does not work with the latest DNN/FCK versions.  I realize I can hide the button altogether as it is wrapped in a div tag and display:none could be used—I want admin to be able to use it... just not users.

 
New Post
10/10/2009 11:05 AM
 

using advanced editor options beneath the editor area allows you to specify, which role gets displayed which toolbar set. starting from the top, the first enabled toolbar is used.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/8/2009 9:58 PM
 

I am aware of that.  However, we still want the link and image toolbar buttons to show up -- for all users.  What do do not want, is for them to be able to browse our server from those dialogs.

 
New Post
5/28/2011 6:34 AM
 
You can try this. Make the following changes in the \Providers\HtmlEditorProviders\Fck\fckeditor\editor\dialog\fck_link.fcl_link.js file. It should work on all major browsers. If it doesn't work it will fail safe, i.e. the Browse Server button will remain hidden.

    // Show/Hide the "Browse Server" button.

    // Only show 'Browse Server' button if admin rather than using setting in fckconfig.js.

    // GetE('divBrowseServer').style.display = FCKConfig.LinkBrowser ? '' : 'none';

    GetE('divBrowseServer').style.display = 'none'; // Hide by default.

    try {

        var parentDoc = (document.parent == undefined) ? document.defaultView : document.parentWindow; // parentWindow is IE only.

        parentDoc = parentDoc.parent.parent.document;       

        if (parentDoc.getElementById('dnn_ControlPanel') != null && parentDoc.getElementById('dnn_ControlPanel') != undefined && parentDoc.getElementById('dnn_ControlPanel').innerHTML != "") {           

            GetE('divBrowseServer').style.display = ''; // Show if admin.

        }

    } catch (e) { }

    // End Mod.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHide the Browse Server button for non-admins onlyHide the Browse Server button for non-admins only


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