Back to vBulletin 4.x Add-ons

[Scandal's] vBGallery
Mod Version: 2.1, by Scandal

vB Version: 4.2.x Rating: (23 votes - 4.87 average) Installs: 134
Released: 09 Jun 2012 Last Update: 27 Jun 2012 Downloads: 903
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

Description
Turn your vBulletin Album system to an organized Gallery. http://www.e-student.gr/my/vbgallery/vb4/vbgallery.html!

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

Spoiler (click to open)


How to install Gallery's navigation tab and links for vB4.0.X - 4.1.X users
1. Open template "navbar" and find:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
replace it with:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'sc_gallery' AND THIS_SCRIPT != 'album'">
2. Open template "navbar" and find:
Code:
{vb:raw template_hook.navtab_end}
add below:
Code:
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'sc_gallery' OR THIS_SCRIPT == 'album'">
            <li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase sc_gallery}</a>
                <ul class="floatcontainer">
                 <vb:if condition="$show['member']">
                    <li class="popupmenu">
                        <a href="javascript://" class="popupctrl">My Stuff</a>
                        <ul class="popupbody popuphover">
                                <li><a href="album.php?{vb:raw session.sessionurl}">My Albums</a></li>
                                <li><a href="album.php?{vb:raw session.sessionurl}do=addalbum" rel="nofollow">Add Album</a></li>
                                <li><a href="gallery.php?{vb:raw session.sessionurl}do=mycomments" rel="nofollow">My Comments</a></li>
                                <li><a href="gallery.php?{vb:raw session.sessionurl}do=pending" rel="nofollow">Pending Albums</a></li>
                        </ul>
                    </li>
                 </vb:if>
                    <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestpictures">Latest Pictures</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestalbums">Latest Albums</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestcomments">Latest Comments</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=search">Search</a></li>
                </ul>
            </li>
        <vb:else />
            <li><a class="navtab" href="gallery.php">{vb:rawphrase sc_gallery}</a></li>
        </vb:if>
3. Done!

Close
).

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
- Forum attachments gallery (with ability to act it as category)
- Pages: latest pictures - latest albums - latest comments (with feature to turn them to "All")
- "My Comments" feature (display all user comments)
- My Pictures/Albums in "this" category
- Ability to set custom statusicons to categories
- Notifications to users with "uncategorized" albums to move them
- Ability to hide empty categories (= with 0 albums)
- Admincp environment
- No annoying copyright info

Language Packs:
- Deutsch (Sie) - Deutsch (Du)

Spoiler (click to open)


Hi there,

I did the German translation - Deutsch (Sie) - for Scandal's gallery. If you like to use it, just download the xml-file. To install the language file:
  • Go to your admincp -> Languages & Phrases -> Download / Upload Languages
  • Find the downloaded file on your computer
  • Select the language
  • Make sure you select "Yes" on "Ignore Language Version "
  • Click "Import"
  • Click "Done".
The file - Deutsch (Du) - follows in a few days.

Install instructions in german language:
  • Gehe in's admincp -> Sprachen & Phrasen -> Sprachen herunterladen/ hochladen
  • Finde die heruntergeladene Datei auf Deinem Computer
  • Wähle die Sprache
  • Stelle sicher, dass "Ja" bei "Sprachversion ignorieren" ausgewählt ist.
  • Klicke auf "Importieren".
  • Klicke auf Erledigt"
Well done - gut gemacht.

Edit (21.06.2012):
File - Deutsch (Sie) updated
File - Deutsch (Du) added

Edit (27.06.2012):
File - Deutsch (Sie) updated
File - Deutsch (Du) updated

Best regards

L.R.

Close



Installation:

1. Upload all files of folder "upload" to your forum root.
2. Import *xml product.
3. (Important) Open template album_edit and find:
HTML Code:
<fieldset class="blockrow">
add below:
HTML Code:
<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

How to install navbar links (for vBulletin 4.0.X - 4.1.X)
Read this post

Spoiler (click to open)


