Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2295)
Guest Attachment preview
Written by: aED
Email:
[email protected]Support site: http://www.pinoyden.com/
----------
* This mod will display the list of attachments for anyone but will not allow them to download the files if they do not have view_attachments permission
* If the attachment is an image it will also show the
thumbnail for that image
---------
Version 1.0 November 29, 2009
- Offically released on simplemachines.org
Version 1.0.4 July 29, 2020 (Wow its almost 11 years now)
-Updated to support 2.0.17
Thank you!! It is great! you rule! :DDDDDDDDDDDDDDDDD
EDIT: A member who uploads a avatar from PC to the forums, guess can not view avatar :S
Quote from: Arkino on December 10, 2009, 11:43:19 PM
Thank you!! It is great! you rule! :DDDDDDDDDDDDDDDDD
EDIT: A member who uploads a avatar from PC to the forums, guess can not view avatar :S
Thanks, What do you mean by guess can not view avatar?
I tested this again and I can see my uploaded avatar when viewing as a guest.
/me thinks it does specifically check for (and allow) viewing of avatars.
My own language is Spanish. I am sorry for my bad English =(
Ok. I have been installed a new forum. it is dont have other mod installed.
I Uploaded an avatar from forums to my pc and ''guess'' can view it.
http://img684.imageshack.us/img684/7164/sinttulo1py.jpg
I have installed Guest Attachment Preview and I have logged off. I cant see the avatar.
http://img412.imageshack.us/img412/3384/sinttulo2j.jpg
avatar from gallery and avatar by URL it is WORKS fine.
I am using SMF 2.0 RC2. Dont use FireFox, Firefox has cache of images. I am using IE8 and FireFox and the both I have the problem.
OK let me check it again :)
Bu modifikasyon high slide image ile çakışmaktadır.
High Slide image modifikasyonu ile birlikte Guest Attachment Preview modifikasyonunu aynı anda kuramadım Sorun Display.template.php 'de meydana geliyor.
Şimdi burada Bu iki modifikasyonda çakışan yer alttaki koddan sonra başlıyor :
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'],
bundan sonraki kod High Slide Modu için şöyle devam ediyor :
'" class="highslide" rel="highslide"><img src="', $attachment['thumbnail']['href'], '" alt="' , $attachment['name'] , '" id="thumb_', $attachment['id'], '" border="0" /></a><br /><div class="highslide-heading">' , $context['subject'] , '</div>';
yine aynı yerden sonra ise Guest Attachment Preview Modu için şöyle devam ediyor :
onclick="' , ($context['user']['is_logged']) ? $attachment['thumbnail']['javascript'] : "alert('" . $txt['logintoviewimg'] . "'); return false;" , '"
Yukarıdaki bu iki mod<a href="', $attachment['href'], ';image" id="link_', $attachment['id'],
bu koddan sonra bu iki modifikasyonun kodu nasıl birleştirilir?
Bu iki modu aynı anda kuramadım böyle bir sorunum doğdu.
with this mod wen right click the attatment you can still download it. I have even tried the mod disable right click. and it is still the same.
You can only save the small version of the file - not the full size version. At least, I couldn't get it to give me the full size version when I tested it...
Quote from: Arantor on December 12, 2009, 03:12:15 PM
You can only save the small version of the file - not the full size version. At least, I couldn't get it to give me the full size version when I tested it...
i was able to a full screensaver wen i tested it as a quest.
this is my site if wanna check for me as a guest...http://screensaversmania.com/index.php
Nope, can still only get it to save thumbnails of images rather than the full image itself.
If you want me to look at a specific download, please provide a more specific link.
Quote from: Arantor on December 12, 2009, 05:54:27 PM
Nope, can still only get it to save thumbnails of images rather than the full image itself.
If you want me to look at a specific download, please provide a more specific link.
i managed to download one these...
http://screensaversmania.com/index.php?topic=66.0
At full size or just preview size?
I can't get a 240x320 image out of those. I *can* get the smaller 112x150 image however, but since that's visible to guests, yes of course you can get it.
Quote from: Arantor on December 12, 2009, 06:16:39 PM
At full size or just preview size?
I can't get a 240x320 image out of those. I *can* get the smaller 112x150 image however, but since that's visible to guests, yes of course you can get it.
wen i right click it the full image comes up then i can save it
And you're not logged in at this point?
Try clearing your browser's cache then doing it again. It'll still show up in your browser if you viewed the full size image while logged in - I don't have a cached version to view so it never works for me.
Quote from: Arantor on December 12, 2009, 06:21:58 PM
And you're not logged in at this point?
Try clearing your browser's cache then doing it again. It'll still show up in your browser if you viewed the full size image while logged in - I don't have a cached version to view so it never works for me.
ok thank you it working.. i forgot about clearing my cookies
/me quietly breathes a sigh of relief; he approved this one and it wouldn't be good to have approved it if it didn't work properly...
With this Mod "Guest Attachment Preview", DOES It cause an "error" in the error log, every time someone tries to view a file or picture, when as a guest?
I see a ton of errors, and it seems to be every time someone tries to view something as a guest. Is this normal?
It will give an error if the guest tries to actually view the attachment, just as it would if they tried to access it without a preview; all it actually does is move the permissions check around and add a message appropriately.
This mod would not allow guests to see uploaded avatars on my forum.
Yep, you are right, this mod causes a guest to see a "picture not found" error box where the avatar should be. I uninstalled the mod and avatars are ok again.
Is there a fix in the works?
What version of SMF are you using?
2.0 RC2 here...
2.0 RC2 also
can you attach your display.php here?
I use smf 1.1.10, and i have problem in install this mod.. problem with display.template..
Maybe you can see my file (i attach it on this msg).. and help me..
i need alow to guest see only images, but dont see other files attach (zip, rar, mp3, etc).. its possible?
This mod allows your guest to view the preview or thumbnail of the image I think this mod will do the trick. Ill update this post and upload your files later.
Tks friend, i will wait.. :D
Quote from: GohighVoltage on December 19, 2009, 12:39:04 PM
Yep, you are right, this mod causes a guest to see a "picture not found" error box where the avatar should be. I uninstalled the mod and avatars are ok again.
Is there a fix in the works?
I said the same :(
is it will fix?
Are you going to fix the issues? Great idea!
I really cannot replicate this issue. If you anyone of you can give me an admin and ftp account so I can check why it doesnt show the avatar for guests then I might know what is really causing that problem.
Just to clarify.. I dont have the problem where users with the permission not to beable to view the mod are unable to.
works perfectly here although i do have one thing that could be updated..
Basically if the image is small to begin like mine is 240x320
it shows a preview of 112x150
when i click the image to show it in full i get undefined on the image. doesnt actually tell me that im not allowed to view the image.
I have attached a screen shot below.
EDIT:
on another note.. how come as guest is dislplays a msgbox popup but as a member who has been dis allowed the permission it opens a new explorer windows stating
QuoteAn Error Has Occurred!It seems that you are not allowed to download or view attachments on this board.
I kinda like the msgbox that gets displayed for guests alot better if that is possible could u make that.
This plugin works great on SMF 1.1.11
maybe a little to good since guests cannot see some of the avatars. Check the screenshot below. Any fix for this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2Fsvkwsg.jpg&hash=824e3ecdd939c7e7542ff9684715f9538a9dfa1d)
i think this happens when the avatars are uploaded to the attachment folder?
it would be easy to fix this problem by adding the size om the image in size or. so if the attachment is less than 15kb or so it will not be active on that attachment.
Ahh explains why there isnt a problem with mine then.. I changed the directory avatars are uploaded to.
So guests dont have a problem veiwing avatars.
change the folder that avatars are uploaded to.
Quote from: aljo1985 on February 19, 2010, 07:55:03 AM
Ahh explains why there isnt a problem with mine then.. I changed the directory avatars are uploaded to.
So guests dont have a problem veiwing avatars.
change the folder that avatars are uploaded to.
yeah, but that wont help if you already have 100.000 avatars in the attachment folder :)
its impossible to move them to the avatar folder
Good news the avatar issue is now fixed :)
OMG OMG OMG.
when can we download the new version?
Its already on the mod site
gaaaah *running over to the mod site* ;D
Yep it works now, all avatars are back!
but i found a easy way to go around the download permission tho. Just right click on the attachment url and choose to open the file in a new tab or a new window and the download manager (IE8) will start downloading the image.
try it yourself: http://forum.dailymobile.se/index.php/topic,63.0.html
possible to fix this?
The file is cached by your browser try pressing CTRL+F5 on that page after logging out
Quote from: aED on February 19, 2010, 07:04:57 PM
The file is cached by your browser try pressing CTRL+F5 on that page after logging out
i just tested and cleared all temp files and choose a image that i never used before and i could open it in a new tab and a new window. but i did get the error message by just licking on the link or image
edit: oh it also works by just right clicking on the image
name and save as.
Please try pasting the link on a different browser I still believe it's still cached by your browser
i just tried the same thing with firefox and safari on another wallpaper section ( http://forum.dailymobile.se/index.php/topic,57.0.html ) with the same results :)
anyone else having these problems?
:P I think everything is fixed now thanks to Phat^Trance
yes its fixed now. works great.
thx!
Thanks for the update.. Uninstalled and installed the update went smoothly no problems at all..
great mod thanks for the support :) Thumbs up
AWESOME JOB WITH MOD! FIXED ALL PROBLEMS! WORKS PERFECT! Thanks
Russian translation:
this for languages-utf8.xml (encoded to UTF8 w\o BOM)
<file name="$languagedir/Modifications.russian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Preview link/thumbnail attachments
$txt['login2download'] = 'Для скачивания вложения Вы должны авторизоваться на форуме!';
$txt['logintoviewimg'] = 'Для просмотра полного изображения, пожалуйста, авторизуйтесь!';
]]></add>
</operation>
</file>
and this for languages.xml (encoded to ANSI):
<file name="$languagedir/Modifications.russian.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[
//Preview link/thumbnail attachments
$txt['login2download'] = 'Для скачивания вложения Вы должны авторизоваться на форуме!';
$txt['logintoviewimg'] = 'Для просмотра полного изображения, пожалуйста, авторизуйтесь!';
]]></add>
</operation>
</file>
Thanks for the translation Ill add them to the package later :)
Using it at: Powered by SMF 2.0 RC3
When I visit the forum as guest, I can see the previews (as promised), but when I click an attachment link I see this error at a blanc screen:
The database value you're trying to insert does not exist: user
I upgrade the script from rc1 to 3
I have been usint with no issues or problem. thank you for a great mod!
Is there a way to enable a small free to like charge 5.oo paypal to donate brefor allowing downloads?
GohighVoltage: Easy solution, use paid subscriptions...
Quote from: GohighVoltage on March 30, 2010, 01:01:57 PM
I have been usint with no issues or problem. thank you for a great mod!
Is there a way to enable a small free to like charge 5.oo paypal to donate brefor allowing downloads?
and setup a group for members with download rights for paid subscriptions, disable download rights for "normal" members and done.
Hi I enabled Paid membership. I have your mod, love it. I only allow members to download. So if someone is a visitor and clicks on a picture, it says, "you must register, etc etc". So they register. Then click, and it says "you do not have permission etc". I only allow paying members to download. So, after someone registers, how can I change the wording of that pop up, and have it say, You must pay for a membership to be allowed to download?
And how do I change the message when someone is a guest?
Thanks!
Thanks for this great mod. I do face a problem.
It works perfectly for guest. However, when a registered member with no permission tries to click on the thumbnail, the thumbnail disappears. It should show an error box stating that the member does not have permission to view. An error message will show if the member clicks on the image filename, but not on the thumbnail.
How can I fix this missing error message on thumbnail for registered member with no permission?
Is this mod is being supported? :-\
How can I edit the "Messages" that pop up when a person clicks on a file?
Great looking mod! I am running into an issue on installation. I can install but can not access the settings (obviously) sorta tells me that :) I installed the required program. Easy fix, I am over looking?
7. Execute Modification ./Sources/ModSettings.php Test failed
Thanks for any help in advance!
Here is a list of mods I have installed.
9. Remove SMF Logo 1.301 [ Uninstall ] [ List Files ] [ Delete ]
10. SMFPacks Shoutbox 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. SMF Gallery Lite 3.0.1 [ Uninstall ] [ List Files ] [ Delete ]
12. Enhanced PM Warning Message 1.0 [ Uninstall ] [ List Files ] [ Delete ]
13. AJAX Instant Quick Reply 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
14. Simple Image Upload 1.1.0 [ Uninstall ] [ List Files ] [ Delete ]
15. Aeva ~ Auto-Embed Video & Audio 7.0 [ Uninstall ] [ List Files ] [ Delete ]
16. Enhanced Profile 1.1.5 [ Uninstall ] [ List Files ] [ Delete ]
17. Enhanced Profile Header 1.2.3 [ Uninstall ] [ List Files ] [ Delete ]
18. PM On Registration 1.0.2 [ Uninstall ] [ List Files ] [ Delete ]
19. Anti Bot: Are You Human/Bot? 2.3 [ Uninstall ] [ List Files ] [ Delete ]
20. Remove Post Modified Time 1.2 [ Uninstall ] [ List Files ] [ Delete ]
21. Custom Profile Field Mod 3.20 [ Uninstall ] [ List Files ] [ Delete ]
22. Karma Buttons 1.1 [ Uninstall ] [ List Files ] [ Delete ]
23. Avatar on Member List 1.0 [ Uninstall ] [ List Files ] [ Delete ]
24. Tapatalk SMF Plugin 0.9.13 [ Uninstall ] [ List Files ] [ Delete ]
25. Prettier_Quotes 1.12 [ Uninstall ] [ List Files ] [ Delete ]
26. Display Location on posts 1.0 [ Uninstall ] [ List Files ] [ Delete ]
27. Display Signatures Only Once Per Page 1.0.3 [ Uninstall ] [ List Files ] [ Delete ]
28. Today's Posts 1.0 [ Uninstall ] [ List Files ] [ Delete ]
29. Top 10 Posters and Topic Starters Stats (Today, Week, Month, and Year) 2.5.1 [ Uninstall ] [ List Files ] [ Delete ]
30. Custom Tab 1.2 [ Uninstall ] [ List Files ] [ Delete ]
31. SMFBlog 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
32. SSI Topics and Replies 1.4 [ Uninstall ] [ List Files ] [ Delete ]
Opps posted in wrong section :) Ignore me! So sorry!
How can I change the mod so guests cannot view the thumbnails. That is, show that the post has attachments but do not show the thumbnails only the links.
Also, how to integrate with highslide?
Thanks!
Never mind. I got it.
Does anyone know where the attachments are uploaded to after this mod has been installed? I cannot find it in the "/forums/attachments" directory that was specified in attachment settings.
Any help is greatly appreciated.
Quote from: camoura on September 03, 2010, 12:28:31 PM
Never mind. I got it.
Hey, man, how did you get it? Can you share? Thanks.
Does anyone know what should I modify in order to block attachments for all groups except groups that I will choose (everyone can see the thumbnails but not full size except for a few groups). Is it possible? I want to use this with pay subscriptions from smf 2.0.
If a guest right clicks on the link, they are still able to download the file. How do I prevent this from happening? :o
Cool addition, I tested and it looks very good
Hello.
Any chanse to work with highslide image viewer mod?
Thanks.
This mod doesn't seem to work if Highslide is installed..,... Clicking on thumbnail it just hangs trying to load the image
How could I extend the mods functionality so that guests with less than 1 post get a popup message after clicking an attachment saying you still have less than 1 post. I get a lot of people registering, downloading the attachment, and never returning!
PLEASE HELP :(
it doesn't work with 2.0
because it blocks guests from download... :(
I FOUND A BUG
This mod still allows guests to download attachment until the webpage load completely.
After complete load of webpage then only it shows the pop up message like "please login to download".
Im using it on smf 2.0.1 by emulate RC3 mod.
Thats all.
Thanking you. :)
The programmer of this mod aED is a fraudulent programer. He destroyed my website. So be carefull about his stuff.
Please fill out this form: http://custom.simplemachines.org/mods/index.php?action=report;mod=2295 ;)
Quote from: littlenicki on April 23, 2012, 12:30:47 PM
The programmer of this mod aED is a fraudulent programer. He destroyed my website. So be carefull about his stuff.
How so?
The only problem I've had with this mod is that is the uploaded image is less than the required size to create a thumbnail, it shows the image as a broken file. Although inconvenient, still safe to use.
Quote from: Raffaele1977 on September 04, 2011, 08:37:13 PM
it doesn't work with 2.0
because it blocks guests from download... :(
I am seeing the same thing on 2.0.2, it will block them from downloading it, but it also blocks them from viewing them either.. Anyone care to update this? I would really like it as I want guests to see the images and other packages but prevent them from downloading it so I can get more people registered on my site.
anyone have this working with 2.0.8
Just what I needed, thank you so much!
Is there any similar mod that may work for smf 2.0.17 nowadays?
Thanks in advance
this mod works fine with 2.0.17 you need to use the version emulate however
How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Quote from: Deaks on May 26, 2020, 07:21:17 PM
this mod works fine with 2.0.17 you need to use the version emulate however
How can I install a mod that doesn't work in my SMF version? (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Thanks a lot, I did install the mod following the instructions!
Does anyone know how can I change the warning message "Please login to view the full image!" in order to show it in greek lang? Which ile should I edit?
in the file Modifications.greek.php located in /Themes/default/languages
add the following:
$txt['login2download'] = 'Παρακαλώ συνδεθείτε για να κατεβάσετε το συνημμένο';
$txt['logintoviewimg'] = 'Παρακαλώ συνδεθείτε για προβολή πλήρους εικόνας';
make sure its before the closing ?>
Quote from: Deaks on May 30, 2020, 07:31:27 AM
in the file Modifications.greek.php located in /Themes/default/languages
add the following:
$txt['login2download'] = 'Παρακαλώ συνδεθείτε για να κατεβάσετε το συνημμένο';
$txt['logintoviewimg'] = 'Παρακαλώ συνδεθείτε για προβολή πλήρους εικόνας';
make sure its before the closing ?>
Worked like a charm!!!
Ευχαριστώ πολύ! ;) ;) ;)
Παρακαλώ :)
In 2.0.18 not working, just if emulated, but if is emulated, do not show the information in popup window.
Another question, its possibile that mod origin any kind of error and this error origin webmaster tools of google flag the site with "unusuals downloads"?
Thanks in advance
Portugal