Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Attachment Browser Details »
Attachment Browser
Mod Version: 1.2.1, by El_Muerte (Contributor) El_Muerte is offline
Developer Last Online: Feb 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.2 Rating: (0 vote - 0 average) Installs: 40
Released: 22 Dec 2005 Last Update: 16 Jan 2006 Downloads: 80
Not Supported DB Changes Uses Plugins Template Edits Re-usable Code Translations  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I put it above the thread list.

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.

Live demo
http://el-muerte.student.utwente.nl/...splay.php?f=23

Change log
Changes since v1.0.1:
  • Fixed table prefix
  • 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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	AttachmentBrowser.png
Views:	1533
Size:	106.1 KB
ID:	39797  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Dec 2005, 13:55
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Real name: Michiel Hendriks, MSc
Doh, forgot to properly link the username, it's fixed now in 1.0.1
__________________
http://elmuerte.com/
http://www.magicball.net/ - Little Big Adventure Community
http://www.unrealadmin.org/ - Unreal Tournament \ UT2004 server administration
http://www.vbdrupal.com/ - vbDrupal [developer]
Reply With Quote
  #3  
Old 22 Dec 2005, 15:03
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
lookin good, though I don't need
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #4  
Old 22 Dec 2005, 15:48
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Real name: Michiel Hendriks, MSc
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This will give the browser a fixed width of 800px in MSIE only.
__________________
http://elmuerte.com/
http://www.magicball.net/ - Little Big Adventure Community
http://www.unrealadmin.org/ - Unreal Tournament \ UT2004 server administration
http://www.vbdrupal.com/ - vbDrupal [developer]
Reply With Quote
  #5  
Old 22 Dec 2005, 17:53
Wachtmeister's Avatar
Wachtmeister Wachtmeister is offline
 
Join Date: Apr 2004
Lightbulb

Really very interesting. I'll wait until the MSIE thing is "fixed" Really a very good idea!
__________________
Gastrohammer
Reply With Quote
  #6  
Old 22 Dec 2005, 18:18
klaush klaush is offline
 
Join Date: Oct 2005
Thanks, but:

Table 'xxxx.attachment' doesn't exist

Looking for the correct Prefix? Where to change it?
__________________
Greetings

Klaus

Last edited by klaush; 22 Dec 2005 at 18:27.
Reply With Quote
  #7  
Old 22 Dec 2005, 20:09
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Real name: Michiel Hendriks, MSc
Originally Posted by klaush
Thanks, but:

Table 'xxxx.attachment' doesn't exist

Looking for the correct Prefix? Where to change it?
oh crap, completely forgot about table prefixes
__________________
http://elmuerte.com/
http://www.magicball.net/ - Little Big Adventure Community
http://www.unrealadmin.org/ - Unreal Tournament \ UT2004 server administration
http://www.vbdrupal.com/ - vbDrupal [developer]
Reply With Quote
  #8  
Old 22 Dec 2005, 20:35
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Looks rather interesting

Chris
Reply With Quote
  #9  
Old 22 Dec 2005, 22:47
silurius silurius is offline
 
Join Date: Oct 2004
Nice one, El_Muerte! Can't wait to install.

*Clicks install and awaits final version*
Reply With Quote
  #10  
Old 23 Dec 2005, 01:50
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
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...
Reply With Quote
  #11  
Old 23 Dec 2005, 06:35
El_Muerte's Avatar
El_Muerte El_Muerte is offline
 
Join Date: Nov 2001
Real name: Michiel Hendriks, MSc
Originally Posted by cbr929rrerion
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.
__________________
http://elmuerte.com/
http://www.magicball.net/ - Little Big Adventure Community
http://www.unrealadmin.org/ - Unreal Tournament \ UT2004 server administration
http://www.vbdrupal.com/ - vbDrupal [developer]
Reply With Quote
  #12  
Old 23 Dec 2005, 11:54
Wachtmeister's Avatar
Wachtmeister Wachtmeister is offline
 
Join Date: Apr 2004
Can this add on also be shown only in seperate threads or categories?

I have a huge Avatar and Smiley compilation and would love to have this one only on those threads or forums.

Before i import the product, i ask

Thanks, Wachtmeister
__________________
Gastrohammer
Reply With Quote
  #13  
Old 23 Dec 2005, 19:20
silurius silurius is offline
 
Join Date: Oct 2004
How should I edit the product to address the dupe column name?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Never mind I got it. Changed "gallery" to "atb_gallery" in plugin.

Last edited by silurius; 23 Dec 2005 at 19:49.
Reply With Quote
  #14  
Old 24 Dec 2005, 03:57
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Originally Posted by El_Muerte
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..
Reply With Quote
  #15  
Old 24 Dec 2005, 06:25
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Wow El_Muerte, this looks really neat. I'm too busy with Christmas stuff to install it now but I'll be coming back to look at this again for sure.

Thanks

Clancy
__________________
Guitar For Beginners & Beyond
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:29.

Layout Options | Width: Wide Color: