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)
-   -   Major Additions - [DBTech] vBNavTabs (https://vborg.vbsupport.ru/showthread.php?t=274972)

DragonByte Tech 03-13-2012 09:15 PM

Yes what ever the THIS_SCRIPT value of the page you are linking to needs to be put in that field, or the tab will not highlight.

Chris

lewisforlife 03-13-2012 09:36 PM

I apologize, but I do not understand. How do I set the "THIS_SCRIPT" value of a page? I created the page with BF-Easy Pages and there is no setting for "THIS_SCRIPT". Is there some way for me to do this manually?

Sorry, I am a newbie.

lewisforlife 03-13-2012 09:41 PM

Nevermind, I was able to view the source of the page, and search for THIS_SCRIPT. I figured it out, it was pages.

Thanks.

DragonByte Tech 03-13-2012 10:21 PM

Glad you got it sorted out, let me know if you need anything else. :)

Chris

gajinoz 03-14-2012 01:48 AM

I do have one question ....

I'm trying to get a grip on the THIS_SCRIPT parameter. One of my new tabs links to a page, (well, a thread really), and from the source it tells me that the parameter value is "showthread".

However, another page (thread) I want to link to has the same value.

Possibly I'm being very dense here but if the same value is on both tabs, which one gets highlighted and when?

DragonByte Tech 03-14-2012 03:31 AM

If two tabs have the same THIS_SCRIPT value they will both be highlighted at the same time, so if you choose one they will both be highlighted. That is how vBulletin handles it.

What I would do in your situation in order to have the tab highlight when it is selected is in the field URL To Tab paste the full url to the thread, and instead of selecting THIS_SCRIPT select URL in the field URL To Tab.

This will highlight each tab as it is selected.

Chris

gajinoz 03-14-2012 05:46 AM

Quote:

Originally Posted by DragonByte Tech (Post 2309275)
If two tabs have the same THIS_SCRIPT value they will both be highlighted at the same time, so if you choose one they will both be highlighted. That is how vBulletin handles it.

What I would do in your situation in order to have the tab highlight when it is selected is in the field URL To Tab paste the full url to the thread, and instead of selecting THIS_SCRIPT select URL in the field URL To Tab.

This will highlight each tab as it is selected.

Chris


OK, great, I'll give that a go, thanks.

DragonByte Tech 03-15-2012 01:28 AM

Let me know if it works, it should if it is set up right.

Chris

AaronMiller 03-20-2012 01:27 PM

Hey Chris, nice mod. It looks great and seems pretty simple to use.

I am having a little problem with getting the tabs to highlight when they go to the page they are linked to. I created 2 pages off of the CMS which both use the same THIS_SCRIPT (vbcms) value, so I just used the url parameter tab mode (with full url) and left the this_script field blank. Whenever I go to these pages it still highlights the CMS page. Is there something I missed? I am running vb4.1.11. Thanks for your help.

DragonByte Tech 03-20-2012 04:05 PM

What is it you are linking to in the cms?

I created a tab, linking to article, for Tab Mode I choose URL, so when I clicked on that tab it took me to the article and highlighted the tab.

Chris

AaronMiller 03-20-2012 04:17 PM

Quote:

Originally Posted by DragonByte Tech (Post 2311415)
What is it you are linking to in the cms?

I created a tab, linking to article, for Tab Mode I choose URL, so when I clicked on that tab it took me to the article and highlighted the tab.

Chris

I am linking to a section page.

Here's a link if you want to see it. http://www.trumavideos.com/content.php?126-articles

DragonByte Tech 03-20-2012 04:20 PM

What do you have in the field Tab Mode?

Chris

AaronMiller 03-20-2012 04:28 PM

Quote:

Originally Posted by DragonByte Tech (Post 2311419)
What do you have in the field Tab Mode?

Chris

URL_PARAMETER

I have tried just the URL and it still gives the same problem.

DragonByte Tech 03-20-2012 04:29 PM

Try URL and see what happens.

Chris

AaronMiller 03-20-2012 04:45 PM

Quote:

Originally Posted by DragonByte Tech (Post 2311423)
Try URL and see what happens.

Chris

Just tried it and it still highlights the Home tab

DragonByte Tech 03-20-2012 09:16 PM

