Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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
  #142  
Old 03-28-2010, 12:50 AM
ShawnV's Avatar
ShawnV ShawnV is offline
 
Join Date: Mar 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
Yep- the links in the navtab are backward - the navbar is OK though. I'll upload a new version later

The navTab popup uses the same style as the navBar popup. There are no navTab popumenu stylevars so I've used the popupmenu popuphover class with navbar_tab_linkhover_color and navbar_tab_font to keep it consistent with the other menus. Unless anyone has any better ideas?

Groovy, thanks.

I meant to say, (lack of coffee) what class or stylevar is used for the picture and album mouse over highlight background, not the navigation.
Reply With Quote
  #143  
Old 03-28-2010, 09:53 AM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShawnV View Post
I meant to say, (lack of coffee) what class or stylevar is used for the picture and album mouse over highlight background, not the navigation.
The album thumbnails use the vB album_latestbit template (class albumthumbcontainer) and the picture thumbnails use the picture class.
Reply With Quote
  #144  
Old 03-28-2010, 01:37 PM
Monty NC Monty NC is offline
 
Join Date: Jul 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lore Master View Post
Installed, thanks, works well.

As I'm not fond of a drop down in Nav Tabs, I wrote a new plugin and added a new template so that the Gallery Nav Tab works like the other Tabs. I also did a check so that a user in Albums will still highlight my Gallery Tab instead of the Forums Tab.

You can see it here: www.reawebservices.com/reaforum/
That's perfect - would you be willing to share the code you used?
Reply With Quote
  #145  
Old 03-28-2010, 02:28 PM
Lore Master Lore Master is offline
 
Join Date: Apr 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Monty NC View Post
That's perfect - would you be willing to share the code you used?
I'll post the steps in this thread if the owner of the Mod doesn't mind. He can freely include the code and update it to if he chooses.

I defaulted the tab to use picall.php as that is the one that makes most sense for me to use.

The options (links) that are displayed below the tab, regardless if you are viewing albums or pictures are:

Picture Gallery Album Gallery Latest Albums My Albums (drop down -> View My Albums, Add Album). I didn't phrase the word View as I was only planning to use it on my site and seen no need.
Reply With Quote
  #146  
Old 03-29-2010, 04:25 AM
Bojangles Bojangles is offline
 
Join Date: Aug 2005
Location: Phoenix, AZ
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
It look like the thumbnails might be different sizes - try AdminCP->Maintenance->Update Counters->Rebuild Attachment Thumbnails

I note you are running vb 4.0.1 - this mod has only been tested on 4.0.2
I recently updated to 4.0.2 PL4 and also the the 1.0.7 version of this mod, and the problem has been resolved.

Thanks again for an awesome mod!
Reply With Quote
  #147  
Old 03-30-2010, 11:33 AM
yellowpinky yellowpinky is offline
 
Join Date: Apr 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lore Master View Post
Installed, thanks, works well.

As I'm not fond of a drop down in Nav Tabs, I wrote a new plugin and added a new template so that the Gallery Nav Tab works like the other Tabs. I also did a check so that a user in Albums will still highlight my Gallery Tab instead of the Forums Tab.

You can see it here: www.reawebservices.com/reaforum/

(new forum, no members yet, with a test album for ummm testing ). The My Albums I converted into a drop-down with View My Albums, and Add New Albums. Guests can not view that in the navbar.
Can you provide the code for this?

--------------

Or author, please change Tabs to work like this.
Gallery tab should not have a drop down arrow. Gallery sub-menu items should be presented on the line below, like how all the other tabs operate.

Also, as it is today, the Gallery tab formats too wide in IE 8, formats ok in Chrome.
Attached Images
File Type: jpg Clipboard01.jpg (11.7 KB, 0 views)
Reply With Quote
  #148  
Old 03-30-2010, 01:12 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yellowpinky View Post
Can you provide the code for this?
Or author, please change Tabs to work like this.
Gallery tab should not have a drop down arrow. Gallery sub-menu items should be presented on the line below, like how all the other tabs operate.

Also, as it is today, the Gallery tab formats too wide in IE 8, formats ok in Chrome.
The gallery is a drop down because it doesn't point to a single page - you need to make a selection. It's impossible to provide plugin code for every type, style and position of menu layout - if you don't like either of the options provided then write your own OR look around this site for the menu mods (there are quite a few).

The Tab plugin supplied with the mod works fine with IE8
Reply With Quote
  #149  
Old 03-30-2010, 11:25 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all the information dont fit on the photos

see

http://www.boerboelsonline.com/picall.php?
Reply With Quote
  #150  
Old 03-30-2010, 11:43 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DieselMinded View Post
all the information dont fit on the photos

see

http://www.boerboelsonline.com/picall.php?
No point posting a link to a forum that requires registration !
Reply With Quote
  #151  
Old 03-31-2010, 02:03 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DieselMinded View Post
all the information dont fit on the photos

see

http://www.boerboelsonline.com/picall.php?
If it's the images that are overflowing try:
AdminCP->Maintenance->Update Counters->Rebuild Attachment Thumbnails
Reply With Quote
Reply


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 08:24 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.05758 seconds
  • Memory Usage 2,370KB
  • 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
  • (9)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
  • (3)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
  • (4)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