2
Hi Wolfseye,
You can do this by making some little mofifications in the code.
Edit the file mydownloads/modfile.php. After the line 30 :
Quote:
include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php";
Insert this line :
// Remove the access to this page
redirect_header("javascript:history.go(-1)",2,_NOPERM);
exit();
Once there lines are added to this page, when someone will try and access the modify page, he will be redirected to where he was before, and he will see this message :
Quote:
Sorry, you don't have the permission to access this area.
Now, if you'd like to hide the 'Modify' link on each download, you will need to edit the template mydownloads_download.html to remove this part of the code arount line 25 :
| <a href="<{$xoops_url}>/modules/mydownloads/modfile.php?lid=<{$down.id}>"><{$lang_modify}>a>
Hope this helps !