Hmmm if you pm me a admin account I can look into it for you.

Chris

AaronMiller 03-21-2012 03:18 AM

Quote:

Originally Posted by DragonByte Tech (Post 2311535)
Hmmm if you pm me a admin account I can look into it for you.

Chris

Sure thing. Account info has been PMed to you. Thank you for looking into it.

DragonByte Tech 03-21-2012 03:34 AM

I replied to your pm.

Chris

wildheart 03-27-2012 12:58 PM

Thank you it works perfect on 4.1.11

LLent 03-27-2012 01:46 PM

i have updated to latest vb and have put in new skins i have tried to save the tabs by clicking save again it goes through process but to no avail its not showing the tabs on new skins ...what can i do to fix this thanks

DragonByte Tech 03-27-2012 08:22 PM

Quote:

Originally Posted by wildheart (Post 2313811)
Thank you it works perfect on 4.1.11

Glad to hear. :)

Quote:

Originally Posted by LLent (Post 2313829)
i have updated to latest vb and have put in new skins i have tried to save the tabs by clicking save again it goes through process but to no avail its not showing the tabs on new skins ...what can i do to fix this thanks

But it does work on the original skins you have installed? If so try flushing any caching systems you may have installed on your site.

Chris

MacroPhotoPro 04-03-2012 12:49 PM

This looks like an awesome mod that took a lot of time and effort to create!

However, I have already customized tabs, and all I really wanted to do was add a new navlink to my default tabs (Home/Forum/Blog).

Will this MOD enable me to add navlinks to already-existing default tabs?

Thanks!

HHelp1 04-03-2012 12:54 PM

Quote:

Originally Posted by MacroPhotoPro (Post 2316355)
This looks like an awesome mod that took a lot of time and effort to create!

However, I have already customized tabs, and all I really wanted to do was add a new navlink to my default tabs (Home/Forum/Blog).

Will this MOD enable me to add navlinks to already-existing default tabs?

Thanks!

The answer is: YES

MacroPhotoPro 04-03-2012 01:04 PM

Thanks.

Will the light version or just the pro?

HHelp1 04-03-2012 01:07 PM

Both Sir!

MacroPhotoPro 04-03-2012 01:18 PM

Thanks again--I will try!

DragonByte Tech 04-03-2012 08:17 PM

No you can not add navlinks to the default tabs with the mod. You can however, remove the default tabs with the mod (PRO) then add the tabs back using tthe mod and then add navlinks to that tab. By navlinks I assume you mean the links in the sub-navbar.

Chris

MacroPhotoPro 04-03-2012 08:33 PM

Quote:

Originally Posted by DragonByte Tech (Post 2316496)
No you can not add navlinks to the default tabs with the mod. You can however, remove the default tabs with the mod (PRO) then add the tabs back using tthe mod and then add navlinks to that tab. By navlinks I assume you mean the links in the sub-navbar.
Chris

Okay, thank you for the clarification and your time, Chris.

All I want to be able to do is add a couple of navbar links to my existing Home/Forum/Blog tabs.

Can't seem to find any way to do this :(

Jack

DragonByte Tech 04-04-2012 12:31 AM

Only way I can think of is to add them into the templates directly.

By finding the place you want them displayed and adding this:

HTML Code:

<li><a href="memberlist.php{vb:raw session.sessionurl_q}">Your Text Here</a></li>
Replacing memberlist.php with the page you want to go to when you click on the link, and replacing Your Text Here with what you want the text displayed.

Chris

MacroPhotoPro 04-04-2012 02:19 AM

Chris, I sure do appreciate your time, thank you. Okay, this is what I am trying to do:


I have the following custom Navbar Tabs: Articles | Videos | Macro Image Hosting and I am successfully able to place a "Subscribe" Navbar link at the end of each navbar pertaining to each tab.

However, what I cannot seem to do is figure out a way to place this "Subscribe" Navbar link at the end of my navbar for each of my Vbulletin Default Tabs: Home | Forum | Blogs.

I tried to follow the advice you were kind enough to give, Chris, but was unsuccessful. Here is my entire Navbar template, and highlighted in red is where I put your recommended coding:

Code:

<div id="navbar" class="navbar">
        <ul id="navtabs" class="navtabs floatcontainer<vb:if condition="$show['member'] AND $notifications_total"> notify</vb:if>">
                {vb:raw template_hook.navtab_start}
                <vb:if condition="!$vboptions['selectednavtab']">
                        <li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a>
                                <ul class="floatcontainer">
                                        {vb:raw template_hook.navbar_start}
                                        <vb:if condition="$vboptions['bbmenu']">
                                                <li><a href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['searchbuttons']">
                                                <vb:if condition="$show['member']">
                                                <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
                                                <vb:else />
                                                <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
                                                </vb:if>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_after_getnew}
                                        <vb:if condition="$show['pmmainlink']">
                                                <li><a href="private.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase private_messages}</a></li>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_after_pm}
                                        <li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>
                                        {vb:raw template_hook.navbar_after_faq}
                                        <vb:if condition="$show['canviewcalendar']">
                                                <li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_after_calendar}
                                        <vb:if condition="$show['communitylink']">
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl" accesskey="6">{vb:rawphrase community}</a>
                                                <ul class="popupbody popuphover">
                                                        {vb:raw template_hook.navbar_community_menu_start}
                                                        <vb:if condition="$show['quick_links_groups']">
                                                                <li><a href="{vb:link grouphome}">{vb:rawphrase social_groups}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['quick_links_albums']">
                                                                <li><a href="album.php{vb:raw session.sessionurl_q}">{vb:rawphrase pictures_and_albums}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$bbuserinfo['userid']">
                                                                <li><a href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if condition="$show['friends_and_contacts']">{vb:rawphrase contacts_and_friends}<vb:else />{vb:rawphrase contacts}</vb:if></a></li>
                                                        </vb:if>
                                                        <vb:if condition="$show['memberslist']">
                                                                <li><a href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase members_list}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_community_menu_end}
                                                </ul>
<li><a href="payments.php{vb:raw session.sessionurl_q}">Subscribe</a></li>
                                        </li>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_after_community}
                                        <vb:if condition="$show['canviewforums']">
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
                                                <ul class="popupbody popuphover">
                                                        {vb:raw template_hook.navbar_forum_menu_start}
                                                        <li>
                                                                <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a>
                                                        </li>
                                                        <vb:if condition="$show['member']">
                                                                <li>
                                                                        <a href="profile.php?{vb:raw session.sessionurl}do=editoptions">{vb:rawphrase edit_options}</a>
                                                                </li>
                                                                <li>
                                                                        <a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a>
                                                                </li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_forum_menu_end}
                                                </ul>
                                        </li>
                                        </vb:if>
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
                                                <ul class="popupbody popuphover">
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos1}
                                                        <vb:if condition="$show['member']">
                                                                <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
                                                                <li><a href="{vb:link subscription}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
                                                                <li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos2}
                                                        <vb:if condition="$vboptions['forumleaders']">
                                                        <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                                                                <vb:if condition="$vb_suite_installed">
                                                                        {vb:rawphrase view_site_leaders}
                                                                <vb:else />
                                                                        {vb:rawphrase view_forum_leaders}
                                                                </vb:if>
                                                        </a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos3}
                                                        <vb:if condition="$show['wollink']">
                                                                <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos4}
                                                </ul>
                                        </li>
                                        {vb:raw template_hook.navbar_end}
                                </ul>
                        </li>
                <vb:else />
                        <li><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
                </vb:if>
                {vb:raw template_hook.navtab_middle}
                {vb:raw template_hook.navtab_end}
        </ul>
        <vb:if condition="$vboptions['enablesearches']">
                <div id="globalsearch" class="globalsearch">
                        <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
                                <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
                                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                                <input type="hidden" name="do" value="process" />
                                <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
                                <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
                        </form>
                        <ul class="navbar_advanced_search">
                                <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
                                {vb:raw template_hook.navbar_advanced_search}
                        </ul>
                </div>
        </vb:if>
</div>
</div><!-- closing div for above_body -->

<div class="body_wrapper">
<div id="breadcrumb" class="breadcrumb">
        <ul class="floatcontainer">
                <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
                {vb:raw navbits.breadcrumb}
                {vb:raw navbits.lastelement}
        </ul>
        <hr />
</div>

{vb:raw ad_location.ad_navbar_below}
{vb:raw ad_location.global_below_navbar}

<vb:if condition="$show['notices'] AND THIS_SCRIPT != 'register'">
        <form action="profile.php?do=dismissnotice" method="post" id="notices" class="notices">
                <input type="hidden" name="do" value="dismissnotice" />
                <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
                <input type="hidden" name="url" value="{vb:raw return_link}" />
                <ol>
                        {vb:raw notices}
                </ol>
        </form>
</vb:if>

Did I merely place it in the wrong area? I am trying to get a Subscription link at the end of the navbars pertaining to the Home | Forum | Blogs tabs.

Thanks again!

Jack

DragonByte Tech 04-04-2012 08:56 AM

In that template which is for the Forums Tab yeah, it is in the wrong place, move it to,

After this line:
HTML Code:

</vb:if>
Before this line:
HTML Code:

<vb:if condition="$show['canviewforums']">
For the Home tab,in this template,vBulletin CMS Templates, vbcms_navbar_link find:
HTML Code:

            </vb:each>
        <vb:else />

Add your code in between those two, so it looks like this:
HTML Code:

            </vb:each>
<li><a href="payments.php{vb:raw session.sessionurl_q}">Subscribe</a></li>
        <vb:else />

For the Blog tab in this template, Blog Templates, blog_navbar_link find:
HTML Code:

        </vb:if>
        {vb:raw template_hook.blog_navbar_end}

Add your code in between those two, so it looks like this:
HTML Code:

        </vb:if>
<li><a href="payments.php{vb:raw session.sessionurl_q}">Subscribe</a></li>
        {vb:raw template_hook.blog_navbar_end}

Chris

Shill360 04-04-2012 11:34 AM

Will this mod let me display a drop down menu on vbulletin cms for categorys under sections on the cms nav bar ?

MacroPhotoPro 04-04-2012 12:46 PM

Thank you so much for your time Chris, these did the trick!

On the Forums Tab, I had to re-adjust a bit and actually place the link here:

Code:

</li>
<li><a href="payments.php{vb:raw session.sessionurl_q}">Subscribe</a></li>
{vb:raw template_hook.navbar_end}

but I would have had no idea what to put, nor the first clue where to put it, without your guidance. The Home and Blogs Tabs worked perfectly.

Thank you sincerely again :)

Cheers,

DragonByte Tech 04-04-2012 03:56 PM

Not a problem, glad to help. :)

DragonByte Tech 04-04-2012 03:59 PM

Quote:

Originally Posted by Shill360 (Post 2316653)
Will this mod let me display a drop down menu on vbulletin cms for categorys under sections on the cms nav bar ?

It's possible but you would have to remove the default Home Tab, then make a Dropdown Tab with the mod, and add items to that tab.

Or you could leave the Home Tab intact and do as described.

Chris

Mukashi 04-06-2012 10:12 AM

Given that this mod (or the pro version of it, at the very least) evidently can talk to the other DBT mods somehow...would it be possible for this mod to let us specify the position of the tabs added by other DBT mods (or maybe even edit those tabs and their menus) at all? I've got a situation where the tab for the arcade is stubbornly staying to the far left next to the forum tab, whereas I'd prefer it on the far right, and I can't figure out how to change that.

DragonByte Tech 04-06-2012 10:43 AM

Not at this time, but you can disable the default tab that came with the arcade and make the tab with the mod, then you will have full control over it's location.

To turn off the arcade tab go to DragonByte Tech: vBArcade - General Options and set Enable Navbar Tab to no.

Chris

Mukashi 04-07-2012 12:32 AM

I suppose that works. I don't see the Arcade having any sub-menu, after all. Thanks.

DragonByte Tech 04-07-2012 12:47 AM

If it did ever have any sublinks added to it, you could add those as well with this mod.

Chris

Lpspider 04-27-2012 06:18 PM

With this mod, is it possible to have a tab for a specific forum category, and keep that tab (and only that tab) selected for that forum category, forums, sub forums, and all threads viewed within that forum/category?

I've been looking for this solution for a while. I've tried custom coding it myself, installing other tab modifications, but it just doesn't seem possible.


All times are GMT. The time now is 09:35 PM.

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.01716 seconds
  • Memory Usage 1,901KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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