Current time: 07-31-2014, 09:43 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
condition and vb navbar
03-13-2006, 04:33 AM
Post: #31
RE: condition and vb navbar
Ok I need some help from here..

SS: http://img456.imageshack.us/img456/9391/vb7fc.gif

I hope someone can ans my questions(IGNORE THE BANNER LINE QUESTION)

thx!
Find all posts by this user
Quote this message in a reply
03-13-2006, 06:25 AM
Post: #32
RE: condition and vb navbar
Anyone there can help the 2 of us to get the border around the Nav Bar ?
lol!
Find all posts by this user
Quote this message in a reply
03-13-2006, 11:43 AM
Post: #33
RE: condition and vb navbar
to get it around the banner you have to change where <div id="container"> is in the header template
Visit this user's website Find all posts by this user
Quote this message in a reply
03-13-2006, 11:46 AM (This post was last modified: 03-13-2006 11:47 AM by xiaozhu.)
Post: #34
RE: condition and vb navbar
How abt adding a white+black border around the 2nd part of the NavBar

and editing of the 'Welcome back, blah'
Find all posts by this user
Quote this message in a reply
03-13-2006, 11:52 AM
Post: #35
RE: condition and vb navbar
1. change <div id="container"> in header add it to the top of the head template

2. its in the header template
Visit this user's website Find all posts by this user
Quote this message in a reply
03-13-2006, 12:03 PM
Post: #36
RE: condition and vb navbar
You might want to see my template and see..

Code:
<script language="Javascript" type="text/javascript">
var cookieDomain = "$settings[cookiedomain]";
var cookiePath = "$settings[cookiepath]";
var quickdelete_confirm = "$lang->quickdelete_confirm";
var newpm_prompt = "$lang->newpm_prompt";
var deleteevent_confirm = "$lang->deleteevent_confirm";
var removeattach_confirm = "$lang->removeattach_confirm";
</script>
<div id="container">
<a name="top"></a><div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');"><center><a href="$settings[bburl]/index.php"><img src="$theme[logo]" alt="$settings[bbname]" border="0" /></a></center></div><br />
<div id="header">
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$theme[tablespace]" cellspacing="$theme[borderwidth]" border="0" width="100%" align="center">
<tr>
<td class="trow1" width="100%">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td>&nbsp;</td>
<td width="100%"><navigation></td>
</tr>
</table>
</td>
<if condition=$mybbuser[uid]> 0 <then>
<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">
$lang->welcome_back<br />
<a href="private.php">$lang->welcome_pms</a> $lang->welcome_pms_usage
</div>
</td>
<else />
<td class="trow2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smalltext">$lang->username:</td>
<td><input type="text" name="username" title="$lang->username" value="$lang->username" onfocus="this.value=''" /></td>
<td class="smalltext" colspan="2" nowrap="nowrap"></td>
</tr>
<tr>
<td class="smalltext">$lang->password:</td>
<td><input type="password" name="password" title="$lang->password" value="$lang->password" onfocus="this.value=''" /></td>
<td><input type="submit" value="Go!" /></td>
</tr>
</table>
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<table cellpadding="5" cellspacing="0" width="100%">
<tr>
<td class="tcat" align="center"><a href="$settings[bburl]/index.php"> <b> Home</b></a></td>
<td class="tcat" align="center">
<if condition=$mybbgroup['canusercp']== yes <then>
<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a><else /></if>
<if condition=$mybbgroup['canusercp']== no <then>
<a href="$settings[bburl]/member.php?action=register"><b>Register</b></a><else /></if></td>
<td class="tcat" align="center">
<a href="search.php" id="search" onclick="return openMenu(this)" class="popup_button">Search<img src="images/popup_down.gif" border="0" /></a></td>
<td class="tcat" align="center"><a href="$settings[bburl]/memberlist.php"><b>Members</b></a></td>
<td class="tcat" align="center"><a href="$settings[bburl]/calendar.php"><b>$lang->toplinks_calendar</b></a></td>
<td class="tcat" align="center"> <a href="$settings[bburl]/misc.php?action=help"><b>$lang->toplinks_help</b></a></td>
$admincplink
<if condition=$mybbuser[uid]> 0 <then>
<td class="tcat" align="center"> <a href="$settings[bburl]/member.php?action=logout&amp;uid=$mybbuser[uid]"" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>
</tr></table>
<hr class="hidden" />
</div>
<hr class="hidden" /><br />
<div id="content">
$bannedwarning
$bbclosedwarning
$unreadreports
<!-- header quick search form -->
<div class="menupop" id="search-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="tcat">Search</td>
</tr>
<tr>
<td class="row">
<form method="post" action="$settings[bburl]/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
$gobutton
</td>
</tr>
<tr>
<td class="menu_row"><a href="search.php">Advanced Search</a></td>
</tr>
</table>
</div></form>
<!-- / header quick search form -->
<!-- user cp tools menu -->
<div class="menupop" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="tcat">Quick Links</td></tr>
<tr><td class="menu_row"><a href="search.php?action=getnew">Today's Posts</a></td></tr>
<tr><td class="menu_row"><a href="misc.php?action=markread">Mark Forums Read</a></td></tr>
<tr><td class="menu_row"><a
href="misc.php?action=buddypopup">Open Buddy List</a></td></tr>
<tr><td class="tcat"><a href="usercp.php">User CP</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig">Edit Signature</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=avatar">Change Avatar</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=profile">Edit Profile</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=options">Edit Options</a></td></tr>
<tr><td class="tcat">Miscellaneous</td></tr>
<tr><td class="menu_row"> <a href="private.php">Private Messages</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions">Subscribed Threads</a></td></tr>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid=$mybbuser[uid]">My Profile</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
Find all posts by this user
Quote this message in a reply
03-14-2006, 02:36 AM (This post was last modified: 03-14-2006 02:37 AM by ajp.)
Post: #37
RE: condition and vb navbar
Massacre Wrote:to get it around the banner you have to change where <div id="container"> is in the header template

The use of <div id="container"> makes a border around it but adds a space as well. I want it so that it blends in with the rest of the forum. Everything else has a border around it with no space except the nav bar. I know it is a minor thing but it grabs my eye everytime I see it.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-14-2006, 04:23 AM
Post: #38
RE: condition and vb navbar
now i know what you mean look at it now
Visit this user's website Find all posts by this user
Quote this message in a reply
03-14-2006, 04:24 AM
Post: #39
RE: condition and vb navbar
Massacre Wrote:now i know what you mean look at it now

Cool here is my header

Code:
<script language="Javascript" type="text/javascript">
var cookieDomain = "$settings[cookiedomain]";
var cookiePath = "$settings[cookiepath]";
var quickdelete_confirm = "$lang->quickdelete_confirm";
var newpm_prompt = "$lang->newpm_prompt";
var deleteevent_confirm = "$lang->deleteevent_confirm";
var removeattach_confirm = "$lang->removeattach_confirm";
</script>
<a name="top"></a>
<div id="container">
<div id="header">
<div class="logo"><a href="$settings[bburl]/index.php"><img src="$theme[logo]" alt="$settings[bbname]" border="0" /></a></div>

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$theme[tablespace]" cellspacing="$theme[borderwidth]" border="0" width="100%" align="center">
<tr>
<td class="trow1" width="100%">

<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">

<td>&nbsp;</td>
<td width="100%"><navigation></td>
</tr>
</table>

</td>

<if condition=$mybbuser[uid]> 0 <then>

<td class="trow2" valign="top" nowrap="nowrap">
<div class="smalltext">
$lang->welcome_back<br />
<a href="private.php">$lang->welcome_pms</a> $lang->welcome_pms_usage
</div>
</td>

<else />

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

