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...Module ForumsModule ForumsRepositoryRepositorydisable Moderation button, and reading downloaded document.disable Moderation button, and reading downloaded document.
Previous
 
Next
New Post
6/12/2008 10:40 AM
 

Hi,

I would like to change the behavior of the "MODERATE" button by setting it invisible - how can I set moderation button invisible? I just want a simple, no build-in security, so that registered users can deposit/download documents into the site. And I have set the settings of the repository module as filelist for skin, all users to have moderation, download, upload roles.

How can I set the file location different from the default location?

How can I get the list of the download files programmatically? and read one of the file in?

Please kindly helping me understand this module a little more. Thank you very much.

 

 
New Post
9/18/2008 2:59 PM
 

Nix,

I came here looking for the same thing - I don't want to moderate the files.  Did you get an answer from anyone?

Thanks,

Chris

 
New Post
9/18/2008 4:54 PM
 

Actually, there is another post that has the answer:  in the Repository Settings, just check Moderate for all roles.... Easy, if not quite intuitive (by which I mean you're not turning moderate *off* per se, but rather giving everyone full control).  It amounts to the same thing, approached from opposite ends.

Works for me.

Thanks,

Chris

 
New Post
9/21/2008 11:09 PM
 

Here is what I did:
  Went to the \DesktopModules\Repository\Templates directory and copied the filelist folder to a name of my own.
  Edited the header.html file to have a span tag around the [MODERATE] button.
    ie: <span id="myModerateButton">[MODERATEBUTTON]</span>
  Added this script to the header.html file:
    <script type="text/javascript">
    var myObject = document.getElementById('myModerateButton').getElementsByTagName('INPUT').item(0);
    if ( myObject != null ) {
      if ( myObject.value == 'MODERATE (0)' ) { 
        myObject.style.display = 'none';  
      };
    }; 
    </script>
  Then used the new template instead of filelist. 

 
New Post
9/22/2008 9:49 AM
 

There is an easier method. EVERY token can be restricted to a specific security role or list of roles. in the XML file, add a setting named "Roles" and then set the value to a role name or comma delimited list of role names. Then only people who are a member of a specified role will see the token.

So, to hide the moderate button, change the MODERATEBUTTON token in the header.xml file to look like this... 

 <Object>
  <Token>[MODERATEBUTTON]</Token>
  <Settings>
   <Setting>
    <Name>Roles</Name>
    <Value>HideThis</Value>
   </Setting>
  </Settings>
 </Object>

The code does not validate the rolename, it just checks to see if the user is a member. So if you enter a role that doesn't exist, then obviously no one would be a member, so no one would ever see the Moderate Button.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositorydisable Moderation button, and reading downloaded document.disable Moderation button, and reading downloaded document.


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