Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Picture and Album Gallery Details »
Picture and Album Gallery
Mod Version: 1.09, by HCGB (Coder) HCGB is offline
Developer Last Online: Oct 2012 I like it Show Printable Version Email this Page

vB Version: 4.1.0 Rating: (162 votes - 4.85 average) Installs: 1361
Released: 10 Mar 2010 Last Update: 12 Jan 2011 Downloads: 7789
Not Supported Uses Plugins Auto-Template Additional Files Re-usable Code Translations  

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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	albs.jpg
Views:	20130
Size:	86.0 KB
ID:	113797  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Social Group and Album Enhancements Album Picture Clicks to Next Picture in Album Abe1 vBulletin 3.7 Template Modifications 24 15 Mar 2011 04:45

  #151  
Old 01 Apr 2010, 14:32
kaposer kaposer is offline
 
Join Date: Aug 2008
This is a great Mod, thank you much. I've been waiting for this a loooong time. I've choosed to add the dropdown menu to navbar and added a new button on the navtab that links to picall.php, so you can go to gallery directly or find more options if you need something specific. The search function is great

I get swapped links on the dropdown menu tho, Picture Gallery links to albumall and Album Gallery links to picall, aren't they supposed to be otherwise?

Now all I need for my gallery is an option to center pictures, I'm running at 1024 maxWidth and if I post a picture larger than 1024 it doesn't get centered

Voted for MOM!
Reply With Quote
  #152  
Old 01 Apr 2010, 14:59
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by kaposer View Post
I get swapped links on the dropdown menu tho, Picture Gallery links to albumall and Album Gallery links to picall, aren't they supposed to be otherwise?
Thanks for the vote

Download the latest version (1.07) - it fixed the swapped link problem.
__________________
Reply With Quote
  #153  
Old 02 Apr 2010, 16:13
aberg aberg is offline
 
Join Date: Jul 2004
Thanks for share this.
It's very nice to have this on the navbar.
Albums are difficult to find and with this mod it is very easy
Reply With Quote
  #154  
Old 02 Apr 2010, 22:44
kylek kylek is offline
 
Join Date: Oct 2003
Real name: Kyle
Thank you!! marked installed, rated, and voted for MOTM.
__________________
Reply With Quote
  #155  
Old 03 Apr 2010, 03:24
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
Updated

thank you agen
__________________
Reply With Quote
  #156  
Old 03 Apr 2010, 05:53
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
Great Mod! Thanks for sharing!

One problem though... I just installed, tried both nav structures, didn't like the drop down tab (would prefer a regular tab to album all and then navbar drop down for the rest). Anyhow, that's not my one problem, but rather my one wish. Here is my one problem, when I installed the navbar nav, it disappears (the navigation) on the albumall.php, which means once a user gets to that page, there is NO way to navigate your product. They have to go back to the Forum, and then begin navigation again. (To clarify, the entire "forums" navbar disappears on the albumall.php, not just the nav for your gallery.)

Is there some way I can fix this? I know that I've seen other sites that use your mod without this issue, I don't know if this is due to the new plug-in installation, or ??? Bothersome though... lol. Thanks again for sharing, and let me know Santa's address so I can mail that WISH to him!
Reply With Quote
  #157  
Old 03 Apr 2010, 08:01
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
Reinstalled the drop-down tab, and now noticed that it doesn't have an "active" state. Hmmm... guess the navbar is best, if I can get it to show up on the albumall.php.
Reply With Quote
  #158  
Old 03 Apr 2010, 08:06
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
Originally Posted by kaposer View Post
This is a great Mod, thank you much. I've been waiting for this a loooong time. I've choosed to add the dropdown menu to navbar and added a new button on the navtab that links to picall.php, so you can go to gallery directly or find more options if you need something specific.
Hey there,

How did you add the tab button? I would be interested in this, in conjunction with the navbar. Sounds like what I'm looking for. Please share...

Thanks!~
Reply With Quote
  #159  
Old 03 Apr 2010, 10:11
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
Originally Posted by NashChristian View Post
.....
Is there some way I can fix this? I know that I've seen other sites that use your mod without this issue, I don't know if this is due to the new plug-in installation, or ???
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
__________________

Last edited by HCGB; 03 Apr 2010 at 11:43.
Reply With Quote
  #160  
Old 03 Apr 2010, 11:13
badawidollah badawidollah is offline
 
Join Date: Nov 2008
working on my vb402

thanks alot
you help me so much
Reply With Quote
  #161  
Old 03 Apr 2010, 11:56
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
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
  #162  
Old 03 Apr 2010, 14:56
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
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
  #163  
Old 03 Apr 2010, 19:04
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
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
  #164  
Old 03 Apr 2010, 19:32
HCGB HCGB is offline
 
Join Date: Apr 2008
Real name: John
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Take a look at http://www.vbulletin.org/forum/showthread.php?t=226914 for background.
__________________
Reply With Quote
  #165  
Old 03 Apr 2010, 20:22
NashChristian's Avatar
NashChristian NashChristian is offline
 
Join Date: Jul 2007
Real name: Jeff
Originally Posted by HCGB View Post
The template conditional you need to activate the tab will be something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Take a look at http://www.vbulletin.org/forum/showthread.php?t=226914 for background.
Thanks a lot! I'll give it a shot.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 14:15.

Layout Options | Width: Wide Color: