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.. 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...
afaik there is no nice way to scale thumbnails, or at least not widthout a lot of extra processing. But you could force dimensions by editing the 'attbrs_attachment_bit' template and add `height="100"` to the img tag, or something like that.
afaik there is no nice way to scale thumbnails, or at least not widthout a lot of extra processing. But you could force dimensions by editing the 'attbrs_attachment_bit' template and add `height="100"` to the img tag, or something like that.
I did that and added my theme to it and a scroll style.. looks sweet.. My members love it..
on all the attachements on my board there is the thumb and the attachment.. could you not have it putt the thumb for the image?if so where would you change that one part?
oh.. ok.. question... can we set the the default to be yes in show attachement browser? I have lots of forums and its a job going in and setting them all to yes..
I installed as per instructions but nothing shows on my forumdisplay page. I aslo cannot find the two templates that were supposed to be added. I am fairly new to all of this so any help is very greatly appreciated.
Edited to add: I took a peek at the manage products in admincp for this modificiation and this is what the install code says:
Quote:
$res = $db->query("DESCRIBE " . TABLE_PREFIX . "forum gallery");
if ($colinfo = $db->fetch_array($res))
{
if (!preg_match("#int\(#", $colinfo["Type"]))
{
print_dots_stop();
print_cp_message('Unable to install this plugin because the forum table is not compatible. (column gallery has an invalid type.)');
}
}
else {
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD gallery SMALLINT(6) DEFAULT '0' NOT NULL");
}
Is this why the templates were not added and how do I fix this?
oh.. ok.. question... can we set the the default to be yes in show attachement browser? I have lots of forums and its a job going in and setting them all to yes..
Any way to make the xml default to yes not no?
Yes, in the ALTER TABLE db query just change the "DEFAULT '0'" to "DEFAULT '1'"
Quote:
Originally Posted by YLP1
I installed as per instructions but nothing shows on my forumdisplay page. I aslo cannot find the two templates that were supposed to be added. I am fairly new to all of this so any help is very greatly appreciated.
The templates are grouped in the group "Attachment Browser".