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)

NashChristian 04-03-2010 09:56 AM

Quote:

Originally Posted by HCGB (Post 2015043)
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!

HCGB 04-03-2010 12:56 PM

Quote:

Originally Posted by NashChristian (Post 2015066)
...
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.

NashChristian 04-03-2010 05:04 PM

Quote:

Originally Posted by HCGB (Post 2015129)
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!) :D

HCGB 04-03-2010 05:32 PM

Quote:

Originally Posted by NashChristian (Post 2015220)
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.

NashChristian 04-03-2010 06:22 PM

Quote:

Originally Posted by HCGB (Post 2015229)
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. :D

NashChristian 04-03-2010 06:29 PM

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. ;)

garyfinlay 04-03-2010 07:49 PM

Thank you for this mod.

Marked installed, motm and rated.

NashChristian 04-04-2010 05:50 PM

Quote:

Originally Posted by HCGB (Post 2015229)
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!
:D Jeff

NashChristian 04-04-2010 06:30 PM

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!

Verionia 04-05-2010 02:24 PM

great and nominated! :)


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.01766 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_code_printable
  • (6)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