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
  #512  
Old 05-25-2011, 12:25 AM
Android 18 Android 18 is offline
 
Join Date: Jan 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi. A forum I'm an admin of is currently using this hack and many members are asking for a minimize button so that they don't have to view the album at the bottom of the page. Is this a possible addition that can be done in the future?
Reply With Quote
  #513  
Old 05-25-2011, 01:09 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Android 18 View Post
Hi. A forum I'm an admin of is currently using this hack and many members are asking for a minimize button so that they don't have to view the album at the bottom of the page. Is this a possible addition that can be done in the future?
You may be in the wrong thread. I don't think this mod displays anything. What's it say in the title of the box? You didn't install it? Link or pic?
Reply With Quote
  #514  
Old 05-25-2011, 05:57 AM
Android 18 Android 18 is offline
 
Join Date: Jan 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I looked around a bit more - this is the mod we have for an actual ALBUM add-on. However, the head admin used two different mods for the album. I'm not the install admin, I'm the find out what members want/hacks admin wants, figure out how to solve and report to head admin to fix person.

Sorry about that~ >>
Reply With Quote
  #515  
Old 05-25-2011, 08:12 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whats the difference in 108 and 109
Reply With Quote
  #516  
Old 05-26-2011, 03:06 AM
steveyos666 steveyos666 is offline
 
Join Date: Jul 2008
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "Album Gallery" and "Picture Gallery" links give me "The requested URL was not found on this server." but the other three links work fine. Anyone else having this problem?
Reply With Quote
  #517  
Old 05-31-2011, 10:50 PM
mrscot mrscot is offline
 
Join Date: Apr 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

We've deleted several users who had created some albums. The problem now is their albums still appear under the "All Albums". How do we remove these albums created by the deleted users?

Thanks
Reply With Quote
  #518  
Old 06-01-2011, 04:48 AM
shooterdfl's Avatar
shooterdfl shooterdfl is offline
 
Join Date: Feb 2009
Location: Washington State
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
Attached is a vB product XML (done with vB 4.1.3) that started off as a result of Wayne posting his original alternate navbar idea (see the past few posts above for the rest of the details ).

This product will do the following for you...
  • Add a new "Gallery" button to your navbar in the same style as the stock vB buttons. The new templates will be cached.
    • After clicking "Gallery" you will then get links for "Album Gallery", "Picture Gallery", "Latest Albums", "My Albums", and "Add Album" in the sub-menu area.
  • Add a new "Latest Albums" link to your "What's New" button menu.
  • Group the various "Gallery" templates together.
Yep, just some very minor little things but it gives a clean overall integration feel. Attached are screen shots of what a logged in user will see.


EDIT: For those that may not have a lot of uploads, I recommend increasing the number of days for uploads to show up in the "Latest Albums" search results so that you're less likely to get a blank page when hitting that link (ACP => Settings => Options => User Profile: Album Options => Recent Album Update Days).
This is a really nice improvement over what we had. Thanks so much!
Reply With Quote
  #519  
Old 06-02-2011, 12:06 AM
MonkYZ MonkYZ is offline
 
Join Date: Jul 2008
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod! Thanks!

But... can you please tell me how to fix the issue with black font on grey menu i encounter in my style? Every other menu is ok, but the one for this mod. Where do i need to edit/change from black to white?

Thank you again!
Reply With Quote
  #520  
Old 06-02-2011, 12:13 PM
LiverpoolB LiverpoolB is offline
 
Join Date: Mar 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod but I have a problem. It all works fine apart from when I go to AdminCP, when I click on any of the links for VBA Gallery, every link creates a database error. I can upload pics etc from the forum but I have no control over the actual settings.

Quote:
Database error
The BFT database has encountered a problem.
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the www.*******.co.uk home page, then try to open another page.
Click the Back button to try another link.
The www.*******e.co.uk forum technical staff have been notified of the error, though you may contact them if the problem persists.

We apologise for any inconvenience.
Any ideas?
Reply With Quote
  #521  
Old 06-02-2011, 12:59 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LiverpoolB View Post
Great mod but I have a problem. It all works fine apart from when I go to AdminCP, when I click on any of the links for VBA Gallery, every link creates a database error.
What you quoted isn't the actual error we would need to be of any help. Try viewing the page source for the actual error text.

When you get the actual error, be sure to try searching first for the solution - use the "search this mod" button to the upper right.

And there's really no need to edit out your forum's urls. I assume it's a public forum and nobody here is going to cause you any grief by knowing where it is.
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 01:17 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.11595 seconds
  • Memory Usage 2,360KB
  • 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
  • (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
  • (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