<!-- login form -->
<form action="member.php" method="post">
                <input type="hidden" name="action" value="do_login" />
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td class="smalltext">$lang->username:</td>
<td><input type="text" name="username" title="$lang->username" value="$lang->username" onfocus="this.value=''" /></td>
<td class="smalltext" colspan="2" nowrap="nowrap"></td>
</tr>
<tr>
<td class="smalltext">$lang->password:</td>
<td><input type="password" name="password" title="$lang->password" value="$lang->password" onfocus="this.value=''" /></td>
<td><input type="submit" value="Go!" /></td>
</tr>
</table>
</form>
<!-- / login form -->

</td>

</if>

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

<table cellpadding="5" cellspacing="0" width="100%">
<tr>
<if condition=$mybbgroup['canusercp']== yes <then>
<td class="tcat" align="center"><a href="usercp.php"><b>User CP</b></a></if></td>
<if condition=$mybbgroup['canusercp']== no <then>
<td class="tcat" align="center"><a href="$settings[bburl]/member.php?action=register"><b>Register</b></a></if></td>
<td class="tcat" align="center"> <a href="$settings[bburl]/misc.php?action=help"><b>FAQ</b></a></td>
<td class="tcat" align="center"><a href="$settings[bburl]/memberlist.php"><b>Members List</b></a></td>
<td class="tcat" align="center"><a href="$settings[bburl]/calendar.php"><b>$lang->toplinks_calendar</b></a></td>

<td class="tcat" align="center">
<a href="search.php" id="search" onclick="return openMenu(this)" class="popup_button">Search<img src="images/popup_down.gif" border="0" /></a></td>

<td class="tcat" align="center">
<if condition=$mybbgroup['canusercp']== yes <then>
<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">Quick Links<img src="images/popup_down.gif" border="0" /></a></if></td>

<if condition=$mybbuser[uid]> 0 <then>
<td class="tcat" align="center"> <a href="$settings[bburl]/member.php?action=logout&amp;uid=$mybbuser[uid]"" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td></if>
</tr></table>


<hr class="hidden" />
</div>
<hr class="hidden" />
<div id="content">
$bannedwarning
$bbclosedwarning
$unreadreports


<!-- header quick search form -->
<div class="menupop" id="search-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="tcat">search</td>
</tr>
<tr>
<td class="row">

<form method="post" action="$settings[bburl]/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" name="keywords" value="" />
$gobutton
</td>
</tr>
<tr>
<td class="menu_row"><a href="search.php">Advanced Search</a></td>
</tr>
</table>
</div></form>

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

<!-- user cp tools menu -->
<div class="menupop" id="usercp-popup" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="tcat">Quick Links</td></tr>
<tr><td class="menu_row"><a href="search.php?action=getnew">Today's Posts</a></td></tr>
<tr><td class="menu_row"><a href="misc.php?action=markread">Mark Forums Read</a></td></tr>
<tr><td class="menu_row"><a href="misc.php?action=buddypopup">Open Buddy List</a></td></tr>

<tr><td class="tcat"><a href="usercp.php">User Control Panel</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig">Edit Signature</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=profile">Edit Profile</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=options">Edit Options</a></td></tr>

<tr><td class="tcat">Miscellaneous</td></tr>
<tr><td class="menu_row"> <a href="private.php">Private Messages</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions">Subscribed Threads</a></td></tr>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid=$mybbuser[uid]">My Profile</a></td></tr>
<tr><td class="menu_row"> <a href="online.php">Who's Online</a></td></tr>
    
</table>
</div>

<!-- / user cp tools menu -->
<br />
Visit this user's website Find all posts by this user
Quote this message in a reply
03-14-2006, 04:32 AM
Post: #40
RE: condition and vb navbar
<!-- / breadcrumb, login, pm info -->
<table cellpadding="5" cellspacing="0" width="100%">


change to

<!-- / breadcrumb, login, pm info -->
<table class="tborder" cellpadding="5" cellspacing="0" width="100%">
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication