1
Wolfseye
How can I disable MODIFYING DOWNLOADS ???
  • 2004/7/14 10:52

  • Wolfseye

  • Just popping in

  • Posts: 11

  • Since: 2004/6/29


Hi...

I have a little problem. On my Download Site, we managed to make sure, that Leeching is not possible. And the original DL Folder will not come out. But how can I change that, when just by clicking on MODIFY below each Download everyone can see the original File Folder ???

How can I turn this off completely, so no Modification Request can be made ???

In the preferences I saw something like ENABLE SPECIFIC EVENT and there i could unmark GLOBAL: MODIFY FILE REQUEST !!! But this seems not to stop this, because the MODIFIY is still clickable. Please help me and tell me how to disable that function totally ....

Wolfseye

2
marcan
Re: How can I disable MODIFYING DOWNLOADS ???
  • 2004/7/14 12:35

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


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 !

Login

Who's Online

184 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 184


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits