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
  #262  
Old 06-14-2010, 11:37 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
By default, vB doesn't allow guests to view album images - this behaviour is not changeable. This mod does allow guests to view album and picture thumbnails provided the permissions are set properly.
Negative. I just fired up Chrome (Not Logged In) and went to both Album or Picture Gallery and I can click the thumbnails and get pictures.
Reply With Quote
  #263  
Old 06-14-2010, 11:46 AM
Webbstre Webbstre is offline
 
Join Date: Nov 2009
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
Negative. I just fired up Chrome (Not Logged In) and went to both Album or Picture Gallery and I can click the thumbnails and get pictures.
Ditto, I just tested this as well.

I have a request for this mod though. I would like the ability to Sticky certain albums to the top of the albums page, so that my users can know what albums are endorsed and maintained by the staff.
Reply With Quote
  #264  
Old 06-14-2010, 01:58 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those using the Tab xml and your having problems seeing the links, try using this in your plugin. Copy and replace the entire code for the tab plugin and of course you can manually edit the font color values.

Im sure its not the best way but it works in FF, IE, Chrome and Avant browsers.

PHP Code:
// change $allowguests from 'true' to 'false' if you do NOT want guests to see the gallery menu

    
$allowguests true

/******** NO EDITS below here! ************/
/******************************************/

if ($show['member'] OR $allowguests)
{
    global 
$vbphrase$vbulletin$stylevar;

    
$sess $vbulletin->session->vars['sessionurl_q'];
        
$template_hook[navtab_end] .= '
        <li class="popupmenu">
            <a href="javascript://" class="popupctrl navtab">
                ' 
$vbphrase['gallery'] . '<img src="' vB_Template_Runtime::fetchStyleVar('imgdir_misc') . '/arrow.png" align="' vB_Template_Runtime::fetchStyleVar('right') . '" />
            </a>
            <ul class="popupbody popuphover" style="color:' 
vB_Template_Runtime::fetchStyleVar('navbar_tab_linkhover_color') . ';font:' vB_Template_Runtime::fetchStyleVar('navbar_tab_font') . '">
            <li></li>
                <li><a href="albumall.php?' 
$sess '"><font color="#333333">' $vbphrase['album_gallery'] . '</font></a></li>
                <li><a href="picall.php?' 
$sess '"><font color="#333333">' $vbphrase['picture_gallery'] . '</font></a></li>
                ' 
. ($show['member'] ? '
                <li><a href="album.php?' 
$sess '&do=latest"><font color="#333333">' $vbphrase['latest_albums'] . '</font></a></li>
                <li><a href="album.php?' 
$sess '&u=' $vbulletin->userinfo['userid'] . '"><font color="#333333">' $vbphrase['my_albums'] . '</font></a></li>
                <li><a href="album.php?' 
$sess '&do=addalbum"><font color="#333333">' $vbphrase['add_album'] . '</font></a></li>
                ' 
'') . '
            </ul>
        </li>'
;

Reply With Quote
  #265  
Old 06-14-2010, 08:24 PM
fayax fayax is offline
 
Join Date: Dec 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an excellent mod but since I am no coder I will wait till an updated version with no major issues comes up. That way I dont run into the particular menu issues mentioned here.

Waiting...

Tagged.
Reply With Quote
  #266  
Old 06-16-2010, 05:16 PM
uglyduck uglyduck is offline
 
Join Date: May 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HCGB View Post
I hate to state the obvious but you did install the navbar/tab products didn't you (step 5 - check if it/they show in the plug in manager)?

If they show then the only reason why it wouldn't work is that the navbar template doesn't have the template hooks for the menu bar (i.e. it's a hacked template).

By default, vB doesn't allow guests to view album images - this behaviour is not changeable. This mod does allow guests to view album and picture thumbnails provided the permissions are set properly.

Thank you!! Yes, it was the obvious, lol.
Reply With Quote
  #267  
Old 06-17-2010, 01:25 AM
fluentdesigns fluentdesigns is offline
 
Join Date: Sep 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know why after I run the rebuild thumbnails a bunch of album picture covers are now missing? The albums still work and so do the images in the albums but the covers are completely gone and all I get is the alt tag showing "picture"
Reply With Quote
  #268  
Old 06-21-2010, 03:21 AM
ArchAngelz ArchAngelz is offline
 
Join Date: May 2010
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I ask how I can :

(a) Change the default navtab name from "Gallery" to something else, say "Photo Gallery"

(b) Change the position of the navtab; I'm currently using the following to manage my tabs and this one results in it always going to the extreme right.

https://vborg.vbsupport.ru/showthread.php?t=233629
Reply With Quote
  #269  
Old 06-21-2010, 06:05 AM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ArchAngelz View Post
Can I ask how I can :

(a) Change the default navtab name from "Gallery" to something else, say "Photo Gallery"

(b) Change the position of the navtab; I'm currently using the following to manage my tabs and this one results in it always going to the extreme right.

https://vborg.vbsupport.ru/showthread.php?t=233629
Just use Tabs Add to put the tab on the menu bar instead of importing the included tabs product - that way you can put it where you wish and call it whatever you want.

The phrases for this mod can be found in AdminCP>Languages and Phrase-> ... and search for "Gallery"
Reply With Quote
  #270  
Old 06-22-2010, 12:25 AM
fluentdesigns fluentdesigns is offline
 
Join Date: Sep 2005
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fluentdesigns View Post
Anyone know why after I run the rebuild thumbnails a bunch of album picture covers are now missing? The albums still work and so do the images in the albums but the covers are completely gone and all I get is the alt tag showing "picture"
Still haven't got any help on this. Anyone that can jump in and give me some kind of solution? I have rebuilt thumbnails 3 times already. Tried switching album cover to another photo. Still nothing works. Getting frustrated
Attached Images
File Type: jpg gallery.jpg (69.5 KB, 0 views)
Reply With Quote
  #271  
Old 06-22-2010, 06:35 AM
HCGB HCGB is offline
 
Join Date: Apr 2008
Location: Scotland
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fluentdesigns View Post
Still haven't got any help on this. Anyone that can jump in and give me some kind of solution? I have rebuilt thumbnails 3 times already. Tried switching album cover to another photo. Still nothing works. Getting frustrated
It could be many things =- a few things to check are:

Can you view the album cover thumbnail as a picture thumbnail (in other words, does the picture thumbnail actually exist) - check in the picture gallery and in the users profile album gallery? I don't mean the full-size picture - just the thumbnail.

Check the HTML code for the page in the browser - what image URL is used? Check that it points to a valid file on your site. If their is no URL for the missing image then it means that the thumbnail file itself is missing.

Lastly, I would check the database if you are comfortable with doing this (extract the filedataid field from the album row for a missing image then use it to get the thumbnail_filesize from the filedata row. Te thumbnail_filesize value should be non-zero if the image has a thumbnail available.
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 07:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05529 seconds
  • Memory Usage 2,388KB
  • 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_php
  • (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
  • (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