Guest Attachment Preview

Started by aED, December 08, 2009, 04:38:31 AM

Previous topic - Next topic

aED

Link to Mod

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


Arkino

#1
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

aED

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.

Arantor

* Arantor thinks it does specifically check for (and allow) viewing of avatars.
Holder of controversial views, all of which my own.


Arkino

#4
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.

aED


nassatellite

Bu modifikasyon high slide image ile çakışmaktadır.

nassatellite

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.

crazyminx

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.

Arantor

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...
Holder of controversial views, all of which my own.


crazyminx

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

Arantor

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.
Holder of controversial views, all of which my own.


crazyminx

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

Arantor

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.
Holder of controversial views, all of which my own.


crazyminx

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

Arantor

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.
Holder of controversial views, all of which my own.


crazyminx

#16
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

Arantor

* Arantor 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...
Holder of controversial views, all of which my own.


GohighVoltage

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?

Arantor

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.
Holder of controversial views, all of which my own.


Advertisement: