vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Navbar Button Help (https://vborg.vbsupport.ru/showthread.php?t=212143)

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

Navbar Button Help
 
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...

Code:

<!-- 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,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=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").


All times are GMT. The time now is 05:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete