![]() |
Attachment Browser
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: Code:
<if condition="$show['attachments']"> 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:
Changes since v1.1.0:
Changes since v1.2.0:
|
Doh, forgot to properly link the username, it's fixed now in 1.0.1
|
lookin good, though I don't need ;)
|
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;"> |
Really very interesting. I'll wait until the MSIE thing is "fixed" ;) Really a very good idea!
|
Thanks, but:
Table 'xxxx.attachment' doesn't exist Looking for the correct Prefix? Where to change it? |
Quote:
|
Looks rather interesting :)
Chris |
Nice one, El_Muerte! Can't wait to install.
*Clicks install and awaits final version* |
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... |
Quote:
|
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 |
How should I edit the product to address the dupe column name?
Code:
Database error in vBulletin 3.5.2: |
Quote:
|
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 |
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?
|
It does use the thumb, and the thumb only. Attachments without a thumbnail are not displayed.
|
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? |
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:
Thanks in advance, again. |
Quote:
Quote:
|
ok.. I changed this
Code:
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD gallery SMALLINT(6) DEFAULT '1' NOT NULL"); Did I change the wrong thing or what do I need to do? |
you need to uninstall and then reinstall, during upgrading the uninstall code isn't executed.
or you could simple execute a db query setting all values of gallery to 1, e.g. update forum set gallery = 1; |
Quote:
Thank you, I did the db query and it took less than the blink of an eye to do all 178 .. That was so helpful.. BTW.. my members love your work, I appreciate it. |
I can't get it to show on my forum. I had Gallery installed but I saw the conflick, now I deleted Gallery and still doesn't show. Help!!
|
I have a question, it works perfectly except 1 thing..
If your not a registered user, it shows everything except where the pics are its just the blank image place holder. Any way to make a default gif to put there or just not show it at all if not registered? It looks terriable to non-members.. |
uhm.. do you have a restriction on viewing images on your forum?
|
[high]* Club3G clicks install
[/high] Couple of quick questions: Is there a way to get it to span the same width as the forum tables? The fixed width looks a little off at higher resolutions. Also, a non-fixed height would be awesome. The horizontal scrollbar is great, but the vertical just looks ugly. Screenshot: http://www.club3g.com/members/chris/attachplugin.jpg Great mod otherwise, thank you! :D |
of course I do, only members can see images...
I dont want non-members to be able to view images. So is there a way to make it load a non-member gif that I can make or just not show up at all to non members? I would prefer the image of my choice in its place, maybe an if statement or something? |
anyone know how to add an if statement to have it show a predetermind image to non-members?
|
Quote:
Quote:
PHP Code:
|
Quote:
Nope.. Dont work... |
Working fine in IE for me (aside from the spanning issue), however the thumbs aren't showing up in Mozilla.
Edit: 'Doh, wasn't logged in. :D |
Yeah.. looks like crap with missing images if your a non-member..
Is there any way to limit it to the last 5 attachements.. I am going to disable this until someone can find a way to either 1) apply a default image for non-members to see or 2) hide it completely to non-members. Sorry but it just looks like crap to non-members and looks like its broke.. |
Unstalling as well unfortunately. The MSIE bug, plus the fact that the vertical scrollbar looks rediculous, along with what cbr929 mentioned about the non-members getting an ugly blurb of text outweigh the cool factor of it.
|
I really like this and I really want to use it, I found out how to limit it to show just 5 latest attachements and all that but the non-member still can only see an ungly missing image and it looks broken.
Can some one please write something that if they are not a registerd member or if the user group is not, #,#,#, then it will display an image such as nonmember.gif |
Version 1.2.1 should hide the attachment browser when the user has no permission to view attachments in the selected forum. E.g. the same check as the attachment code uses.
|
Quote:
|
Did the update.. works flawless..
Thank you.. The only thing I would change for a future upgrade is have it show a default gif, that way they know they are missing out on images unless they join.. help to entice membership... Thanks for this much tho.. |
Any way to make it display attachments from sub-forums?
|
This i would like to see in the next update
Quote:
Also when i selct a page no. manualy i get nothing, as good as a blank page. If i click my nice prev or next buttons then all is well!! Any thoughts? |
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|