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 itNote: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.
ChangelogVersion 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
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.3Thank you :)
Updated!
Version 1.1 is out!
Major fixed fixed due to which 1.0 was taken of.
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
Its not only guest, It is a member group permission.
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.
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.
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...
Perhaps give the domain extension to?
???
http://www.DaOmAsTeR I dont think is the domain.,
Where is .com, .net or whatever?
Sorry, www.DaOmAsTeR.de
I see,
What forum language are you using? Make sure it is English not English-utf8. See admin > Server Settings.
Or copy
// TP Dl Failed strings....
$txt['tpdl_failed_error'] = 'An error has occurred with the download you requested. Please try clearing your browser\'s cache and then try downloading the file. If this does not work, contact forum\'s administrator. ';
$txt['tpdl_failed_title'] = 'Download access denied';
$txt['tpdl_failed'] = 'Sorry, but You don\'t have the permission to download files from the download section.';
$txt['permissionname_tp_dldownload'] = 'Download items';
$txt['permissionhelp_tp_dldownload'] = 'Weather allow to download the item or not. This wont determine weather to allow view the item or not.';
Before the ?> In your Modifications.english-utf8.php in /Themes/default/languages.
I'm not using UTF8. My Modificatiosn.english.php is correct...
Ok after going deeper I found your theme has a Modifications.english.php in its languages folder (See /Themes/Themename/languages). Copy the Modifications.english.php from Default language directory and paste it there.
Perfect, its working. Thank you..
Great :).
Hope you like it.
Yeah it's cool, but now i get the message:
!!Attention of pdx-dk theme:
You should put "Modifications.english.php" on the "languages" directory ( http://daomaster.da.ohost.de/Themes/PDX-DK/languages/ ) in the theme of pdx-dk.
Copy "Modifications.english.php" of the "languages" directory of PDX-DK onto the first. Next, rename it according to the language for which you use the file.
But everythings right!!
Thats much of a Theme functioning.
No one liked it? 0.o
So you have to created a membergroup like "Guests" to apply this mod?
No, Go to Admin > Permissions and there under "Tinyportal Downloads" will be a new permission "Download Item".
Ok, you know there is something weird, I see the box that I need to check but there is not text next to it?
Whats your forum's language? Probably the language strings are not there.
it;s set to english
English or English-utf8?
Check in your Admin > Server settings
If it is UTF8, set it to English plain
hmm... its set to plain english.
Does your theme also have a Modifications.english.php in its languages folder? If so copy/paste its strings before the files "?>".
awesome mod, works great.
Thanks :)
A File for TP 1 attached!
Hello
I habe a problem:
I'm using TP 1.0 and your mod.
With Opera, i can't download anything while your mod is activated. opera downloads a ".htm" instead of the file. when i turn off the mod it works fine.
thx
.htm file?
Are you sure you used THIS mod only?
Yes i've used only this mod...
In IE it works perfectly, and in opera only if you're not logged in.
But if you're logged in and use opera it downloads a .htm
Can I have a link to the site and a demo acount?
Yes you can...
I will send you per PM
Another great mod for this great coder , thanks ^^