vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Picture and Album Gallery (https://vborg.vbsupport.ru/showthread.php?t=237931)

rbc1225 01-26-2012 12:54 AM

Quote:

Originally Posted by Videx (Post 2292480)
If you do a "Search this Mod" in the upper right you may see others have had problems with vbadvanced and this mod also. You could try writing them and ask if they solved the issue.

Ahhhh never saw that "Search this Mod" button. Cool. Thanks for your response. I think I might just have to update everything to the latest version and see how it goes. I see this mod used on another board with Vbadvanced and the newest VB. Just haven't doen that yet, so a little leary about updating the first time. :) Thanks again

Travis-Mc 01-30-2012 12:11 AM

Quote:

Originally Posted by XManuX (Post 2002045)
I wanted to give a bigger emphasis on the gallery, thus displaying the link in the main navbar, not in the "forum" sub-bar.

Here are the modifications in the navbar template :

Find:
Code:

{vb:raw template_hook.navtab_end}
Add Below:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND (THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'picall')">
                        <vb:if condition="$show['member']">
                                <li  class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
                                <ul class="floatcontainer">
                                        <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
                                        <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">My Albums</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=addalbum">Add Albums</a></li>
                                </ul>
                        <vb:else />
                                <li  class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
                                <ul class="floatcontainer">
                                        <li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
                                        <li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
                                        <li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>                               
                                </ul>
                        </vb:if>
                <vb:else />
                        <li><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}" >Gallery</a>
                </vb:if>

Find:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
Replace With:
Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'albumall' AND THIS_SCRIPT != 'album' AND THIS_SCRIPT != 'picall'">
Done.

Note: the addition in navbar could be easily coded as a hook on navtab_end, not sure that the replacment could be achieved in a "clean" way (ie : not altering the navbar template)


Thank for this! That filled in a couple of gaps for me. I tired using the product that created the links in the NavTab but I didn't like how the the tab wasn't selected when you were in an album. Your replacement works perfectly. Expect that since I'm not using the What's New button, mine looks like this:

PHP Code:

<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'albumall' AND THIS_SCRIPT != 'album' AND THIS_SCRIPT != 'picall'"

Anyone have any reasons for or against putting those in an array instead of using so many ANDs? I thought an array would be the way to go but both work I guess.

I also attempted to create a plugin to add the new tab and links. I did them in the same style as you where after you click on the main tab, the other links are in the secondary navigation bar and not in a drop-down. This is more consistent with the rest of the tabs.

Here's the plugin I created. I'm extremely new to this so be easy on me.

Hook: process_templates_complete

PHP Code:

$albumshowmember '';
if (
$show['member'])
{    
$albumshowmember '        <li><a href="album.php?' $sess '&u=' $vbulletin->userinfo['userid'] . '">' $vbphrase['my_albums'] . '</a></li>
                <li><a href="album.php?' 
$sess '&do=addalbum">' $vbphrase['add_album'] . '</a></li>
'
;
}

$tabselected '';
$tablinks '';
if (
THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'picall')
{
    global 
$vbphrase$vbulletin;
    
$vbulletin->options['selectedalbum']='selectalbum';
    
$tabselected ' class="selected"';
    
$sess $vbulletin->session->vars['sessionurl_q'];
    
$tablinks '            <ul class="floatcontainer">
                <li><a href="albumall.php?' 
$sess '">' $vbphrase['album_gallery'] . '</a></li>
                <li><a href="picall.php?' 
$sess '">' $vbphrase['picture_gallery'] . '</a></li>
                <li><a href="album.php?' 
$sess '&do=latest">' $vbphrase['latest_albums'] . '</a></li>
                '
.$albumshowmember.'';

}            
$template_hook[navtab_end] .= '<li'.$tabselected.'><a class="navtab" href="albumall.php?' $sess '">' $vbphrase['gallery'] . '</a>'.$tablinks.'</li>' 

I created that using a lot of trial and error and copy and pasting using your code, the code provided in this mod, and Lynne's [HOW TO - vB4] Create a New Tab in the navbar. I really don't know how clean or efficient it is, but seems to work so far!

Ok so as was typing all of the above, I discovered that KW802 accomplished everything I was going for in a nice product (just a few posts later) here: https://vborg.vbsupport.ru/showthrea...20#post2199320. It does the same thing but uses a template for the code instead of having all of it in the plugin itself.

Oh well. I guess I just posted another way to do it. For you programmers, is it better to have the code in a template that gets cached or have it all in the plugin like what I did?

A huge thanks to HCGB for creating this and to everyone else who has supported it.

KProjects 02-20-2012 03:23 AM

Quote:

Originally Posted by Jpolola (Post 2292150)
Anybody could please help me how to fix it. Please see picture. I am using 4.1.8 and downloaded gallery 109.

Did you figure this out?

Experiencing the same thing with vbulletin 4.1.10..

I'm using vbadvanced cmps version 4.1.3 - not getting the issue that vbadvanced 'links' users are getting.. I'm getting the blank navtab.

When I use the navbar one xml file, it does not show up in the forum navbar..

Also tested w/ default style... same thing.

RustyF 02-26-2012 01:37 AM

Will this plugin or any other plugin import meta data from Adobe Light Room?

I will install it any way as it is useful. I could really use something like that too though.

Thanks

keyper 03-02-2012 10:35 AM

Hi, I installed Gallery on my vb and everything works like it should, allows me to upload pics, create an album, goes thru the process of uploading pics, and then says that there are no new albums to show. If I click on the thumbnail of the album in the user section (which shows) it says there are no pictures to display.
please tell me what I have missed. maybe a check box that I didn't tick. any help appreciated.

Thanks
Nick

Videx 03-02-2012 12:51 PM

Quote:

Originally Posted by keyper (Post 2305296)
Hi, I installed Gallery on my vb and everything works like it should, allows me to upload pics, create an album, goes thru the process of uploading pics, and then says that there are no new albums to show.

I think you're confused as to what this mod does - which is none of that. Right now probably the best thing you can do is uninstall this and any other mods and make sure your stock vb is working correctly.

PS When uninstalling mods be sure to manually delete any files you uploaded.

Terminal-Access 03-02-2012 11:14 PM

Awesome mod! iv morked as installed, rated 5 stars and nominated
Additionally i have just upgraded my forums to version 4.1.11 and wish to report this mod is working wonderfully with the new version.

keyper 03-05-2012 09:38 AM

Quote:

Originally Posted by Videx (Post 2305334)
I think you're confused as to what this mod does - which is none of that. Right now probably the best thing you can do is uninstall this and any other mods and make sure your stock vb is working correctly.

PS When uninstalling mods be sure to manually delete any files you uploaded.

Ok so the question is, " When is a gallery not a gallery " <-- When its this MOD??!!
So if I can clarify, your Mod is a gallery mod, which displays photos?? or Not??

and for some reason, now I have photos showing in Albums, which I can find from the gallery Tab............

so yes your reply has confused me. my next question was going to be how can i make the auto resize for displaying the pics bigger, but that will probably be a stupid question to ask here.

so Thanks for the mod, and even though I obviously have no idea what it does, it seems to be working for the most part. :erm:

laebshade 03-13-2012 08:37 PM

This addon groups all albums or pictures as a 'gallery'. It allows you to browse all of them rather than just the latest or recently updated (album.php?do=latest or album.php). It has no functionality for uploading pictures; vBulletin is still left to do that using album.php.

bloodyred 03-19-2012 05:34 AM

two words "Remote Linking"


All times are GMT. The time now is 03:56 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.02025 seconds
  • Memory Usage 1,786KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete