Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: JayBachatero on August 01, 2006, 11:01:33 PM

Title: Attachments Download Permission
Post by: JayBachatero on August 01, 2006, 11:01:33 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=406)

This mod will split the current View Attachments permission into two.  View Attachments and Download Attachments.
Title: Re: Attachments Download Permission
Post by: qtime on August 02, 2006, 05:01:51 PM
Thanks for this great feature!!!

But I like to ask a second option, I am looking very long for this in 1.1 RC2

Is it possible to see attached images (not only the link but also the preview), but not to download attached files???

Or a second attachement file option a membergroup, like guests can see attechement up to 1 Mb and members up to 100 Mb ???
Title: Re: Attachments Download Permission
Post by: JayBachatero on August 02, 2006, 07:54:40 PM
I believe this does the same for images.  Didn't try out the mod with images.

The second option would be a bit more advanced.  Need to look at it in the future.  When ever i have time that is.
Title: Re: Attachments Download Permission
Post by: qtime on August 03, 2006, 04:07:26 AM
thx for responding, if it's difficult to create time, I can pay you, not too many $$$ but enough to think about it ;)
Plz PM me.
Title: Re: Attachments Download Permission
Post by: JayBachatero on August 03, 2006, 12:53:29 PM
Time is the problem ;).  If I had the time I would look into it.  Maybe in a month or so.
Title: Re: Attachments Download Permission
Post by: qtime on August 03, 2006, 12:57:41 PM
Ok, will be great.
I will send you some time (in minutes and a few seconds ;) )
Title: Re: Attachments Download Permission
Post by: JayBachatero on August 03, 2006, 12:58:45 PM
lol ok.
Title: Re: Attachments Download Permission
Post by: JayBachatero on August 15, 2006, 03:06:17 PM
Umm do you have RC3?
Title: Re: Attachments Download Permission
Post by: JayBachatero on August 16, 2006, 01:50:18 AM
Oh ok.  Well it should work on RC3.
Title: Re: Attachments Download Permission
Post by: VicViper on September 01, 2006, 09:00:13 AM
I just installed this, everything went fine, but I have no clue where to configure this mod. There aren't any additional options in the permissions configuration and unregistered guests can still not see attachments at all.
Title: Re: Attachments Download Permission
Post by: JayBachatero on September 01, 2006, 01:42:46 PM
This is where the other attachments permissions are located.  Check to see that language strings are there.
Title: Re: Attachments Download Permission
Post by: VicViper on September 01, 2006, 04:35:41 PM
Quote from: Jay The Code Monkey on September 01, 2006, 01:42:46 PM
Check to see that language strings are there.
Where exactly do I check for these strings?
Title: Re: Attachments Download Permission
Post by: JayBachatero on September 02, 2006, 12:13:46 AM
Umm ManagePermissions.english.php if I'm correct.
Title: Re: Attachments Download Permission
Post by: VicViper on September 02, 2006, 10:49:28 AM
Quote from: Jay The Code Monkey on September 02, 2006, 12:13:46 AM
Umm ManagePermissions.english.php if I'm correct.

The file doesn't seem to be altered in any way. So which strings do I need to add manually? And shouldn't this already be done by the Package Manager?
Title: Re: Attachments Download Permission
Post by: JayBachatero on September 02, 2006, 02:35:07 PM
Look at the install.xml file and the language strings are there.
Title: Re: Attachments Download Permission
Post by: 1964 on October 09, 2006, 01:59:31 AM
Please, see this topic http://www.simplemachines.org/community/index.php?topic=118961.0 don't want to post all again.

Thanks, really like this mod though, and want to use it.
Title: Re: Attachments Download Permission
Post by: JayBachatero on October 09, 2006, 02:08:33 AM
Did you check to see that the permissions where set correctly?
Title: Re: Attachments Download Permission
Post by: 1964 on October 09, 2006, 02:11:26 AM
Quote from: JayBachatero on October 09, 2006, 02:08:33 AM
Did you check to see that the permissions where set correctly?

Yes, checked and checked(about dozens times), both guest permission and guest board permission.
Title: Re: Attachments Download Permission
Post by: 1964 on October 09, 2006, 02:16:03 AM
For the sake of this topic, will reinstall mod, and make sure permissions are set correctly.

