Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-12-2006, 03:32 AM
Wunderbar Wunderbar is offline
 
Join Date: Sep 2006
Location: Colorado
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How difficult must this be!?

I'm tearing my hair out here.

I run http://www.btg-online.com. The navbar at the top I'm trying to edit. I'm trying to put in a "home" button and a "forums" button. The forum button I've done flawlessly, and it was working great, but the "home" button wasn't, so I took it out.

Here's my header template (since the author of the template states he copied the exact code from the navbar template and just put it in the header template).

PHP Code:
<!-- logo -->
<
a name="top"></a>
<
table width="100%" border="0" cellpadding="0" cellspacing="0" class="fullheight">
<
tr>
    <
td height="105" style="background: url($vboptions[bburl]/images/blaze/header_background.gif)"><img src="images/blaze/logo.gif" width="300" height="105" /></td>
</
tr>
<
tr>
    <
td height="31" style="background: url($vboptions[bburl]/images/blaze/navbar_background.gif)" align="center">
        <!-- 
nav buttons bar -->
        <
table cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center">
        <
tr align="center">
            
                        <
td class="vbmenu_control_alt"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
            </if>
            <if 
condition="$show['registerbutton']">
                <
td class="vbmenu_control_alt"><a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
            </if>
            <
td class="vbmenu_control_alt"><a href="faq.php$session[sessionurl_q]accesskey="5">$vbphrase[faq]</a></td>
            <
td class="vbmenu_control_alt"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
            <
td class="vbmenu_control_alt"><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="vbmenu_control_alt"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <
td class="vbmenu_control_alt"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if>
                    <
td id="navbar_search" class="vbmenu_control_alt"><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="vbmenu_control_alt"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>        
                </if>
            <else />        
                <if 
condition="$show['searchbuttons']">
                    <
td class="vbmenu_control_alt"><a href="search.php$session[sessionurl_q]accesskey="4">$vbphrase[search]</a></td>
                    <if 
condition="$show['member']">
                    <
td class="vbmenu_control_alt"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <
td class="vbmenu_control_alt"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if>
                </if>
                <
td class="vbmenu_control_alt"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
                <if 
condition="$show['member']">            
                    <
td class="vbmenu_control_alt"><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_buddy_list]</a></td>            
                </if>            
            </if>
            <if 
condition="$show['member']">
                <
td class="vbmenu_control_alt"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]onclick="return log_out()">$vbphrase[log_out]</a></td>
            </if>
        </
tr>
        </
table>

        <!-- / 
nav buttons bar -->
    </
td>
</
tr>
<
tr>
    <
td height="2" style="background: url(images/blaze/under_navbar_background.gif)"><img src="images/blaze/under_navbar_background.gif" width="5" height="2" /></td>
</
tr>
<
tr>
    <
td valign="top" class="fullheight">
<!-- /
logo -->

<!-- 
content table -->
$spacer_open

$_phpinclude_output 
so of course naturally I see:

PHP Code:
<td class="vbmenu_control_alt"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td
and I decide to just edit the stuff, putting forums.php in and 'Forums' in the brackets. It works great, even still. However when I try changing it to 'index.php' and 'Home'.. it just goes blank, literally not on the site at all.

I can change the usercp.php to index.php just fine, so basically the navbar still says user CP but it points to index.php. Can I just not use 'Home' on the navbar? I'm at such a loss I'm going insane.

If anyone can please help me, I'd be extremely appreciative.

-Wunderbar

any help please?
Reply With Quote
  #2  
Old 10-12-2006, 05:06 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm getting a DB error when i try to bring up your page. in any case, try this...
Reply With Quote
  #3  
Old 10-12-2006, 05:06 PM
Guest210212002
Guest
 
Posts: n/a
Default

Code:
<td class="vbmenu_control_alt"><a href="http://yoururl/home.php">Home</a></td>
Just slap that in wherever you want the button to be, editing the URL to (naturally) wherever you'd like Home to take you.

Edit: Just after:

Code:
table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> 
        <tr align="center">
Would put it on the far left.
Reply With Quote
  #4  
Old 10-12-2006, 05:44 PM
Wunderbar Wunderbar is offline
 
Join Date: Sep 2006
Location: Colorado
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit: nevermind I figured it out.. it was just the location of the code. Thanks again! You just saved me so much frustration.

How exactly did that work though? Why couldn't I just copy and edit the code from previous entries?
Reply With Quote
  #5  
Old 12-29-2006, 01:09 AM
adwade adwade is offline
 
Join Date: Aug 2006
Location: SouthEast, TN
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris-777 View Post
Code:
<td class="vbmenu_control_alt"><a href="http://yoururl/home.php">Home</a></td>
Just slap that in wherever you want the button to be, editing the URL to (naturally) wherever you'd like Home to take you.

Edit: Just after:

Code:
table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center"> 
        <tr align="center">
Would put it on the far left.
Not being a CODER, I worked on this for hours trying to figure it out.(i.e. Add a Home Button) Finally gave up and searched and found your post here.

I'm using vbStyles ARIA Skins and only had to remove the '_alt' (out of vbmenu_control_alt) to get this to work perfectly with the proper colors/fonts.

Again, Many Thanxx for taking the time to post the info!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05465 seconds
  • Memory Usage 2,264KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (4)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete