Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Repository Modu...  disable Moderation button, and reading downloaded document.
Previous Previous
 
Next Next
New Post 6/12/2008 8:40 AM
User is offline nix
16 posts
10th Ranked


disable Moderation button, and reading downloaded document. 

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 12:59 PM
User is offline cnagel
9 posts
10th Ranked


Re: disable Moderation button, and reading downloaded document. 

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 2:54 PM
User is offline cnagel
9 posts
10th Ranked


Re: disable Moderation button, and reading downloaded document. 

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 9:09 PM
User is offline G.A. Hart
5 posts
10th Ranked


Re: disable Moderation button, and reading downloaded document. 

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 7:49 AM
User is offline Steve Fabian
1498 posts
6th Ranked








Re: disable Moderation button, and reading downloaded document. 

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.


Steve Fabian
Gooddogs.com
Sit, Stay, Code ... Good boy!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Repository Modu...  disable Moderation button, and reading downloaded document.
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP