REGISTER icon won't go away...

I have an odd situation, whereas on my installation, the 'Register' icon remains, even after a user logs in (in which case it should be gone, shouldn't it?) leading the an extra icon in the header/nav bar, pushing the 'Log out' icon too far right, with odd results.

As evidenced on Aqua-Soft, once logged in, there should just be 'User CP' icon, and when not logged on, it should just be the 'Register' icon. Yet, in my situation, I end up with both icons.

This is on vB 3.74 PL 1, Aqua-Soft skin 4.0. I tried removing all cookies, and initiating both a new registration or a new login - makes no difference. I tested disabling registrations, predictably the 'Register' icon goes away. Turning registrations back on, and I end up with two icons, again.

I have the following products installed:

- Multiple Accounts Detection & Prevention (turned OFF)

- NoSpam (turned OFF)

- Mobile Device Detection (turned ON)

- Advertisement System (turned OFF)

- vBnews CMS (with archives turned ON)

- Auto Media Embedding (turned ON)

I'm sure I *must* be overlooking something - any ideas?

#519801

Can you post a link to your forums? Live forum always helps :)

#519815

Mind posting your "navbar" template?

#519828

Here it is - should be unmodified from the one in your distribution of Aqua-Soft v4 - I made no changes

I tried to paste - the forum refused the post for being too long :confused:

#519830

				<div id="tb-nav">

<form action="search.php?do=process" method="post">

<div id="tb-searchdiv">

<div id="tb-searchbox"><input type="text" name="query" tabindex="1001" maxlength="128" value="$vbphrase[search_forums]" onfocus="if(this.value=='$vbphrase[search_forums]')this.value='';" onblur="if(this.value=='$vbphrase[search_forums]')this.value='';" /></div>

<a href="../../unavailable.html" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a>

<input type="hidden" name="do" value="process" />

<input type="hidden" name="quicksearch" value="1" />

<input type="hidden" name="childforums" value="1" />

<input type="hidden" name="exactname" value="1" />

<input type="hidden" name="s" value="$session[sessionhash]" />

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

</div>

</form>

<ul id="tb-icons">

<li id="tb-logo"><a href="../../unavailable.html" title="$vboptions[bbtitle]"></a></li>

<if condition="$show['registerbutton']"><li id="tb-register"><a href="../../unavailable.html" title="$vbphrase[register]"><img src="../../unavailable.html" alt="" />
$vbphrase[register]</a></li></if>

<if condition="$show['member']"><li id="tb-profile"><a href="../../unavailable.html" title="$vbphrase[user_cp]"><img src="../../unavailable.html" alt="" />
$vbphrase[user_cp]</a></li></if>

$template_hook[navbar_buttons_left]

<li id="tb-faq"><a href="../../unavailable.html" accesskey="5" title="$vbphrase[faq]"><img src="../../unavailable.html" alt="" />
$vbphrase[faq]</a></li>

<if condition="$vboptions['enablememberlist']"><li id="tb-members"><a href="../../unavailable.html" title="$vbphrase[members_list]"><img src="../../unavailable.html" alt="" />
$vbphrase[members_list]</a></li></if>

<li id="tb-calendar"><a href="../../unavailable.html" title="$vbphrase[calendar]"><img src="../../unavailable.html" alt="" />
$vbphrase[calendar]</a></li>

<if condition="$show['popups']">

<if condition="$show['searchbuttons']">

<if condition="$show['member']">

<li id="tb-newposts"><a href="../../unavailable.html" accesskey="2" title="$vbphrase[new_posts_nav]"><img src="../../unavailable.html" alt="" />
$vbphrase[new_posts_nav]</a></li>

<else />

<li id="tb-newposts"><a href="../../unavailable.html" accesskey="2" title="$vbphrase[todays_posts]"><img src="../../unavailable.html" alt="" />
$vbphrase[todays_posts]</a></li>

</if>

<li id="tb-search"><a id="navbar_search" href="../../unavailable.html" accesskey="4" rel="nofollow" title="$vbphrase[search]"><img src="../../unavailable.html" alt="" />
$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search",1); </script></if></li>

</if>

<if condition="$show['member']">

<li id="tb-quicklinks"><a id="usercptools" href="../../unavailable.html" accesskey="3" title="$vbphrase[quick_links]"><img src="../../unavailable.html" alt="" />
$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools",1); </script></li>

</if>

<else />

<if condition="$show['searchbuttons']">

<li id="tb-search"><a href="../../unavailable.html" accesskey="4" title="$vbphrase[search]"><img src="../../unavailable.html" alt="" />
$vbphrase[search]</a></li>

<if condition="$show['member']">

<li id="tb-newposts"><a href="../../unavailable.html" accesskey="2" title="$vbphrase[new_posts_nav]"><img src="../../unavailable.html" alt="" />
$vbphrase[new_posts_nav]</a></li>

<else />

<li id="tb-newposts"><a href="../../unavailable.html" accesskey="2" title="$vbphrase[todays_posts]"><img src="../../unavailable.html" alt="" />
$vbphrase[todays_posts]</a></li>

</if>

</if>

<li id="tb-markread"><a href="../../unavailable.html" rel="nofollow" title="$vbphrase[mark_forums_read]"><img src="../../unavailable.html" alt="" />
$vbphrase[mark_forums_read]</a></li>

<if condition="$show['member']">

<li id="tb-contacts"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height
=300'); return false;" title="$vbphrase[open_contacts]"><img src="../../unavailable.html" alt="" />
$vbphrase[open_contacts]</a></li>

</if>

</if>

$template_hook[navbar_buttons_right]

<if condition="$show['member']"><li id="tb-logout"><a href="../../unavailable.html" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')" title="$vbphrase[log_out]"><img src="../../unavailable.html" alt="" />
$vbphrase[log_out]</a></li></if>

</ul>

</div>

</div>



</div>

</div>



<div id="shad-r">

<div id="shad-l">

<div id="page-body">



<if condition="$ad_location[ad_header_end]">

<div class="bbot" style="padding:8px" align="center">$ad_location[ad_header_end]</div>

</if>



<!-- breadcrumb, login, pm info -->

<div id="breadcrumb">

<table border="0" cellpadding="0" cellspacing="0" width="99%">

<tr>

<td align="left" width="100%">

<if condition="is_array($navbits)">

<div id="breadcrumb_start"><a href="../../unavailable.html" accesskey="1">$vboptions[bbtitle]</a> $navbits[breadcrumb]</div>

<div id="breadcrumb_end"><a href="../../unavailable.html">$navbits[lastelement]</a></div>

<else />

<div style="padding: 8px 0 7px 0;">

<div id="breadcrumb_self"><a href="../../unavailable.html" accesskey="1">$vboptions[bbtitle]</a></div>

</div>

</if>

</td>

<if condition="$show['member']">

<if condition="$bbuserinfo['pmunread']"><td id="pmbubble" nowrap="nowrap"><a href="../../unavailable.html"></a></td></if>

<td nowrap="nowrap">

<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>


<!--<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>-->

<if condition="$show['notifications'] AND $show['popups']">

<div><span id="notifications"><a href="../../unavailable.html">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong><img style="cursor:pointer;margin-left:2px" src="../../unavailable.html" alt="" /></span></div>

<script type="text/javascript"> vBmenu.register("notifications",1); </script>

<else />

<if condition="$show['pmstats']"><div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div></if>

</if>

<!--<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>-->

</td>

<else />

<td nowrap="nowrap" style="padding:0px">

<!-- login form -->

<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">

<input type="hidden" name="s" value="$session[sessionhash]" />

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<input type="hidden" name="do" value="login" />

<input type="hidden" name="vb_login_md5password" />

<input type="hidden" name="vb_login_md5password_utf" />

<script type="text/javascript" src="../../unavailable.html"></script>

<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0">

<tr>

<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>

<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>

<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>

<td nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" checked="checked" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" title="$vbphrase[remember_me]" style="vertical-align:middle" /><span style="vertical-align:middle">$vbphrase[save]?</span></label></td>

</tr>

</table>

</form>

<!-- / login form -->

</td>

</if>

</tr>

</table>

</div>

<!-- / breadcrumb, login, pm info -->

#519831

<if condition="$show['notices']">

<table class="bbot" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">

<tr>

<td class="thead">$vbphrase[notices]</td>

</tr>

<tr>

<td class="alt1">$notices</td>

</tr>

</table>

</if>



<if condition="$show['forumdesc']">

<table class="bbot" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">

<tr>

<td class="alt2" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>

</tr>

</table>

</if>



<if condition="$show['popups']">

<!-- NAVBAR POPUP MENUS -->



<if condition="$show['searchbuttons']">

<!-- header quick search form -->

<div class="dropdown" id="navbar_search_menu" style="display:none" align="$stylevar[left]">

<form action="search.php?do=process" method="post">

<div class="dropdown-search" title="$vbphrase[search_forums]">

<input type="hidden" name="do" value="process" />

<input type="hidden" name="quicksearch" value="1" />

<input type="hidden" name="childforums" value="1" />

<input type="hidden" name="exactname" value="1" />

<input type="hidden" name="s" value="$session[sessionhash]" />

<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<input type="text" class="bginput" name="query" size="25" tabindex="1001" />

<!--<input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" />-->

</div>

<div class="dropdown-radio"><label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>     <label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label></div>

</form>

<div class="dropdown-sep"></div>

<dl>

<if condition="$vboptions[threadtagging]">

<dd><a href="../../unavailable.html" rel="nofollow">$vbphrase[tag_search]</a></dd>

</if>

<dd><a href="../../unavailable.html" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></dd>

$template_hook[navbar_search_menu]

</dl>

</div>

<!-- / header quick search form -->

</if>



<if condition="$show['member']">

<!-- user cp tools menu -->

<div class="dropdown" id="usercptools_menu" style="display:none" align="$stylevar[left]">

<dl>

<dt>$vbphrase[quick_links]</dt>

<if condition="$vboptions['enablesearches']"><dd><a href="../../unavailable.html">$vbphrase[todays_posts]</a></dd></if>

<dd><a href="../../unavailable.html">$vbphrase[mark_forums_read]</a></dd>

<dd><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height
=300'); return false;">$vbphrase[open_contacts]</a></dd>

$template_hook[navbar_quick_links_menu_pos1]

</dl>

<div class="dropdown-sep"></div>

<dl>

<dt>$vbphrase[networking]</dt>

<dd><a href="../../unavailable.html"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></dd>

<if condition="$show['quick_links_groups']"><dd><a href="../../unavailable.html">$vbphrase[social_groups]</a></dd></if>

<if condition="$show['quick_links_albums']"><dd><a href="../../unavailable.html">$vbphrase[pictures_and_albums]</a></dd></if>

$template_hook[navbar_quick_links_menu_pos2]

</dl>

<div class="dropdown-sep"></div>

<dl>

<dt><a href="../../unavailable.html">$vbphrase[user_control_panel]</a></dt>

<if condition="$show['siglink']"><dd><a href="../../unavailable.html">$vbphrase[edit_signature]</a></dd></if>

<!--<if condition="$show['avatarlink']"><dd><a href="../../unavailable.html">$vbphrase[edit_avatar]</a></dd></if>-->

<dd><a href="../../unavailable.html">$vbphrase[edit_your_details]</a></dd>

<dd><a href="../../unavailable.html">$vbphrase[edit_options]</a></dd>

$template_hook[navbar_quick_links_menu_pos3]

</dl>

<div class="dropdown-sep"></div>

<dl>

<dt>$vbphrase[miscellaneous]</dt>

<if condition="$show['pmmainlink']"><dd><a href="../../unavailable.html" rel="nofollow">$vbphrase[private_messages]</a></dd></if>

<dd><a href="../../unavailable.html" rel="nofollow">$vbphrase[subscribed_threads]</a></dd>

<dd><a href="../../unavailable.html">$vbphrase[your_profile]</a></dd>

<if condition="$show['wollink']"><dd><a href="../../unavailable.html">$vbphrase[whos_online]</a></dd></if>

$template_hook[navbar_quick_links_menu_pos4]

</dl>

</div>

<!-- / user cp tools menu -->



<if condition="$notifications_total">

<!-- notifications menu -->

<div class="dropdown" id="notifications_menu" style="display:none">

<dl>

<dt>$vbphrase[your_notifications]</dt>

<dd class="dropdown-nopad">

$notifications_menubits

</dd>

</dl>

</div>

<!-- / notifications menu -->

</if>



</if>

<!-- / NAVBAR POPUP MENUS -->



<!-- PAGENAV POPUP -->

<div class="dropdown" id="pagenav_menu" style="display:none">

<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">

<dl>

<dt>$vbphrase[go_to_page]</dt>

<dd class="dropdown-nopad">

<div style="padding:4px 8px">

<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />

<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />

</div>

</dd>

</dl>

</form>

</div>

<!-- / PAGENAV POPUP -->

</if>



<if condition="$ad_location[ad_navbar_below]">

<div class="bbot" style="padding:8px" align="center">$ad_location[ad_navbar_below]</div>

</if>

#519832

I broke it up in two parts.

#519833

Try this see if it helps.

						<if condition="$show['registerbutton']"><li id="tb-register"><a href="../../unavailable.html" title="$vbphrase[register]"><img src="../../unavailable.html" alt="" />
$vbphrase[register]</a></li></if>

Replace with

						<if condition="!$show['member']"><li id="tb-register"><a href="../../unavailable.html" title="$vbphrase[register]"><img src="../../unavailable.html" alt="" />
$vbphrase[register]</a></li></if>

#519942

Try this see if it helps.
That did it.

Thanks - was this part of the original v4.0 code, and did you also update the code in the distribution files?

Thank you so much for your help with this.

#519953

What you had was correct, not really sure what went wrong. So I just used another method of displaying the button for non-members.

#519959

What you had was correct, not really sure what went wrong.
(scratches head)

So I just used another method of displaying the button for non-members.
Thanks I really appreciate it.

#519960