Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Kinng - helmikuu 15, 2009, 12:04:05 AP

Otsikko: Guests attachement permission?
Kirjoitti: Kinng - helmikuu 15, 2009, 12:04:05 AP
Hi,
How can I set the forum to show the files attached with posts to unregistered visitors, but instead of letting them download the file redirect them to a page saying that they must register before downloading attachments (like in vBulletin)

Right now I see only two options : View Attachements and Post attachments
If I enable the View attachments options, guests are able to download files; and if I disable it, it won't even show the names of the files attached

If anyone knows how to do this please help me!
Otsikko: Re: Guests attachement permission?
Kirjoitti: greyknight17 - helmikuu 15, 2009, 06:38:50 IP
This mod (http://custom.simplemachines.org/mods/index.php?mod=1180) should be able to do something similar to what you need here.
Otsikko: Re: Guests attachement permission?
Kirjoitti: Kinng - helmikuu 16, 2009, 03:22:10 AP
Hi
Thanks for the suggestion, but when I tried that mod, I get the following error:

Execute Modification   ./Themes/default/Display.template.php   Test failed
1.   Add Before   ./Themes/default/Display.template.php   Test failed


The mod is compatible with 2.0 Beta 3 Public, while I'm using 2.0 RC1
Maybe I'll just have to wait for a new version
Otsikko: Re: Guests attachement permission?
Kirjoitti: Rumbaar - maaliskuu 03, 2009, 06:51:00 IP
You'll probably have to manually install the mod, due to slight code changes.  Try the parser and Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)