Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Picture and Album Gallery Details »»
Picture and Album Gallery
Version: 1.09, by HCGB HCGB is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.1.0 Rating:
Released: 03-09-2010 Last Update: 01-11-2011 Installs: 1361
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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
  1. Unzip the download package and copy the contents of the UPLOAD folder into your forum folder.
  2. Go to the VB AdminCP->Plugins & Products click "Manage Products". The click "Add/ImportProduct" at the bottom of the page.
  3. Click "Browse" button and point to the product-gallery-(etc).XML file included in this ZIP package.
  4. Click "Import"
  5. Once the gallery import is complete, click "Add/Import Product" again and select EITHER product_gallery_navtab-xxx.xml OR product_gallery_navbar-xxx.xml depending on where you want the gallery menu to appear (navbar or navtab).
... all done

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

File Type: zip vb4 Gallery 108.zip (9.6 KB, 3031 views)
File Type: zip vB4 Gallery 109.zip (9.6 KB, 4925 views)

Screenshots

File Type: jpg albs.jpg (86.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 03-20-2010, 04:16 AM
Webbstre Webbstre is offline
 
Join Date: Nov 2009
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just downloaded and installed the files in vb4 Gallery104b.zip. If I manually type in the albumall.php page it loads, but there is no change in the menu anywhere. I definitely imported the product file correctly, but still, no menu.
Reply With Quote
  #103  
Old 03-20-2010, 07:22 AM
deadbolt80 deadbolt80 is offline
 
Join Date: Jan 2010
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed in 4.0.1 and works beautifully.

Thank you!
Reply With Quote
  #104  
Old 03-20-2010, 07:51 AM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Webbstre View Post
I have just downloaded and installed the files in vb4 Gallery104b.zip. If I manually type in the albumall.php page it loads, but there is no change in the menu anywhere. I definitely imported the product file correctly, but still, no menu.
Check that the plugin appears in the list in AdminCP->Plugins & Products->Plugin Manager. If it does then the navbar template hook must be missing in your vb installation (are you using a modified navbar template?).
Reply With Quote
  #105  
Old 03-20-2010, 09:13 AM
Webbstre Webbstre is offline
 
Join Date: Nov 2009
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
Check that the plugin appears in the list in AdminCP->Plugins & Products->Plugin Manager. If it does then the navbar template hook must be missing in your vb installation (are you using a modified navbar template?).
It's in the plugin manager, but you are probably on to something with the template hook thing. I haven't manually changed the default navbar template, but could another add-on have modified it for me? This is what is in my list right now:
Code:
vBulletin  	4.0.2  	   	 
Automatic Tagger From Content and Title 	4.4.0 	Automatically adds tags to according to message content, title and already existing tags in forum. 	
 DownloadsII 	6.0.3 	A downloads mod for vBulletin 	
 Evisystems Latest files forum block 	0.5 	Shows lastes files from downloads II 	
 Extend your Blocks 	1.0 Beta 1 	... 	
 Lastest five downloads widget 	1.4 	widget with lastest five downloads 	
 microMEMBERS 	4.2.1 	Memberlist replacement 	
 Most popular downloads 	1.3 	Widget with most popular downloads 	
 New Album Picture Forum Home 	1.0 	  	
 PHPKD - Advanced Quick Reply 'Ultimate' 	4.0.100 	This product extends 'Quick Reply' functionality to allow all "Advanced Editor mode" options [ All Built-In BBCodes / Smilie Box / Smilie Menu / Attachments ] (with full control from AdminCP). 	
 Picture and Album Gallery 	1.04 	Picture and Album Gallery vb4 	
 Postbit Last Online Date And Time 	1.0.0 	Show users last online activity date and time to postbit 	
 Spiders in WGO 	1.0 	Show Spiders In Whats Going On Box 	
 Tabbed Forum Home 	4.0.0 Beta 1 	This product allows for you to work in YUI tabs into your forum home and have AJAX calls to load the information. 	
 Use Original Thread for Comments 	4.0-0.1 a2 	When a thread is promoted from the forum to the CMS, this mod makes the CMS use the original thread for the comments. 	
 VaultWiki 	3.0.0 Beta 6 	A fully-functional wiki for vBulletin. 	
 vBulletin Blog 	4.0.2 	Personal web log, integrated with vBulletin. 	
 vBulletin CMS 	4.0.2 	Content Management System 	
 VSa - Advanced Registration 	2.0.1 	VSa - Advanced Registration 	
 VSa - ChatBox 	3.1.6 	VSa - ChatBox 	
 VSa - Login To User Account 	3.0.5 	VSa - Login To User Account
Reply With Quote
  #106  
Old 03-20-2010, 10:09 AM
Kat00 Kat00 is offline
 
Join Date: Jan 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant.
Reply With Quote
  #107  
Old 03-20-2010, 05:37 PM
iadventure iadventure is offline
 
Join Date: Feb 2010
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have thumbnails set to 600 on my forum, Because of this, when viewing image galleries they overlap. Is there a way to re-define the thumbnail size just for this mod so it show properly?
Reply With Quote
  #108  
Old 03-20-2010, 05:50 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know, but 600 is hardly a thumbnail. Don't you test your layouts on the lowest common denominator - like a 1024X768 laptop screen? One of your 'thumbnails' would fill half my screen! And then there's netbooks at maybe 1024X600. It doesn't sound like you're thinking this through.
Reply With Quote
  #109  
Old 03-20-2010, 06:33 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Webbstre View Post
It's in the plugin manager, but you are probably on to something with the template hook thing. I haven't manually changed the default navbar template, but could another add-on have modified it for me? This is what is in my list right now:
I am not familiar with any of these plugins. If you check the plugin code for each one you will see which template hook it uses ($template_hook[something_or_other]). Check for $template_hook[navbar_after_getnew]. More than one plugin can use the same hook location provided each appends its output to the hook variable.

You could try changing the gallery hook location to $template_hook[navbar_start], $template_hook[navbar_after_pm], $template_hook[navbar_after_faq] or $template_hook[navbar_after_calendar] which will move it to a different position in the menu.
Reply With Quote
  #110  
Old 03-20-2010, 06:44 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iadventure View Post
I have thumbnails set to 600 on my forum, Because of this, when viewing image galleries they overlap. Is there a way to re-define the thumbnail size just for this mod so it show properly?
Err... no. Browser image resizing would significantly increase page load time. The sites I run have the full images resized to 800 on upload (thumbnails at 120) - there isn't much benefit in having a higher resolution for the vast majority of users. I would suggest you re-size thumbnails to 100-150 (the size of your thumb ).
Reply With Quote
  #111  
Old 03-20-2010, 09:52 PM
pjaco's Avatar
pjaco pjaco is offline
 
Join Date: Jul 2008
Location: Oslo / Norway
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 04:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05408 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete