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 - Important Links In Navbar v3.00 (https://vborg.vbsupport.ru/showthread.php?t=259636)

Mark4865 01-13-2013 07:32 AM

Anyone got the 3.00 version working in 4.2 p3

Arrogant-One 10-13-2013 09:11 PM

1 Attachment(s)
In the screen shot where it has links under the navbar tabs, for example New Posts and Private Messages, how do you get that?

Is adding those links part of this mod, or a different mod?

I have circled what I am talking about in red on the attachment. This is what I want to add to my forum, but I can't find the correct mod.

tbworld 10-13-2013 09:39 PM

Quote:

Originally Posted by Arrogant-One (Post 2453040)
I have circled what I am talking about in red on the attachment. This is what I want to add to my forum, but I can't find the correct mod.

The links you are referring two on the sub-navbar is part of the original vb4 software series. If you are not seeing them, you have either eliminated the links in the navigation manager, have an incorrect permission assigned to them or have altered a template that shows them -- maybe via a MOD.

Disable your plugin system and use the default vbulletin style: to see if they show. If you use v4.2.x series double check that the links and the correct permissions exist in the navigation manager.

Arrogant-One 10-13-2013 10:47 PM

Quote:

Originally Posted by tbworld (Post 2453045)
The links you are referring two on the sub-navbar is part of the original vb4 software series. If you are not seeing them, you have either eliminated the links in the navigation manager, have an incorrect permission assigned to them or have altered a template that shows them -- maybe via a MOD.

Disable your plugin system and use the default vbulletin style: to see if they show. If you use v4.2.x series double check that the links and the correct permissions exist in the navigation manager.

I disabled the plugins by adding the line of text

define('DISABLE_HOOKS', true);

To config.php

I then looked at the default skin. Nothing appeared, although the two tabs in the NavBar disappeared. I use 4.1.12

Please tell me what file to upload to my FTP to solve this problem.

Thank you for your assistance.

tbworld 10-13-2013 11:21 PM

Make sure you have not altered the master 'navbar' template. If you have, you will need to replace that template from the master style. You need to be in 'debug' mode in order to view the master style. Please make sure you have a backup of your site before doing this.

If you need to replace the entire master style, you can do so by using 'tools.php'.
See vBulletin manual for more details.

Arrogant-One 10-14-2013 12:06 AM

Quote:

Originally Posted by tbworld (Post 2453054)
Make sure you have not altered the master 'navbar' template. If you have, you will need to replace that template from the master style. You need to be in 'debug' mode in order to view the master style. Please make sure you have a backup of your site before doing this.

If you need to replace the entire master style, you can do so by using 'tools.php'.
See vBulletin manual for more details.

Thanks for that.

This is what my navbar template looks like:

Quote:

<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:raw navigation}
{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>

ozzy47 10-14-2013 12:18 AM

Revert that template, that code is for vB v4.2.0 and above.

Arrogant-One 10-14-2013 12:21 AM

Quote:

Originally Posted by ozzy47 (Post 2453064)
Revert that template, that code is for vB v4.2.0 and above.

Thanks for your assistance. Just one quick question.

How do I revert the template?

ozzy47 10-14-2013 12:24 AM

When you are viewing the template list, highlight the navbar templat, by clicking on it once, then to the right, under the controls block, click revert.

Arrogant-One 10-14-2013 12:33 AM

Quote:

Originally Posted by ozzy47 (Post 2453067)
When you are viewing the template list, highlight the navbar templat, by clicking on it once, then to the right, under the controls block, click revert.

Okay, I reverted it. Unfortunately it didn't solve the problem. This is the new template:

Quote:

<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:raw navigation}
{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>

ozzy47 10-14-2013 12:36 AM

You are running vB v4.1.12 correct? Did you try to upgrade recently and then downgrade?

tbworld 10-14-2013 12:40 AM

His board says v4.2.2 in the header, but his Javascript says v4.1.12, so I was going to ask a similar question.

tbworld 10-14-2013 12:57 AM

If your plugins are disabled and you reverted the correct 'navbar' template then you should not be seeing your old navtabs. So one of the two items has not been completed correctly for your test. Thanks for posting your link it was a big help. :)

Arrogant-One 10-14-2013 01:20 AM

Quote:

Originally Posted by ozzy47 (Post 2453070)
You are running vB v4.1.12 correct? Did you try to upgrade recently and then downgrade?

Yes, that's exactly what I did.

Arrogant-One 10-14-2013 01:20 AM

Quote:

Originally Posted by tbworld (Post 2453073)
If your plugins are disabled and you reverted the correct 'navbar' template then you should not be seeing your old navtabs. So one of the two items has not been completed correctly for your test. Thanks for posting your link it was a big help. :)

Oh, you wanted me to disable the plugins and THEN revert. I will try that.

Arrogant-One 10-14-2013 01:24 AM

I disabled the plugin by adding the line to config.php

I then tried reverting but it won't let me. I get this message:

Quote:

This template has not been customized in this style or any of its parent styles.

Double-click the template name or click the 'Customize' button to add a customized version of this template to the current style and its child sets.

Last edited March 28 2012 at 17:12 by vBulletin Solutions

ozzy47 10-14-2013 01:29 AM

Quote:

Originally Posted by Arrogant-One (Post 2453077)
Yes, that's exactly what I did.

Ok here is what I would do.

1) Turn your site off.

2) Make a full backup, just incase something goes wrong.

3) Re-upload the files that came with your v4.2.2 zip.

4) Run the upgrade script.

5) Then get a copy of v4.2.1 Pl1 upload those files to your server.

6) Turn on debug mode by adding the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
7) Go to ACP --> Settings --> Options --> Version Info and Other Untouchables, and change ONLY the setting, vBulletin Version Number to 4.2.1

8) Turn off debug mode by removing the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
9) Remove the install directory.

10) Turn your site back on.

Now you will be upgraded to v4.2.1 and not have to worry about the 4.2.2 and PHP errors.

Arrogant-One 10-14-2013 01:46 AM

Quote:

Originally Posted by ozzy47 (Post 2453080)
Ok here is what I would do.

1) Turn your site off.

2) Make a full backup, just incase something goes wrong.

3) Re-upload the files that came with your v4.2.2 zip.

4) Run the upgrade script.

5) Then get a copy of v4.2.1 Pl1 upload those files to your server.

6) Turn on debug mode by adding the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
7) Go to ACP --> Settings --> Options --> Version Info and Other Untouchables, and change ONLY the setting, vBulletin Version Number to 4.2.1

8) Turn off debug mode by removing the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
9) Remove the install directory.

10) Turn your site back on.

Now you will be upgraded to v4.2.1 and not have to worry about the 4.2.2 and PHP errors.

Thank you my friend, but when I tried upgrading to 4.2.2 after the Syrian Army hacked my 4.1.12, it completely messed up my site. So bad, that I needed to call the host to get a back up (and they only had one from 2 months ago). Pretty much everything is working on my forum now, except for this navigation issue.

I suspect, but don't know for sure, that simply using a navbar template for 4.1.12 will solve the problem, and that's the preferred route to re-upgrading and messing with the ftp files again.

I will click the heart for you because you have been gracious towards me and I appreciate that. Thank you.

ozzy47 10-14-2013 03:05 AM

Hopefully that will work, but there may be issues that could pop up elsewhere.

tbworld 10-14-2013 03:33 AM

I tend to agree with @Ozzy47, you board might not be in a known state. Keep the backups for a while, just in case.

Arrogant-One 10-14-2013 01:10 PM

Quote:

Originally Posted by ozzy47 (Post 2453102)
Hopefully that will work, but there may be issues that could pop up elsewhere.

Quote:

Originally Posted by tbworld (Post 2453113)
I tend to agree with @Ozzy47, you board might not be in a known state. Keep the backups for a while, just in case.

Okay, thanks guys. Just one last question. How do I find the navbar template? I went to the Members Section of vbulletin.com, and downloaded the zip for 4.1.12 but it only contains php files to be put into the FTP root. It doesn't contain the template which gets accessed through the Admin CP (which is what I want to change).

ozzy47 10-14-2013 01:16 PM

You would have to search for it in the install/vbulletin-style.xml file

It is going to be quite a ways down in the file.

Arrogant-One 10-14-2013 02:14 PM

Quote:

Originally Posted by ozzy47 (Post 2453208)
You would have to search for it in the install/vbulletin-style.xml file

It is going to be quite a ways down in the file.

Thanks for that. I think I found it, but the CDATA in it looks scary, and I am not sure where the template ends.

Quote:

<templategroup name="Navigation / Breadcrumb">
<template name="navbar" templatetype="template" date="1331239707" username="vBulletin Solutions" version="4.1.12 Alpha 1"><![CDATA[<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'] AND THIS_SCRIPT != 'search'">
<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=vBFor um_Post">{vb:rawphrase new_posts_nav}</a></li>
<vb:else />
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_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>
</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={v b: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=vBF orum_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','budd ylist','statusbar=no,menubar=no,toolbar=no,scrollb ars=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:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">
<vb:if condition="$show['member']">
<li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_Post" accesskey="2">{vb:rawphrase getnew_tab}</a>
<ul class="floatcontainer">
{vb:raw template_hook.navbar_getnew_menu_start}
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_Post">{vb:rawphrase new_posts_nav}</a></li>
<vb:if condition="$show['quick_links_groups']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_SocialGroupMessage">{vb:rawphrase new_group_messages_nav}</a></li>
</vb:if>
<vb:if condition="$show['canviewcalendar']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_Event">{vb:rawphrase new_events_nav}</a></li>
</vb:if>
{vb:raw template_hook.navbar_getnew_menu_pos1}
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={v b:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li>
{vb:raw template_hook.navbar_getnew_menu_end}
</ul>
</li>
<vb:else />
<li class="selected"><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a>
<ul class="floatcontainer">
{vb:raw template_hook.navbar_getdaily_menu_start}
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_Post">{vb:rawphrase todays_posts}</a></li>
<vb:if condition="$show['quick_links_groups']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_SocialGroupMessage">{vb:rawphrase daily_group_message}</a></li>
</vb:if>
<vb:if condition="$show['canviewcalendar']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_Event">{vb:rawphrase daily_events}</a></li>
</vb:if>
<li><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={v b:raw bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a></li>
{vb:raw template_hook.navbar_getdaily_menu_end}
</ul>
</li>
</vb:if>
<vb:elseif condition="$show['member']" />
<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBFor um_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>
<vb:else />
<li><a class="navtab" href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBF orum_Post" accesskey="2">{vb:rawphrase getnew_tab}</a></li>
</vb:if>
{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>]]></template>


ozzy47 10-14-2013 04:00 PM

This is the relevant part.

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'] AND THIS_SCRIPT != 'search'">
                        <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>
                                        </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=n  o,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:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">
                        <vb:if condition="$show['member']">
                        <li  class="selected"><a class="navtab"  href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_Post"  accesskey="2">{vb:rawphrase getnew_tab}</a>
                                <ul class="floatcontainer">
                                        {vb:raw template_hook.navbar_getnew_menu_start}
                                        <li><a href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase  new_posts_nav}</a></li>
                                        <vb:if condition="$show['quick_links_groups']">
                                                <li><a href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_SocialGroupMessage">{vb:raw  phrase new_group_messages_nav}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['canviewcalendar']">
                                                <li><a href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_Event">{vb:rawphrase  new_events_nav}</a></li>
                                        </vb:if>
                                        {vb:raw template_hook.navbar_getnew_menu_pos1}
                                        <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:raw template_hook.navbar_getnew_menu_end}
                                </ul>
                        </li>
                        <vb:else />
                        <li  class="selected"><a class="navtab"  href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post"  accesskey="2">{vb:rawphrase getnew_tab}</a>
                                <ul class="floatcontainer">
                                        {vb:raw template_hook.navbar_getdaily_menu_start}
                                        <li><a href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase  todays_posts}</a></li>
                                        <vb:if condition="$show['quick_links_groups']">
                                                <li><a href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_SocialGroupMessage">{vb:r  awphrase daily_group_message}</a></li>
                                        </vb:if>
                                        <vb:if condition="$show['canviewcalendar']">
                                                <li><a href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_Event">{vb:rawphrase  daily_events}</a></li>
                                        </vb:if>
                                        <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:raw template_hook.navbar_getdaily_menu_end}
                                </ul>
                        </li>
                        </vb:if>
                <vb:elseif condition="$show['member']" />
                        <li><a class="navtab" href="search.php?{vb:raw  session.sessionurl}do=getnew&amp;contenttype=vBForum_Post"  accesskey="2">{vb:rawphrase getnew_tab}</a></li>
                <vb:else />
                        <li><a class="navtab" href="search.php?{vb:raw  session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post"  accesskey="2">{vb:rawphrase getnew_tab}</a></li>
                </vb:if>
                {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>


Arrogant-One 10-14-2013 08:23 PM

Thanks Ozzy

Unfortunately when I tried changing the template, I got this:

Quote:

Fatal error: Uncaught exception 'Exception' with message 'Unable to find a class to validate: vB_TemplateParser_Curlyr' in /httpdocs/includes/class_template_parser.php:1084 Stack trace: #0 /httpdocs/includes/class_template_parser.php(1020): vB_TemplateParser->validate_curly(Object(vB_CurlyNode), Array) #1 /httpdocs/includes/adminfunctions_template.php(3022): vB_TemplateParser->validate(Array) #2 /httpdocs/admincp/template.php(2173): compile_template('<div id="navbar...') #3 {main} thrown in /httpdocs/includes/class_template_parser.php on line 1084

Arrogant-One 10-15-2013 12:27 AM

Quote:

Originally Posted by ozzy47 (Post 2453080)
Ok here is what I would do.

1) Turn your site off.

2) Make a full backup, just incase something goes wrong.

3) Re-upload the files that came with your v4.2.2 zip.

4) Run the upgrade script.

5) Then get a copy of v4.2.1 Pl1 upload those files to your server.

6) Turn on debug mode by adding the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
7) Go to ACP --> Settings --> Options --> Version Info and Other Untouchables, and change ONLY the setting, vBulletin Version Number to 4.2.1

8) Turn off debug mode by removing the following to your includes/config.php
Code:

$config['Misc']['debug'] = true;
9) Remove the install directory.

10) Turn your site back on.

Now you will be upgraded to v4.2.1 and not have to worry about the 4.2.2 and PHP errors.

I faithfully went through all of these steps. When I put the 4.2.2 files into the root, the subnavbar appeared. I was thrilled. But once the 4.1.12 files went into the root, it disappeared :(

ozzy47 10-15-2013 12:29 AM

5) Then get a copy of v4.2.1 Pl1 upload those files to your server.

4.2.1 not 4.1.12

Arrogant-One 10-15-2013 01:45 AM

Quote:

Originally Posted by ozzy47 (Post 2453399)
5) Then get a copy of v4.2.1 Pl1 upload those files to your server.

4.2.1 not 4.1.12

It worked. :)

I wanted to give you a very big thank you for all of your assistance throughout this ordeal. Thanks again mate.

It was appreciated.

ozzy47 10-15-2013 01:47 AM

Not a problem, glad to help. I am just glad it is all sorted now. :)

smirkley 10-15-2013 03:07 AM

Ozzy, I like this and I have downloaded and am testing, but I wish to add "My Groups" to the list under blogs. I cant figure out the advanced search feature that will produce the results I wish for.

Any idea's? (I opened up a thread in vb4 programming forum, and if the results show up there you are welcome to it if you like.)

(edit - sorry, thought this was one of yours, but I just discovered otherwise)

smirkley 10-15-2013 01:39 PM

To add My Groups to dropdown...

Code:

<li><a href="search.php?do=process&type[]=7&searchuser={vb:raw bbuserinfo.username}&exactname=1">My Groups</a></li>
Add it where you want it.

(thank you kh99)


All times are GMT. The time now is 04:36 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.01710 seconds
  • Memory Usage 2,008KB
  • 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
  • (8)bbcode_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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