Edit: [link removed] photo not showing for guests with this mod in place, just guests can not, and when I log in image will download, have guests only view and not download attachments, checked and rechecked permissions.
Title: Re: Attachments Download Permission
Post by: JayBachatero on October 09, 2006, 02:57:16 AM
Ok I get what you mean now.  its actually how I wrote the mod.  For images it doesn't make sense to show them but not allow to download since you can just right click and save as.  If you want ill give you the changes necessary to do this.
Title: Re: Attachments Download Permission
Post by: 1964 on October 09, 2006, 03:30:20 AM
Quote from: JayBachatero on October 09, 2006, 02:57:16 AMIf you want ill give you the changes necessary to do this.
Please do, thank you, well, guess I just misunderstood what this actually did, no matter, I like it.
Title: Re: Attachments Download Permission
Post by: 1964 on October 10, 2006, 05:13:10 AM
Quote from: 1964 on October 09, 2006, 03:30:20 AM
Quote from: JayBachatero on October 09, 2006, 02:57:16 AMIf you want ill give you the changes necessary to do this.
Please do, thank you, well, guess I just misunderstood what this actually did, no matter, I like it.

Anything, please.
Title: Re: Attachments Download Permission
Post by: JayBachatero on October 10, 2006, 08:29:27 AM
I was looking at it and it seems like there is no way to do this w/o allowing the members to download the files.
Title: Re: Attachments Download Permission
Post by: 1964 on October 10, 2006, 08:51:35 AM
Quote from: JayBachatero on October 10, 2006, 08:29:27 AM
I was looking at it and it seems like there is no way to do this w/o allowing the members to download the files.

You mean since guests wouldn't be able to download that would be same for members as well, seeing red x's doesn't make any sense. ;)
Title: Re: Attachments Download Permission
Post by: JayBachatero on October 10, 2006, 08:54:20 AM
It shows that for members also?
Title: Re: Attachments Download Permission
Post by: Alice on October 21, 2006, 02:44:29 PM
Does anyone know how to edit the display file for 1.0.8 forums?  When I install it it says Failure for the display file.  I would really like to use this mod  :(
Title: Re: Attachments Download Permission
Post by: JayBachatero on October 22, 2006, 12:49:32 AM
I think this option exists in 1.0.8.
Title: Re: Attachments Download Permission
Post by: VicViper on November 17, 2006, 08:43:13 AM
I'd like to report an odd behaviour of this mod on my 1.1 RC3 installation:

When I'm logged out (don't have permission to download attachments) and click on one, everything is fine and I get the permission denied error prompting me to login or register.

But when I log in to my account a few minutes later from the board index, the download dialogue for the requested attachment suddenly pops up.

I can understand that the request is saved so it can be processed when you login when prompted, but I don't see why it should still be active when I have visited an entirely different site in the meantime and come back minutes later to my forum to just log on. The request also seems to be active for every member loging on to his/her account on the same computer (even for those who didn't even request the download).

I think this might pose a serious security flaw.
Title: Re: Attachments Download Permission
Post by: JayBachatero on November 17, 2006, 10:48:54 AM
I don't see how this mod can cause that since it's just a simple permission change.  I'll look more into this though.  What browser are you using?
Title: Re: Attachments Download Permission
Post by: VicViper on November 17, 2006, 11:08:22 AM
Quote from: JayBachatero on November 17, 2006, 10:48:54 AM
I don't see how this mod can cause that since it's just a simple permission change.  I'll look more into this though.  What browser are you using?
Just tested. It's doing the same thing in Firefox 2.0, IE 6 and Opera 8. It's like a time paradox, really weird.

Once I have clicked an attachment that I'm not permitted to download, the forum prompts me with a download window as soon as I log on at a later time with whatever account on that computer/IP.
Title: Re: Attachments Download Permission
Post by: JayBachatero on November 17, 2006, 11:09:42 AM
uninstall the mod and try it out and see if it works correctly.
Title: Re: Attachments Download Permission
Post by: VicViper on November 17, 2006, 11:38:33 AM
Quote from: JayBachatero on November 17, 2006, 11:09:42 AM
uninstall the mod and try it out and see if it works correctly.

Didn't change anything. The only way of cancelling the download request is by closing the browser. Otherwise, the next person to log on (on the same computer) is prompted with the download window.

