The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
hello i would like to know how i would get a login block beside my forum im currently useing one of the UA sidebars as u can see here www.mpgamerz.net/forums
i would like to know what code i would need to put there for them to login on that part thx =) |
|
#2
|
||||
|
||||
|
You can just copy & paste the box code from the navbar.
|
|
#3
|
|||
|
|||
|
ok i found a code only problem is when they login through it,... it still tells them to login once there logged in.. how can i fix this so it shows there logged in already
--------------- Added [DATE]1214466928[/DATE] at [TIME]1214466928[/TIME] --------------- doesn't work lmao |
|
#4
|
||||
|
||||
|
How doesn't it work? Just saying it doesn't work isn't going to solve your problem.
|
|
#5
|
|||
|
|||
|
what i mean is this seems the same what im useing.. what i want it todo is when someones logged on it shows them logged in alrdy on that block.. aswell
|
|
#6
|
||||
|
||||
|
Please post the exact code you are using.
|
|
#7
|
|||
|
|||
|
ok this is what im useing currently for that side there [ login ] [ search box ] and [ stats ]
Code:
<tr>
<td class="alt1">
<!-- BLOCK 1 - LOGIN -->
<if condition="$show['member']"><else />
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td class="thead" align="center">:: Login ::</td>
</tr>
</table>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="alt1">
<!-- ENTER YOUR CODES BELOW -->
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
</tr>
<tr>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
<!-- / End Of CODES -->
</td>
</tr>
</table>
<br />
</if>
<!-- end BLOCK 1 - LOGIN -->
<!-- BLOCK 2 - SEARCH -->
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td class="thead" align="center">:: Forum Search ::</td>
</tr>
</table>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="alt2">
<!-- ENTER YOUR CODES BELOW -->
<strong>
<if condition="$show['searchbuttons']">
<form action="search.php?do=process" method="post">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="16" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</if>
<!-- / End Of CODES -->
</td>
</tr>
</table>
<!-- end BLOCK 2 - SEARCH -->
<!-- BLOCK 3 - STATISTICS -->
<br />
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td class="thead" align="center">:: Forum Stats ::</td>
</tr>
</table>
<table class="tborder" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%" align="center">
<tr>
<td class="alt1">
<b>Forum Members:</b> $numbermembers<br />
<b>Total Threads:</b> $totalthreads<br />
<b>Posts:</b> $totalposts<br />
<b>Newest Member:</b> <a href="$vboptions[bburl]/member.php?u=$newuserid">$newusername</a><br />
<br />
<b>Forum Administrators:</b><br />
<a href="member.php?u=1">Sycoloco</a>, <a href="member.php?u=6">[R]ebel-</a>,<br /> <a href="member.php?u=2">Jono</a>, <a href="member.php?u=3">P-Style</a><br /><br />
<b>Forum Moderators:</b><br />
<a href="member.php?u=1">Sycoloco</a>, <a href="member.php?u=6">[R]ebel-</a><br />
<br />
There are currently <span class="staff"><b>$totalonline</b></span> users online.
</td>
</tr>
</table>
<!-- end BLOCK 3 - STATISTICS -->
</td></tr>
|
|
#8
|
||||
|
||||
|
This is your problem:
Code:
<if condition="$show['member']"><else /> |
|
#9
|
|||
|
|||
|
how to fix this?
|
|
#10
|
|||
|
|||
|
<if condition="$show['guest']">
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|