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
  #162  
Old 04-03-2010, 09:56 AM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
It works OK on a standard vB installation so I can only assume you are using a modified navbar or navtab template. I would suggest you try disabling other navbar mods until you find which one is causing the issue.

BTW: the right side navtabs items on your site are hidden at 1024/800 resolution - a lot of users still use these screen sizes so it might be worth reducing the number of navtab items so they can actually see them all
So just to make sure I'm understanding you, with an unmodified navbar template, using your navtab.xml, the TAB DOES show an "active" state when viewing any of the album or gallery pages?

I do have a tabs mod installed, that may be conflicting... but gosh, I really need that...

I just want to make sure I understand what it "should" do, in the best of circumstances.

I can't see how the tabs mod would have conflicted with your albumall.php navbar (making the navbar completely disappear on that page). Are you sure that part still works fine with your new plug-in, have you tested that recently?

THanks!
Reply With Quote
  #163  
Old 04-03-2010, 12:56 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NashChristian View Post
...
I do have a tabs mod installed, that may be conflicting... but gosh, I really need that...

I just want to make sure I understand what it "should" do, in the best of circumstances.

I can't see how the tabs mod would have conflicted with your albumall.php navbar (making the navbar completely disappear on that page). Are you sure that part still works fine with your new plug-in, have you tested that recently?

THanks!
The navbar plugin with this product uses a single template hook and will work on any installation that has that template hook in the correct location. Your navtab mod obviously doesn't I'm not going to hack around inside someone else's mod so I would suggest that you just add the links to the album/picture gallery PHP files in your navtab mod instead of using the plugin I've provided OR take a look back in this thread for other suggestions on navbar/tab mods.
Reply With Quote
  #164  
Old 04-03-2010, 05:04 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
I would suggest that you just add the links to the album/picture gallery PHP files in your navtab mod instead of using the plugin I've provided OR take a look back in this thread for other suggestions on navbar/tab mods.
Yeah, I tried adding it through the NavTab mod instead, problem is the "active" state will only work in conjunction with one PHP file, and since your product uses three different PHP files, the album.php, albumall.php, and picall.php, the "active" state will only show for one of those, and the other two revert back to showing the "Forum" tab as "active", which kinda sucks.

Maybe I need to figure out how to hard code my tabs myself.

But just to clarify, with your mod (and no other navtab mods), the "active" state for your tab button works on all THREE of those page types listed above?

Thanks again for a VERY needed mod! (vB really should incorporate this functionality!)
Reply With Quote
  #165  
Old 04-03-2010, 05:32 PM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NashChristian View Post
Yeah, I tried adding it through the NavTab mod instead, problem is the "active" state will only work in conjunction with one PHP file, and since your product uses three different PHP files, the album.php, albumall.php, and picall.php, the "active" state will only show for one of those, and the other two revert back to showing the "Forum" tab as "active", which kinda sucks.

Maybe I need to figure out how to hard code my tabs myself.

But just to clarify, with your mod (and no other navtab mods), the "active" state for your tab button works on all THREE of those page types listed above?
No - this product only has two PHP files - album.php is part of vB. Albums and pictures are part of the forum therefore the forum tab remains lit (as it does when you use the navbar menu).

The template conditional you need to activate the tab will be something like:
Code:
<vb:if condition="in_array(THIS_SCRIPT,array('picall','albumall'))">
... display gallery navbar items  ....
</vb:if>
Take a look at https://vborg.vbsupport.ru/showthread.php?t=226914 for background.
Reply With Quote
  #166  
Old 04-03-2010, 06:22 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
The template conditional you need to activate the tab will be something like:
Code:
<vb:if condition="in_array(THIS_SCRIPT,array('picall','albumall'))">
... display gallery navbar items  ....
</vb:if>
Take a look at https://vborg.vbsupport.ru/showthread.php?t=226914 for background.
Thanks a lot! I'll give it a shot.
Reply With Quote
  #167  
Old 04-03-2010, 06:29 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you use BOTH of your nav elements together (tab & bar), or do they cause conflicts with one another?

I disabled my tabs mod, and the navbar is magically working right now, but the navtab still isn't showing an "active" state. I disabled your navbar and the nav tab is still not showing an "active" state. Wierd. Back to hard coding.
Reply With Quote
  #168  
Old 04-03-2010, 07:49 PM
garyfinlay garyfinlay is offline
 
Join Date: Jul 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this mod.

Marked installed, motm and rated.
Reply With Quote
  #169  
Old 04-04-2010, 05:50 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
No - this product only has two PHP files - album.php is part of vB. Albums and pictures are part of the forum therefore the forum tab remains lit (as it does when you use the navbar menu).

The template conditional you need to activate the tab will be something like:
Code:
<vb:if condition="in_array(THIS_SCRIPT,array('picall','albumall'))">
... display gallery navbar items  ....
</vb:if>
Take a look at https://vborg.vbsupport.ru/showthread.php?t=226914 for background.
Ok, I completely uninstalled my tab mod and created plugins for each added button per Lynne's tutorial you linked to (thanks!). Now there doesn't seem to be any conflicting code. My nav tab works fine to go to your product page, albumall.php. It stays "selected" for the other "album" pages, as I want. No prob...

Only issue is, that my NAVBAR is missing on those pages. I'm still using your navbar plugin, and when I click on "Forums" the whole navbar, along with your gallery links, show up fine. However, once I click on one of the gallery links, the entire navbar disappears along with your gallery links.

I know that I could just code the drop-down Nav-Tab, but I don't like it. (I don't like ANY drop-down nav tabs, not just yours. )

Anyhow, I would really like for all of the forum navbar (along with your gallery links) to remain visible while on your pages. How can I get them to appear as I wish?

Thanks again for taking the time to help! Happy Easter!
Jeff
Reply With Quote
  #170  
Old 04-04-2010, 06:30 PM
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Location: Nashville, TN
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I hard-coded the gallery links into the gallery navtab plugin, and decided that I don't need the rest of the forums navbar on those pages. I'm displaying it more as a separate product from the forums, along with the album.php.

Thanks for your help, and GOOD WORK! This really should be incorporated into base vB!

Voted MOTM... it just makes SENSE!
Reply With Quote
  #171  
Old 04-05-2010, 02:24 PM
Verionia Verionia is offline
 
Join Date: Jul 2009
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great and nominated!
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 05:40 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.15506 seconds
  • Memory Usage 2,373KB
  • 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
  • (3)bbcode_code
  • (6)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
  • (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