It does make sense in a way, but after declining the initial login prompt with the permission error, the request should be cancelled, right?

It doesn't seem like an issue with the mod, but rather with the way SMF itself handles downloads ... it's still annoying. I asked some of my members to test this as well - I'm expecting first reports shortly.
Title: Re: Attachments Download Permission
Post by: JayBachatero on November 17, 2006, 07:58:18 PM
How big are the attachments?
Title: Re: Attachments Download Permission
Post by: nitins60 on December 23, 2006, 08:46:21 PM
Quote from: JayBachatero on August 01, 2006, 11:01:33 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=406)

This mod will split the current View Attachments permission into two.  View Attachments and Download Attachments.
still rc2? Now it's 1.1.1, please update yr mod! Looking forward @it!
Title: Re: Attachments Download Permission
Post by: shaka on December 25, 2006, 07:47:20 PM
can we please have an update for this to 1.1.1  :D
Title: Re: Attachments Download Permission
Post by: buhaychat.com on December 27, 2006, 06:20:00 PM
Using 1.1.1, this mod downloaded & installed fine via Package Manager, but afterwards when going to the Permissions section in admin, it looks all corrupted and no longer displays the Modify links
Title: Re: Attachments Download Permission
Post by: VicViper on December 30, 2006, 09:48:43 PM
Quote from: JayBachatero on November 17, 2006, 07:58:18 PM
How big are the attachments?
Attachments range from < 1 MB to ~ 10 MB. It's happening with all attachments regardless of their size. Once you get the permission denied error, the next person to log on to the forum on the same computer will be prompted with the download window.

See original post describing the problem here (http://www.simplemachines.org/community/index.php?topic=103259.msg814824#msg814824).
Title: Re: Attachments Download Permission
Post by: buhaychat.com on December 30, 2006, 10:00:44 PM
Uninstalled the mod, but now my permissions section in admin still no worky. :(
Title: Re: Attachments Download Permission
Post by: JayBachatero on December 31, 2006, 03:03:16 AM
Quote from: buhaychat.com on December 30, 2006, 10:00:44 PM
Uninstalled the mod, but now my permissions section in admin still no worky. :(
This seems to be a language string error.  Reuplaod your language dir.

Quote from: shaka on December 25, 2006, 07:47:20 PM
can we please have an update for this to 1.1.1  :D
Should work on 1.1.1
Title: Re: Attachments Download Permission
Post by: shaka on January 05, 2007, 01:59:25 PM
when i click on apply mod i get this error

Execute Modification ./Sources/ManagePermissions.php Test failed
Title: Re: Attachments Download Permission
Post by: JayBachatero on January 07, 2007, 11:38:57 PM
Conflict with another mod that you have installed.  You can make the change to it manually.
Title: Re: Attachments Download Permission
Post by: shaka on January 08, 2007, 05:02:54 AM
can you tell me what i need to change  ???
Title: Re: Attachments Download Permission
Post by: buhaychat.com on January 09, 2007, 02:40:02 AM
Quote from: JayBachatero on December 31, 2006, 03:03:16 AM
Quote from: buhaychat.com on December 30, 2006, 10:00:44 PM
Uninstalled the mod, but now my permissions section in admin still no worky. :(
This seems to be a language string error.  Reuplaod your language dir.

I did... still doesn't work...

Hrmm, I guess I'll just download the clean language files from smf and reupload to my server...

*crossing fingers*
Title: Re: Attachments Download Permission
Post by: buhaychat.com on January 14, 2007, 04:15:50 AM
"It seems that you are not allowed to download or view attachments on this board."

If you uncheck the Download box for this mod in Permissions (to disallow users from downlaoding images), does that also disallow them from viewing the attachments?
Title: Re: Attachments Download Permission
Post by: VicViper on January 16, 2007, 09:22:52 AM
Jay, can you please look into the problem I'm having with this mod. When guests click on an attachment download link, they're being redirected to a login page. When they go back to the thread without logging in, the next person to log in from the same computer is being prompted with a download window for that attachment! Oh and for some reason, your mod allows guests to download GIF image attachments despite them not having download permissions. :-(

I've tested this myself on various machines with different browsers and it's happening every time. All my users are reporting the same problem.
Title: Re: Attachments Download Permission
Post by: JayBachatero on January 16, 2007, 10:23:05 AM
Seems like I have to work on this mod a bit more.  I'll try to take some time to look into it.
Title: Re: Attachments Download Permission
Post by: VicViper on January 16, 2007, 12:21:15 PM
I'd very much appreciate this. Maybe you can even add an option to show attachments without links (or just a note saying that you have to login). That would be the perfect solution for me.

Oh and you might want to make your mod compatible with the latest release of SMF, although I think it will already work with it (still using RC3 here).
Title: Re: Attachments Download Permission
Post by: shaka on January 31, 2007, 08:34:07 PM
I have this mod installed i have set it to let members see the preview jpeg image but not be able to download the zip file the problem is the members that are set to able to view but not download can't view the image
Title: Re: Attachments Download Permission
Post by: JayBachatero on January 31, 2007, 11:56:27 PM
I'll have to look into the logic for this mod and see if I can make it work better.
Title: Attachments Download Permission
Post by: wodk on February 22, 2007, 12:22:02 PM
SMF Version: SMF 1.1.2
Hello all !
I've install the package Attachments Download Permission to test and i've got problem to change the filesize limite (128ko)
I'm a new user of SMF is there a solution to stup the limit file size in this mod ?
Title: Re: Attachments Download Permission
Post by: JayBachatero on February 26, 2007, 09:54:25 AM
Quote from: wodk on February 22, 2007, 12:22:02 PM
SMF Version: SMF 1.1.2
Hello all !
I've install the package Attachments Download Permission to test and i've got problem to change the filesize limite (128ko)
I'm a new user of SMF is there a solution to stup the limit file size in this mod ?
This mod has nothing to do with filesize limits.
Title: Re: Attachments Download Permission
Post by: shaka on February 26, 2007, 10:55:35 AM
Quote from: JayBachatero on January 31, 2007, 11:56:27 PM
I'll have to look into the logic for this mod and see if I can make it work better.

Did you have any luck looking into this Mod?
Title: Re: Attachments Download Permission
Post by: wodk on February 27, 2007, 12:33:43 PM
JayBachatero i think you are wrong when i try to upload a 2048 Ko file i've got this message :

An Error Has Occurred!
Your file is too large. The maximum attachment size allowed is 128 KB. 
Title: Re: Attachments Download Permission
Post by: shaka on February 27, 2007, 06:43:27 PM
Quote from: wodk on February 27, 2007, 12:33:43 PM
JayBachatero i think you are wrong when i try to upload a 2048 Ko file i've got this message :

An Error Has Occurred!
Your file is too large. The maximum attachment size allowed is 128 KB. 


check your settings in the admin panel under attachments & avatars
Title: Re: Attachments Download Permission
Post by: JayBachatero on February 28, 2007, 10:06:05 AM
Quote from: wodk on February 27, 2007, 12:33:43 PM
JayBachatero i think you are wrong when i try to upload a 2048 Ko file i've got this message :

An Error Has Occurred!
Your file is too large. The maximum attachment size allowed is 128 KB. 

Like I said before.  This mod has NOTHING to do with filesizes.  Check your settings.
Title: Re: Attachments Download Permission
Post by: wodk on March 02, 2007, 11:57:12 AM
thanks ! it works
Title: Re: Attachments Download Permission
Post by: tsmalmbe on March 14, 2007, 07:26:52 PM
The matrix of permissions now has three items:

SEE | DL
---------
  X     O
---------
  X     X
---------
  O     O


Although this might seem really odd, but I do need the fourth option which is: cannot see the attachemtn BUT can download it. This has to do with dragging mp3-files into winamp: the logged-on user can see the attachments and drag the attachment to winamp, and then winamp is a "guest", who needs to be able to download the file. When a "real" guest is browsing the forum, he/she may not see the files (and thus the probability of them finding the attachemnts is nearly 0%).

Thanks for listening. Any possibility to get this change to the mod?
Title: Re: Attachments Download Permission
Post by: tsmalmbe on March 16, 2007, 05:47:28 PM
After looking at the mod, i am inclined to say that it doesn't do whatit promises. It does not change the original behaviour ov the "view attachment permission". The original "view attachment permission" remains as "view and download"-permission, and the new permission is "view-only"-permission.

So I changed the mod. Of course this makes it kindof a new mod. My mod modifies the original permission to become a "view-only"-permission, and adds a "download-only"-permission. With my mod you can then actually allow a guest to download an attachment, without seeing it. Apart from the obvious reason that I needed this change, I think this makes the permissions in general more manageable. The checkboxes actually do what they promise, view, download, both or neither.

Should I upload this "new" mod to this thread, or as a totally new mod?

Title: Re: Attachments Download Permission
Post by: eSiK on March 16, 2007, 08:14:02 PM
Doesn't work good for me...
When I check the box "view attachments" on Guests permissions - they see no image... only "x" sign saying that there is no picture... They have to have "download attachments" option checked - and then they can see them...
But it shouldn't work that way, huh? :-\

Can this be fixed?! Cuz that mod would be really usefull :)
Title: Re: Attachments Download Permission
Post by: tsmalmbe on March 17, 2007, 07:06:33 PM
OK, lets define download. Downloading means transferring something to the browser. The browser then either displays the content (like images) if it can, or asks to save it to disk (if it cannot display it).

So int this case, if you would have "preview", the image would already have to be downloaded to the browser.

If it is not the preview you are wondering about, but rather would want to get rid of the "X"-image, then it seems like tough luck. The isAllowed-method does not seem to be available in the template, and thus you cannot use it to say something like "if I have the right to see that there's an attachmtn available, show a link, but if I also have the download-permission, also show a thumbnail".

I tested this, and could not use the isAllowed-method in the template succesfully. So changing this is out of my scope at least.
Title: Re: Attachments Download Permission
Post by: tsmalmbe on March 26, 2007, 05:28:27 PM
Here's the version of the mod that allows you to define the full matrix as explained above.

Title: Re: Attachments Download Permission
Post by: joojoohe on June 07, 2007, 03:24:24 PM
I'm using smf 1.1.2
I have this error.... >:( >:(
Somebody can help me please?   
Title: Re: Attachments Download Permission
Post by: flickernever on January 25, 2008, 08:28:20 AM
Does this mod work with MP3 files and 1.1.4? I mean, would it do the same as with images: ask the user if he wants to download or to listen only.
Title: Re: Attachments Download Permission
Post by: TrueSatan on January 25, 2008, 08:45:36 AM
It is probable (haven't tested it) that the mod will work with SMF 1.1.4 however it has nothing at all to do with playing MP3 files and thus cannot do any more than treat such a file as a simple attachment.
Title: Re: Attachments Download Permission
Post by: flickernever on January 25, 2008, 09:17:25 AM
Quote from: TrueSatan on January 25, 2008, 08:45:36 AM
It is probable (haven't tested it) that the mod will work with SMF 1.1.4 however it has nothing at all to do with playing MP3 files and thus cannot do any more than treat such a file as a simple attachment.

Yes, but if the browser trys to open a MP3 player he will most likely play it, using an external player or something like that. What is the default action for opening a MP3 file by web browsers?
Title: Re: Attachments Download Permission
Post by: TrueSatan on January 25, 2008, 09:02:38 PM
To play an MP3 file offered as an attachment the user would have to fully download the file...the file would not be treated as a streaming music source...there is a mod that can offer you such a service:

http://custom.simplemachines.org/mods/index.php?mod=121 (http://custom.simplemachines.org/mods/index.php?mod=121)

You can't open a non streaming MP3 (or other media) file without downloading it.
Title: Re: Attachments Download Permission
Post by: flickernever on January 26, 2008, 09:02:29 AM
Quote from: TrueSatan on January 25, 2008, 09:02:38 PM<br />To play an MP3 file offered as an attachment the user would have to fully download the file...the file would not be treated as a streaming music source...there is a mod that can offer you such a service:<br /><br /><a href="http://custom.simplemachines.org/mods/index.php?mod=121" class="bbc_link new_win" target="_blank">http://custom.simplemachines.org/mods/index.php?mod=121</a><br /><br /> You can't open a non streaming MP3 (or other media) file without downloading it.<br />

Ok, I understand. Now I am trying to do what I want in a different way using Pierre MP3 flash player Mod. Just have to figure out a way to disable the flash player to guests. Thanks for your interest and link.
Title: Re: Attachments Download Permission
Post by: Eddy Matthews on February 23, 2008, 06:06:44 PM
Quote from: tsmalmbe on March 26, 2007, 05:28:27 PM
Here's the version of the mod that allows you to define the full matrix as explained above.



Brilliant, the mod now works!! :)

Just one problem, rather than images creating the dreaded red X when they are clicked on, would it be possible to display a message saying "You do not have permission to view the fullsize image", and when clicking on another filetype, display "You do not have permission to download this file"?

Regards
Eddy

Title: Re: Attachments Download Permission
Post by: sodmanccc on February 16, 2009, 07:29:51 PM
any hope for this in 2.0?

i know the permissions mod been added to 2.0 but it does not have it split into 2 like this and well yea thats a great feature needed for some of us.

Title: Re: Attachments Download Permission
Post by: tsmalmbe on February 17, 2009, 05:55:40 PM
A year old topic.

I'm not sure, but isn't there a totally new permission enhancement for 2.0?
Title: Re: Attachments Download Permission
Post by: nvcnvn on April 15, 2009, 07:11:04 AM
Can this mod use for 1.1.8!?
Title: Re: Attachments Download Permission
Post by: B.SkiLLs on September 18, 2009, 04:01:38 PM
Quote from: nvcnvn on April 15, 2009, 07:11:04 AM
Can this mod use for 1.1.8!?
Yes and 1.1.9 and 1.1.10
Title: Re: Attachments Download Permission
Post by: B.SkiLLs on September 18, 2009, 04:02:36 PM
Is there a way to have a pop up come up telling them they have tobe a member to download the attachment ??

or change the worded that comes up when redirected to the longin page ???
Title: Re: Attachments Download Permission
Post by: B.SkiLLs on October 09, 2009, 06:24:21 PM
bumpers
Title: Re: Attachments Download Permission
Post by: V@no on October 19, 2009, 03:22:23 AM
Thank you very much for this great mod!

There only one issue I found with this mod, is when "Display image attachments as pictures under post" and "Resize images when showing under posts" options enabled, it will show broken images.
A quick work around this is to force disable these features if download attachment not allowed.
Find in Sources/Display.php:
if (!empty($modSettings['attachmentEnable']) && (allowedTo('view_attachments') || allowedTo('view_attachments2')))


Insert above:
if (!allowedTo('view_attachments') && allowedTo('view_attachments2'))
{
$modSettings['attachmentShowImages'] = 0;
$modSettings['attachmentThumbnails'] = 0;
}
Title: Re: Attachments Download Permission
Post by: B.SkiLLs on November 19, 2009, 05:46:50 PM
why ?? this is built in now with new versions guy's ....

[if im thinking correctly] lol
Title: Re: Attachments Download Permission
Post by: nikan on January 18, 2010, 09:31:05 AM
Updated for 2.0 RC2

In Display.php
Find
if (!empty($modSettings['attachmentEnable']) && allowedTo('view_attachments'))
Replace
if (!empty($modSettings['attachmentEnable']) && (allowedTo('view_attachments') || allowedTo('view_attachments2')))


In ManagePermissions.php
Find
'view_attachments' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),

Replace
'view_attachments' => array(false, 'attachment', 'participate'),
'view_attachments2' => array(false, 'attachment', 'participate'),
'post_unapproved_attachments' => array(false, 'attachment', 'make_unapproved_posts'),
'post_attachment' => array(false, 'attachment', 'attach'),



In ManagePermissions.english.php
Find
$txt['permissionname_view_attachments'] = 'View attachments';
$txt['permissionhelp_view_attachments'] = 'Attachments are files that are attached to posted messages. This feature can be enabled and configured in \'Edit Features and Options\'. Since attachments are not directly accessed, you can protect them from being downloaded by users that don\'t have this permission.';

Replace
$txt['permissionname_view_attachments'] = 'Download attachments';
$txt['permissionhelp_view_attachments'] = 'Allows to download attachments';
$txt['permissionname_view_attachments2'] = 'View attachments';
$txt['permissionhelp_view_attachments2'] = 'Attachments are files that are attached to posted messages. This feature can be enabled and configured in \'Edit Features and Options\'. Since attachments are not directly accessed, you can protect them from being downloaded by users that don\'t have this permission.';
Title: Re: Attachments Download Permission
Post by: Apllicmz on March 03, 2010, 01:28:19 AM
yes
i try to install 1.1.11
i see that erro
how can resolv
Title: Re: Attachments Download Permission
Post by: nikan on March 03, 2010, 02:04:50 AM
You probably have other mods installed and messed up your code.
Edit the files and install the mod manually.
Title: Re: Attachments Download Permission
Post by: Apllicmz on March 03, 2010, 02:05:40 AM
thank you
i will do text
Good work
Title: Re: Attachments Download Permission
Post by: Rob Lightbody on September 01, 2010, 04:45:55 AM
Worked perfectly when I installed it today on 1.1.11. 

Recommended.

The only thing I had to do for my forum, was to copy the code from english to english.utf8, then it was perfect.
Title: Re: Attachments Download Permission
Post by: jgkgopi on September 17, 2011, 03:04:25 PM
 am getting this error

1. Replace ./Sources/ManagePermissions.php Test failed

3. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test failed
  1. Replace ./Themes/default/languages/ManagePermissions.english.php Test failed

Title: Re: Attachments Download Permission
Post by: dvk01 on April 12, 2012, 05:04:09 AM
will this ever be updated for SMF2
Title: Re: Attachments Download Permission
Post by: diegolyanky on August 07, 2018, 10:43:13 PM
Yes, I know this is an old topic, but I need this mod for 2.0.15 version...

Is that possible ? ... I'm not familiarized with 2.0.x versions...

Title: Re: Attachments Download Permission
Post by: GigaWatt on August 08, 2018, 06:33:33 AM
You can set this setting via Admin --> Members --> Permissions --> General Permissions --> (Membergroup Name) --> Modify.

(https://s20.postimg.cc/efr288m7h/SHOT0035.png)

If you can't see the settings the way they are in the screen shot, switch to Classic View ;).

(https://s20.postimg.cc/sm6t3hrxp/SHOT0036.png)
Title: Re: Attachments Download Permission
Post by: Arantor on August 08, 2018, 06:49:54 AM
View attachment and download are separate ideas here, the idea being to show people things to encourage them to do something, e.g. show them it exists to guests, to get them to register to download.

Usually discourages people.
Title: Re: Attachments Download Permission
Post by: Kindred on August 08, 2018, 08:59:57 AM
Quote from: diegolyanky on August 07, 2018, 10:43:13 PM
Yes, I know this is an old topic, but I need this mod for 2.0.15 version...

Is that possible ? ... I'm not familiarized with 2.0.x versions...

since the mod author has not been online since December and the mod itself has not been touched since 1.1RC versions...   no, I think I am fairly safe in saying that this particular mod will not be updated for 2.0.x

As Arantor says, these sort of mods do not encourage people to register... they cause people to find another site.
By default (and on purpose) SMF never shows an action which the user can not complete.
Title: Re: Attachments Download Permission
Post by: diegolyanky on August 08, 2018, 11:25:09 AM
Thanks Arantor and Kindred for your reply. :)

I want to "Show" to guests the attached files, just the filenames, and then when the guest try to download it to be redirected to "Register Page".

That's I need ;)
Title: Re: Attachments Download Permission
Post by: Kindred on August 08, 2018, 11:44:27 AM
we understand what you need.

we're telling you that it's a bad idea.

and also, this mod was never updated for 2.0.x and will not run on 2.0.x -- so you would have to request a band new mod, since this mod license will not allow anyone other than the original author to modify/distribute it.
Title: Re: Attachments Download Permission
Post by: vbgamer45 on August 09, 2018, 11:27:51 PM
Submitted a new one.
Title: Re: Attachments Download Permission
Post by: diegolyanky on August 09, 2018, 11:37:47 PM
Quote from: vbgamer45 on August 09, 2018, 11:27:51 PM
Submitted a new one.

Where ?
Title: Re: Attachments Download Permission
Post by: vbgamer45 on August 09, 2018, 11:40:59 PM
Has to get approved. I did it for you. I can send over skype.
Title: Re: Attachments Download Permission
Post by: diegolyanky on August 10, 2018, 04:30:08 PM
Quote from: vbgamer45 on August 09, 2018, 11:40:59 PM
Has to get approved. I did it for you. I can send over skype.

Thanks !! ... Is very usefull.