Version: 1.2.1, by El_Muerte
Developer Last Online: Jan 2023
Version: 3.5.2
Rating:
Released: 12-21-2005
Last Update: 01-15-2006
Installs: 40
DB Changes Uses Plugins Template Edits
Re-useable Code Translations
No support by the author.
This plugin adds an attachment browser to selected forums. The attachment browsers shows all the thumbnails of attached images in all posts in the current from.
Installation
Install the product xml and edit the FORUMDISPLAY template. Add the following code whereever you like:
In order to enable the thumbnail browser for a forum you will have to set "Show attachment browser" to yes in the forum manager (AdminCP).
System changes
This plugin adds two templates:
attbrs_attachment : the main block of the attachment browser
attbrs_attachment_bit : the thumbnail part for each attachment
and two phrases:
ab_image_larger_version_x_y_z : a copy of 'image_larger_version_x_y_z', the original was not available in the scope it was needed
ab_title : the title used in the browser
It also modifies the forum table, it will add a new field called 'gallery'. The field is created during installation and removed on uninstall.
This plugin has one setting in it's own category which controls the maximum number of thumbnails to show per page.
Added new option 'enable pager'. Width this you can disable the pager which can be a performance hit on large forums.
Added new option 'Browser width'. Which will set the fallback browser width to use for MSIE. MSIE doesn't properly size the scrollable area in the default template, this is a dirty workaround.
Changes since v1.1.0:
Templates are now grouped
Installer is a bit more safe (e.g. no serious error when the table already has a `gallery` field)
Attachment browser is now collapsable
Thread title can be trimmed to a certain length
Changes since v1.2.0:
Browser is not shown when the user has to permissions to view attachments
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Ok, there's a little issue with MSIE, as usual it doesn't handle dimensions correctly. So there's no scrollbar, instead it's displayed in full, streching the page a lot.
A quick fix is to edit the 'attbrs_attachment' template and change the div in the 2nd row to:
Code:
<div style="overflow: auto; width: auto !important; width: 800px; margin: auto;">
This will give the browser a fixed width of 800px in MSIE only.
OK.. I have to admit but can you or someone make it do thumbnails that are like 150 X 150 or so.. I have my thumbs set large so it dont work too well, is there a way to add a way to set thumb size ?
If we can get the images smaller I will enable it in a heartbeat...