TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 629
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 524
  • Total: 524

Download Manager's Download item permission [Now updated for TP 1!]

Started by Megaforum, September 28, 2007, 11:46:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon

Version 1.1 is Out! It fixed many errors and bug from 1.0, and is much better. The major bug has been fixed, due to which 1.0 was taken of.



Author : Dragooon
Version : 1.1
Name : TP Downloads Download item permission



This will add a Permission, weather to let users download a file or not. Which can be accessed via
Admin > Permissions > <membergroup> > "Download item". This does NOT determine weather to show the item or not.

Automatically installs on every theme.

This is a package manager mod which simply can be installed via Package manager.

Note:By default this is disabled for everyone else than Admin, Don't forget to enable it
Note:Make sure to uninstall this before you Upgrade/Uninstall TP



Tested with:
TP 0.9.8
SMF 1.1.3, 1.1.4
SMF Default Theme - Core.

Changelog

Version 1.1

  • Improved language strings
  • Improved the download failure functioning
  • Moved tpdlfail() function to TPdlmanager.php
  • Moved tpdlfail() template function to TPdlmanager.template.php
  • Fixed a major caching issue which made quite a lot of changes
  • Now if a DL's access denys It is redirected to ?action=tpmod;dl=fail
  • Added session IDs to Download URLs due to the caching issue
  • Improved ReadMe

Version 1.0

  • Initial Release


File Attached, Must be logged in to download the file.


If you find any errors, bugs or have any questions feel free to post here.

2nd April 08 - TP_DL_Download_permission-v1.1-TPv1.zip is the file for TinyPortal 1.0 Beta, the other file is for TP 0.9.8.3

Thank you :)

Dragooon

Updated!
Version 1.1 is out!
Major fixed fixed due to which 1.0 was taken of.

Neorics

yeah... works great... good mod if you want your guest be able to view the download section but not let them download unless they log in

Dragooon


Daomaster

Is there a possibility to show a text if a guest wants to downlaod something. At my homepage guests only see the frame when they try to downlaod something, but no error message or something like this.

Dragooon

What you mean by "Text message"?
If a user is not allowed it is redirected to a new page showing a message.
If you want to show something like "You are not allowed to download the file" under the download's description I'll work on it. It wont be that hard.

Daomaster

Quote from: Dragooon on October 04, 2007, 05:50:06 PM
If a user is not allowed it is redirected to a new page showing a message.

No, at my Homepage http://www.DaOmAsTeR there's no error message if somebody try to download something...

Dragooon



Dragooon

http://www.DaOmAsTeR I dont think is the domain.,
Where is .com, .net or whatever?

This website is proudly hosted on Crocweb Cloud Website Hosting.