The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Picture and Album Gallery Details »» | |||||||||||||||||||||||||||||||
Picture and Album Gallery for vB4 This is a simple mod written out of frustration with the lack of such a basic feature in vb4 (and vb3, etc....) Features: Adds a Gallery drop-down menu to the nav bar OR to the navtab which allows browsing AND searching of all pictures and albums on your site. The search function searches the album title, album description, picture caption AND username. Note: If guest permission AdminCP->Usergroups->UserGroup Manager->Unregistered/Not Logged In->Can View Albums is "yes" then they will be able to browse album and picture thumbnails - they may NOT be able to view the full-size pictures. To hide the gallery menu from guest see Settings below. The gallery and menu is phrased. Tested with Vbulletin 4.0.2/3 (note: earlier versions have not been tested and are not supported) AND vBadvanced 4 beta1. Settings: None are needed - it does what it says on the tin . AdminCP->Options->User Profile:Album Options "Pictures Per Page" and "Albums Per Page" control the number of thumbnails displayed per page in each gallery type. If you get images overlapping the borders then you have inconsistent thumbnail sizes - you need to: AdminCP->Maintenance->Update Counters->Rebuild Attachment Thumbnails If you want to hide the Gallery menu from guests then edit the Gallery navbar (or navtab) popup menu plugin and change $allowguests = from true to false Installation
Updates To update from an older version you MUST uninstall the product (admincp->manage products: delete Picture and Album Gallery). Then re-install as above. v1.08 tested on vb4.0.3 v1.07 Fixed navtab menu - picture and album URLS swapped Converted navtab/bar into products to make installation easier. v1.06 Due to popular demand added navtab drop down menu (with help from TimberFloorAu ) Cleaned up code and templates v1.05 Phrased menu items - upgrade is not required unless you use other languages. v1.04b fixed database connection issue deleted unused template from product xml v1.03b Changed permissions to allow guests to view thumbnail galleries Added phrasing for main gallery code. Removed navbar template - replaced by plug-in code Changed album display template from albumbit to album_latestbit (it works better!) Various template mods to clean up display v1.02b Wasn't remembering search query between pages. This is my first "proper" product so comment/criticism/etc is welcome John Download Now
Screenshots
Show Your Support
|
12 благодарности(ей) от: | ||
Detomah, flash84, Insta-Gator, K4GAP, RichieBoy67, sodasusu, Terminal-Access, theorigin79, Travis-Mc, upfrontideasuk, wrang, zascok |
Comments |
#72
|
|||
|
|||
Works perfectly!
Thank you so much! |
#73
|
|||
|
|||
i just installed the latest version and got this:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'nobody'@'localhost' (using password: NO) in [path]/picall.php on line 110 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in [path]/picall.php on line 110 |
#74
|
|||
|
|||
I realized I missed some templates in the cache call. Here it is attached please include this in your future products. You have 5 uncached templates.
|
#75
|
|||
|
|||
Great mod! It works.. but I am having an issue with the formatting of the pictures and albums. Please see the screenshot below:
I upped the max limit of displayed pictures and albums to 30 to try to compensate and fix it because it wasn't working with the default 10/25. Do you have any suggestions? Thanks! |
#76
|
|||
|
|||
Quote:
I note you are running vb 4.0.1 - this mod has only been tested on 4.0.2 |
#77
|
|||
|
|||
I wanted to give a bigger emphasis on the gallery, thus displaying the link in the main navbar, not in the "forum" sub-bar.
Here are the modifications in the navbar template : Find: Code:
{vb:raw template_hook.navtab_end} Code:
<vb:if condition="!$vboptions['selectednavtab'] AND (THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'picall')"> <vb:if condition="$show['member']"> <li class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a> <ul class="floatcontainer"> <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li> <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li> <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li> <li><a href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">My Albums</a></li> <li><a href="album.php?{vb:raw session.sessionurl}do=addalbum">Add Albums</a></li> </ul> <vb:else /> <li class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a> <ul class="floatcontainer"> <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li> <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li> <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li> </ul> </vb:if> <vb:else /> <li><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}" >Gallery</a> </vb:if> Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'"> Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'albumall' AND THIS_SCRIPT != 'album' AND THIS_SCRIPT != 'picall'"> Note: the addition in navbar could be easily coded as a hook on navtab_end, not sure that the replacment could be achieved in a "clean" way (ie : not altering the navbar template) |
#78
|
|||
|
|||
Quote:
The templates defined as $globaltemplates ARE cached by global.php - an extra plug-in isn't needed - unless I've missed something? |
#79
|
|||
|
|||
HCGB,
i understand, but do you have any ideas what's causing that since the whole forum is working perfectly and i'm not getting that error anywhere else? |
#80
|
|||
|
|||
Little issue: The template gallery_navbar is still there. Shouldn´t it be deleted?
|
#81
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|