How to install Gallery's navigation tab and links for vB4.0.X - 4.1.X users
1. Open template "navbar" and find:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
replace it with:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'sc_gallery' AND THIS_SCRIPT != 'album'">
2. Open template "navbar" and find:
Code:
{vb:raw template_hook.navtab_end}
add below:
Code:
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'sc_gallery' OR THIS_SCRIPT == 'album'">
            <li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase sc_gallery}</a>
                <ul class="floatcontainer">
                 <vb:if condition="$show['member']">
                    <li class="popupmenu">
                        <a href="javascript://" class="popupctrl">My Stuff</a>
                        <ul class="popupbody popuphover">
                                <li><a href="album.php?{vb:raw session.sessionurl}">My Albums</a></li>
                                <li><a href="album.php?{vb:raw session.sessionurl}do=addalbum" rel="nofollow">Add Album</a></li>
                                <li><a href="gallery.php?{vb:raw session.sessionurl}do=mycomments" rel="nofollow">My Comments</a></li>
                                <li><a href="gallery.php?{vb:raw session.sessionurl}do=pending" rel="nofollow">Pending Albums</a></li>
                        </ul>
                    </li>
                 </vb:if>
                    <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestpictures">Latest Pictures</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestalbums">Latest Albums</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=latestcomments">Latest Comments</a></li>
          <li><a href="gallery.php?{vb:raw session.sessionurl}do=search">Search</a></li>
                </ul>
            </li>
        <vb:else />
            <li><a class="navtab" href="gallery.php">{vb:rawphrase sc_gallery}</a></li>
        </vb:if>
3. Done!

Close


*Links (for vBulletin 4.0.X - 4.1.X)
http://img38.imageshack.us/img38/4360/navbarlinks.png
GALLERY:
->/gallery.php

My Stuff:
(My Albums)-> /album.php
(Add Album)-> /album.php?do=addalbum
(My Comments)->/gallery.php?do=mycomments
(Pending Albums)->/gallery.php?do=pending

(Latest Pictures)->/gallery.php?do=latestpictures
(Latest Albums)->/gallery.php?do=latestalbums
(Latest Comments)->/gallery.php?do=latestcomments
(Search)->/gallery.php?do=search

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
v1.5 third release
- Classic layout abolished
- New: Notification feature = users with Albums in category "Uncategorized" auto-notified by the system to move them to a subject category (pending albums)
- New feature: admin can set if he want him users to display Albums or Pictures when open the categories.
- New: menus "Browse Albums" & "Browse Pictures" on Gallery Display (user can navigate the albums/pictures in the category)
- New: My albums/pictures in "this" category feature
- Admincp environment improved (List Albums)
- 3 bugs fixed
v1.6 fourth release
- Galleryhome: fixed the view of description for header categories
- New feature: ability to add custom statusicons to categories (http://www.vbulletin.org/forum/attach/images/139239.png)
- 1 phrase undefined variable fix
- pending albums: 1 bug fixed
v2.0 fifth release
- New feature: forum pictures attachment gallery (with ability to turn it as gallery category)
- search feature for attachment gallery
- 1 phrase issue fixed
- 1 bug fixed
v2.1
- better attachments gallery popup

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

Tested on vBulletin 4.2.0

Download

File Type: %1$s sc_vbgallery_v2.1.zip (929.1 KB, 930 downloads)

Screenshots

Click image for larger version
Name:	add album.png
Views:	1407
Size:	56.3 KB
ID:	139038   Click image for larger version
Name:	galleryhome.png
Views:	1153
Size:	46.5 KB
ID:	139042   Click image for larger version
Name:	latest pictures.jpg
Views:	2428
Size:	86.1 KB
ID:	139043   Click image for larger version
Name:	my comments.jpg
Views:	1169
Size:	71.4 KB
ID:	139044  

Click image for larger version
Name:	search.JPG
Views:	714
Size:	47.6 KB
ID:	139082   Click image for larger version
Name:	admincp options.jpg
Views:	452
Size:	80.7 KB
ID:	139200   Click image for larger version
Name:	pending page.jpg
Views:	1034
Size:	69.2 KB
ID:	139201   Click image for larger version
Name:	gallerydisplay.jpg
Views:	938
Size:	65.9 KB
ID:	139202  

Click image for larger version
Name:	statusicons.png
Views:	757
Size:	57.7 KB
ID:	139239  


vblts.ru supports vBulletin®, 2022-2024