Current time: 04-16-2014, 10:21 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Condition and vb navbar for 1.20
09-05-2006, 03:49 PM (This post was last modified: 10-02-2006 12:28 PM by Lapsetur.)
Post: #1
Condition and vb navbar for 1.20

.zip  MAVI.zip (Size: 76.14 KB / Downloads: 1668)

Upload the files


-Template Changes


"Replace the codes below"


Quote:Forum Bit Templates > forumbit_depth2_forum


<tr>
<td class="{$bgcolor}" align="center" valign="middle"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
<td class="{$bgcolor}" valign="middle">
<strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="midlle" width="21%" align="left" style="white-space: nowrap">{$lastpost}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
</tr>



Quote:-Header


<script language="Javascript" type="text/javascript">
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var newpm_prompt = "{$lang->newpm_prompt}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
</script>
<a name="top"></a>
<div id="container">
<div id="header">
<div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');"><left><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" border="0" /></a></center></div>
<br />

<!-- 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=$mybb->user['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<BR />
$lang->welcome_current_time
</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" size="10" title="$lang->username" value="$lang->username" onfocus="this.value=''" /></td>
<td class="smalltext" colspan="2" nowrap="nowrap">

<label for="remember">
<input type="checkbox" name="remember" id="remember" value="yes" checked="checked" />Remember?</label>

</td>
</tr>
<tr>
<td class="smalltext">$lang->password</td>

<td><input type="password" name="password" size="10" title="$lang->password" value="$lang->password" onfocus="this.value=''" /></td>


<td><input type="submit" class="smalltext" style="font-weight:normal" value="OK" /></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">{$welcomeblock}</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/index.php"><b>Index</b></a></td>

<td class="tcat" align="center">
<a href="{$mybb->settings['bburl']}/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="{$mybb->settings['bburl']}/memberlist.php"><b>Member List</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/calendar.php"><b>{$lang->toplinks_calendar}</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/misc.php?action=help"><b>{$lang->toplinks_help}</b></a></td>
$admincplink

<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"> <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></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 -->
<br />

Quote:- header_welcomeblock_guest

<strong><a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a></strong>


Quote:- header_welcomeblock_member

<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a>

<!-- 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"><font color="black">View New Posts</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=markread"><font color="black">Mark All Forums Read</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=buddypopup"><font color="black">Body/Ignore List</a></td></tr></font>

<tr><td class="tcat"><a href="usercp.php">User CP</a></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig"><font color="black">Change Signature</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=avatar"><font color="black">Change Avatar</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=profile"><font color="black">Edit Profile</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=options"><font color="black">Edit Options</a></td></tr></font>

<tr><td class="tcat">Miscellaneous</td></tr>
<tr><td class="menu_row"> <a href="private.php"><font color="black">Private Messages</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions"><font color="black">Subscribed Threads</a></td></tr></font>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid={$mybb->user['uid']}"><font color="black">View Profile</a></td></tr></font>

</table>
</div>

Quote:- header_welcomeblock_member_admin

<td class="tcat" align="center"><b><a href="{$mybb->settings['bburl']}/{$config['admin_dir']}/index.php">{$lang->welcome_admin}</a></b></td>

Quote:- headerinclude

<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<script type="text/javascript" src="jscripts/prototype.lite.js?ver=120"></script>
<script type="text/javascript" src="jscripts/moo.ajax.js?ver=120"></script>
<script type="text/javascript" src="jscripts/general.js?ver=120"></script>
<script type="text/javascript" src="jscripts/menu.js"></script>
<script type="text/javascript" src="jscripts/mybb.js"></script>
<script type="text/javascript" src="jscripts/popup_menu.js?ver=120"></script>
<link rel="stylesheet" type="text/css" href="{$theme['css_url']}" />
<script language="Javascript" type="text/javascript">
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var newpm_prompt = "{$lang->newpm_prompt}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
</script>
{$newpmmsg}


Quote:- Navigation Templates

- nav

<div class="navigation">
<img style="vertical-align:bottom;" src="$theme[imgdir]/nav_start.gif"/>{$nav}{$activesep}{$activebit}
</div>

- nav_sep

>

- nav_sep_active

<br><img style="vertical-align:bottom;" src="$theme[imgdir]/nav_end.gif"/>

Quote:Themes

Add this at the end of Additional CSS

/* Popup Menus */

.popup_button {
color: #FFFFFF;
text-align: right;
font-weight: bold;
padding: 3px;
margin-top: 3px;
margin-bottom: 3px;
margin-left: 3px;
}

a.popup_button:link,
a.popup_button:visited,
a.popup_button:active,
a.popup_button:hover {
text-decoration: none;
color: #FFFFFF;
}

.popup_menu {
position: absolute;
border: 1px solid #000;
background: #ccc;
}

.popup_menu ul
{
margin:0px;
padding:0px;
list-style-type:none;
}

.popup_menu li
{
background: #fff;
margin: 1px;
padding: 0;

}

.popup_menu ul li a
{
display: block;
padding: 3px;
color: #000;
text-decoration: none;
}

* html .popup_menu ul li a {
display: visible;
width: 100%;
}

.popup_menu a:hover {
background: #C7DBEE;
text-decoration: none;
color: #000;
}

.menupop {
background: #FFFFFF;
color: #000000;
border: 1px solid #0B198C;
}

That all Folks have fun

[Image: balik.gif]
http://www.amatorbalikci.net
http://www.oyunagaci.net
Visit this user's website Find all posts by this user
Quote this message in a reply
09-05-2006, 04:56 PM
Post: #2
RE: Condition and vb navbar for 1.20
Very nice. Will give it a shot tonight.

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
09-05-2006, 11:20 PM (This post was last modified: 09-05-2006 11:20 PM by IMPAQ.)
Post: #3
RE: Condition and vb navbar for 1.20
Worked like a charm. Smile

Thanks so much.

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
09-06-2006, 02:33 AM
Post: #4
RE: Condition and vb navbar for 1.20
There's a problem with the logout link at the top. Gives this error message:

Forums Wrote:Your user ID could not be verified to log you out. This may have been because a malacious Javascript was attempting to log you out automatically. If you intended to logout, please click the Logout button at the top menu.
Find all posts by this user
Quote this message in a reply
09-06-2006, 03:35 AM (This post was last modified: 09-06-2006 04:38 AM by Largo05.)
Post: #5
RE: Condition and vb navbar for 1.20
Quote:-Header


<script language="Javascript" type="text/javascript">
var cookieDomain = "{$mybb->settings['cookiedomain']}";
var cookiePath = "{$mybb->settings['cookiepath']}";
var newpm_prompt = "{$lang->newpm_prompt}";
var deleteevent_confirm = "{$lang->deleteevent_confirm}";
var removeattach_confirm = "{$lang->removeattach_confirm}";
var loading_text = '{$lang->ajax_loading}';
var saving_changes = '{$lang->saving_changes}';
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
</script>
<a name="top"></a>
<div id="container">
<div id="header">
<div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');"><left><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" border="0" /></a></center></div>
<br />

<!-- 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=$mybb->user['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<BR />
$lang->welcome_current_time
</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" size="10" title="$lang->username" value="$lang->username" onfocus="this.value=''" /></td>
<td class="smalltext" colspan="2" nowrap="nowrap">

<label for="remember">
<input type="checkbox" name="remember" id="remember" value="yes" checked="checked" />Remember?</label>

</td>
</tr>
<tr>
<td class="smalltext">$lang->password</td>

<td><input type="password" name="password" size="10" title="$lang->password" value="$lang->password" onfocus="this.value=''" /></td>


<td><input type="submit" class="smalltext" style="font-weight:normal" value="OK" /></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="{$mybb->settings['bburl']}/index.php"><b>Index</b></a></td>

<td class="tcat" align="center">
{$welcomeblock}

<td class="tcat" align="center">
<a href="{$mybb->settings['bburl']}/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="{$mybb->settings['bburl']}/memberlist.php"><b>Member List</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/calendar.php"><b>{$lang->toplinks_calendar}</b></a></td>
<td class="tcat" align="center"><a href="{$mybb->settings['bburl']}/misc.php?action=help"><b>{$lang->toplinks_help}</b></a></td>
$admincplink

<if condition=$mybb->user['uid']> 0 <then>
<td class="tcat" align="center"> <a href="$settings[bburl]/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></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 -->
<br />

Quote:- header_welcomeblock_member

<a href="usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">User CP<img src="images/popup_down.gif" border="0" /></a>

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

<tr><td class="thead"><b>Quick Links</b></td></tr>
<tr><td class="menu_row" ><a href="search.php?action=getnew"><font color="#026CB1">View New Posts</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=markread"><font color="#026CB1">Mark All Forums Read</a></td></tr></font>
<tr><td class="menu_row"><a href="misc.php?action=buddypopup"><font color="#026CB1">Body/Ignore List</a></td></tr></font>

<tr><td class="thead"><font color="#ffffff"><a href="usercp.php"><b>User CP</b></a></font></td></tr>
<tr><td class="menu_row"><a href="usercp.php?action=editsig"><font color="#026CB1">Change Signature</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=avatar"><font color="#026CB1">Change Avatar</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=profile"><font color="#026CB1">Edit Profile</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=options"><font color="#026CB1">Edit Options</a></td></tr></font>

<tr><td class="thead"><b>Miscellaneous</b></td></tr>
<tr><td class="menu_row"> <a href="private.php"><font color="#026CB1">Private Messages</a></td></tr></font>
<tr><td class="menu_row"><a href="usercp.php?action=subscriptions"><font color="#026CB1">Subscribed

Threads</a></td></tr></font>
<tr><td class="menu_row"><a href="member.php?action=profile&amp;uid={$mybb->user['uid']}"><font color="#026CB1">View

Profile</a></td></tr></font>

</table>
</div>

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

Ok i fixed it myself here's how, also fixed the view profile problem. Use this instead of what he said.
Find all posts by this user
Quote this message in a reply
09-06-2006, 06:17 AM (This post was last modified: 09-06-2006 08:18 AM by Lapsetur.)
Post: #6
RE: Condition and vb navbar for 1.20
In Header

Find

Quote:<a href="$settings[bburl]/member.php?action=logout&amp;uid=$mybb->user['uid']"" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>

Replace

Quote:<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>


- header_welcomeblock_member

Find

Quote:<a href="member.php?action=profile&amp;uid=$mybb->user['uid']"><font color="black">View Profile</a></td></tr></font>

Replace

Quote:<a href="member.php?action=profile&amp;uid={$mybb->user['uid']}"><font color="black">View Profile</a></td></tr></font>

Fixed above codes also

[Image: balik.gif]
http://www.amatorbalikci.net
http://www.oyunagaci.net
Visit this user's website Find all posts by this user
Quote this message in a reply
09-06-2006, 07:33 AM
Post: #7
RE: Condition and vb navbar for 1.20
Very nice. Thanks so much.

[Image: untitled13tu.jpg]
Find all posts by this user
Quote this message in a reply
09-06-2006, 07:45 AM
Post: #8
RE: Condition and vb navbar for 1.20
Oktay Wrote:
Code:
<a href="$settings[bburl]/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>
That should be:
Code:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>
As $settings doesn't exist anymore.
Find all posts by this user
Quote this message in a reply
09-06-2006, 08:20 AM
Post: #9
RE: Condition and vb navbar for 1.20
CraKteR Wrote:
Oktay Wrote:
Code:
<a href="$settings[bburl]/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>
That should be:
Code:
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;uid={$mybb->user['uid']}" onclick="return log_out()"><b>$lang->welcome_logout</b></a></td><else /></if>
As $settings doesn't exist anymore.

Thanx

Changed the code.

[Image: balik.gif]
http://www.amatorbalikci.net
http://www.oyunagaci.net
Visit this user's website Find all posts by this user
Quote this message in a reply
09-06-2006, 07:30 PM
Post: #10
RE: Condition and vb navbar for 1.20
could you please make this a plug-in? My head is spinning with all this template stuff. Toungue

[Image: fiveofeight.png]
Join me on TF2 at 76.74.218.236 or click here: http://forums.lambdascience.com
Windows 7 Mag
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