PDA

View Full Version : [Scandal's] vBGallery



admin
17-06-2012, 07:49 PM
Description
Turn your vBulletin Album system to an organized Gallery. Watch screenshots!

The basic idea of Scandal's vBGallery is to organize vBulletin Albums to a section with lots of functions (search, latest objects, statistics etc).
Designed for vBulletin 4.2.0 (otherwise you must add the navbar links manually)*.

Features:
- Categories system for Albums (like Forums for threads)
- Five (5) levels of subcategories allowed
- Album, picture and comment search
- Who browsing Gallery (= Gallery Home, Albums, Pictures)
- Gallery statistics
- Pages: latest pictures - latest albums - latest comments (with feature to turn them to "All")
- "My Comments" feature (display all user comments)
- Admincp environment
- No annoying copyright info

Changelog:
v1.0 first release (beta)
v1.2 second release
- New layout choice for galleridisplay: Grid layout with feature to change the width of albumbits via admincp
- Integration of vBulletin's sidebar with Gallery Home (admin can enable or disable it on admincp)
- New feature: flood check and character limit check for the search engine
- Improved breadcrumb (add category name to navbit) ("Gallery > {category name} > Member List > {username} > Albums > {album name}" )
- "Inverse pyramid like" statistics for categories [a main category "has" the albums of its subcategories - like forum statistics (threads/posts) works for subforums]
- New feature: admin can enable/disable the view of empty categories (= categories with 0 Albums)
- New feature: admin can enable/disable the use of search engine by guests
- Building of Gallery Statistics by cronjob (= refresh every one hour). Very important for server performance.
- 1 bug fixed

Installation:
1. Upload all files of folder "upload" to your forum root.
2. Import *xml product.
3. (Important) Open template album_edit and find:

<fieldset class="blockrow">

add below:

<vb:if condition="$vboptions['sc_gallery_onoff']">
{vb:raw formdata.catid}
</vb:if>

Done!

Upgrade:
1. FIRST OF ALL: Upload and replace all files of folder "upload" to your forum root.
2. THEN: Import XML product with "Allow Overwrite" to YES.

Who can view vBGallery;
Access to vBGallery has all members who belongs to usergroups with "Can View Albums" to YES.

What if I decide to turn off or uninstall vBGallery;
You are back to Albums without data lose (except the category of each Album - function of this hack).

How could I change the size of Gallery's thumbnails?
vBGallery use the thumbnail size you have set via admincp. To change it go to:
Admincp > Options > Message Attachment Options
... and set your value to "Thumbnail Size"
... afterwards you must rebuild attachment thumbnails at: Maintenance > General Update Tools > Rebuild Attachment Thumbnails

*Links (for vBulletin 4.0.X - 4.1.X)
yourforum.com/gallery.php
yourforum.com/gallery.php?do=latestpictures
yourforum.com/gallery.php?do=latestalbums
yourforum.com/gallery.php?do=latestcomments
yourforum.com/gallery.php?do=search
yourforum.com/gallery.php?do=mycomments

Developer's notice: I give support only for code errors, not for style problems.

Tested on vBulletin 4.2.0

Screenshots:

http://s14.postimage.org/i0up43x71/add_album.jpg (http://postimage.org/image/i0up43x71/) http://s14.postimage.org/kxmbi4sel/admincp_nav.png (http://postimage.org/) http://s14.postimage.org/gd05378p9/admincp_options1.jpg (http://postimage.org/image/gd05378p9/) http://s14.postimage.org/adcdzjnwt/admincp_options2.jpg (http://postimage.org/image/adcdzjnwt/) http://s14.postimage.org/jmek9nwst/gallerydisplay.jpg (http://postimage.org/image/jmek9nwst/) http://s14.postimage.org/5va37g7v1/galleryhome.jpg (http://postimage.org/image/5va37g7v1/)

http://s14.postimage.org/94oidwvyl/latest_pictures.jpg (http://postimage.org/image/94oidwvyl/) http://s14.postimage.org/ho7wbo4b1/my_comments.jpg (http://postimage.org/image/ho7wbo4b1/) http://s14.postimage.org/m013ef0lp/search.jpg (http://postimage.org/image/m013ef0lp/)