>>  Site Map >>  Forums >>  General 6x

Forum module - topics in forum:



General 6x - Discussions reagarding any other PHP-Nuke Problems.



I have a question on the PHP-NUKE download Module

I would like to know how come I can edit the:
path, desription, file size..etc on a file that has been already uploaded by someone else. What I mean is, I can do this on any PHP-NUKE website and I would love to know if there is a way I can remove this option or have it setup where 'only' the author or uploaded can edit the information.

Thanks
Shedrock Very Happy






Hey Shedrock

When someone uses the modify feature is doesn’t actually modify the download but sends a request to the admin, you will see it on your admin block
Quote: :
Mod. Downloads: 1

It’s basically for someone to fix errors that they might have found in you downloads info, you have to approve the changes before they take effect. You can always decline the changes.

But if you want to change the menu bar anyway and remove the modify link, open the modules/downloads/index.php and find the following function:
Code: :
function downloadinfomenu($lid, $ttitle) {
    global $module_name, $user;
    echo "<br><font class=\"content\">[ "
   ."<a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&amp;lid=$lid&amp;ttitle=$ttitle\">"._DOWNLOADCOMMENTS."</a>"
   ." | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&amp;lid=$lid&amp;ttitle=$ttitle\">"._ADDITIONALDET."</a>"
   ." | <a href=\"modules.php?name=$module_name&d_op=viewdownloadeditorial&amp;lid=$lid&amp;ttitle=$ttitle\">"._EDITORREVIEW."</a>"
   ." | <a href=\"modules.php?name=$module_name&d_op=modifydownloadrequest&amp;lid=$lid\">"._MODIFY."</a>";
    if (is_user($user)) {
   echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&amp;lid=$lid\">"._REPORTBROKEN."</a>";
    }
    echo " ]</font>";
}

Rwplace the function with this that link doesn’t appear:
Code: :
function downloadinfomenu($lid, $ttitle) {
    global $module_name, $user;
    echo "<br><font class=\"content\">[ "
   ."<a href=\"modules.php?name=$module_name&d_op=viewdownloadcomments&amp;lid=$lid&amp;ttitle=$ttitle\">"._DOWNLOADCOMMENTS."</a>"
   ." | <a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&amp;lid=$lid&amp;ttitle=$ttitle\">"._ADDITIONALDET."</a>"
   ." | <a href=\"modules.php?name=$module_name&d_op=viewdownloadeditorial&amp;lid=$lid&amp;ttitle=$ttitle\">"._EDITORREVIEW."</a>";
   
    if (is_user($user)) {
   echo " | <a href=\"modules.php?name=$module_name&d_op=brokendownload&amp;lid=$lid\">"._REPORTBROKEN."</a>";
    }
    echo " ]</font>";
}


As Always Enjoy




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS