PDA

View Full Version : Navbar Button Help


creative-friend
04-25-2009, 11:08 AM
hello

i need help with adding button in navbar

whenever i try to add button this comes up

look at the screenshot

https://vborg.vbsupport.ru/external/2009/04/37.jpg

some one help me...plz

Dismounted
04-25-2009, 11:20 AM
Please post your template...

creative-friend
04-25-2009, 12:40 PM
here...

<!-- logo -->
<a name="top"></a>
<div class="header">
<div style="width:$stylevar[outerdivwidth];margin: 0 auto;">
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" class="headerimg" border="0" alt="$vboptions[bbtitle]" /></a>
<div class="ad">
<a href="http://www.completevb.com"><img src="images/creativecreature/misc/ad.gif" alt="Ad" /></a>
</div>
</div>
</div>
<div class="nav">
<div style="width:$stylevar[outerdivwidth];margin: 0 auto;">
<table cellpadding="0" cellspacing="0" border="0" align="left" class="navbg">
<tr align="center" valign="top">
<td class="navleft"></td>
<if condition="$show['member']">
<td class="navigation"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="navigation"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$vboptions['enablememberlist']">
<td class="navigation"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<td class="navigation"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="navigation"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="navigation"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="navigation"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="navigation"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="navigation"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="navigation"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="navigation"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="navigation"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="navigation"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="navigationlast"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
<else />
<td class="navigationlast"><a href="register.php$session[sessionurl_q]" rel="nofollow" style="font-weight:bold;">$vbphrase[register]</a></td>

</if>

</tr>
</table>
</div>
</div>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

Lynne
04-25-2009, 01:51 PM
You used the phrase "$vbphrase[new_posts_nav]" Check in your Phrases and see if that is a valid phrase name. The default for that phrase is "New Posts". Is that what yours says?

creative-friend
04-25-2009, 04:36 PM
what you mean
sorry i didnt get you...

Lynne
04-25-2009, 04:41 PM
Well, it looks like it is putting the link there but missing the 'text' associated with it. And, looking in your template shows the text to be phrases. So, make sure those phrases exist (Phrases > Search in Phrases).

creative-friend
04-25-2009, 06:35 PM
i really dont know what to do sorry for that

but can u make me a link and than i put it in my template and try if it works

Lynne
04-25-2009, 06:48 PM
I don't know how to explain it any better. You go to Phrases > Search in Phrases and look for the phrase "new_posts_nav" and make sure it exists and has a value. Search for the phrase "todays_posts" also and make sure it exists and has a value.

creative-friend
04-25-2009, 10:27 PM
i have searched both of them but couldnt find any...

Lynne
04-25-2009, 10:50 PM
If you don't see those phrases in there, then you will need to add them. Or, replace the phrase in the template with what you want it to say ("New Posts" or "Today's Posts").

creative-friend
04-26-2009, 02:24 PM
Woohooo
Done It

Thanks Alott Lynne

ere u can check....

https://vborg.vbsupport.ru/external/2009/04/28.jpg