2007-01-19, 08:01 PM
Hello,
Well, I posted this link and there is no answer, but no problem.
I found this:
Thanks! I hope I'll get answer(s). !
Done:
You can do it by:
define("IN_MYBB", 1);
include("forum/global.php");
$mybb->user[username] - username
$mybb->user[uid] - username's id
etc.
Well, I posted this link and there is no answer, but no problem.
I found this:
Quote:<form action="forum/member.php?action=login" method="post">... When I log in i back on index page... is there any code to see id of logged user, and i'll use this (to see username):
<table border="0" cellspacing="1" cellpadding="3" class="tborder" style="border:solid 1px #000000;">
<tr>
<td width="184" bgcolor="#EAEAEA" class="trow1"><strong>Username:</strong></td>
<td width="231" bgcolor="#EAEAEA" class="trow1"><input type="text" class="textbox" name="username" size="25" maxlength="30" style="width: 200px;" /></td>
</tr>
<tr>
<td bgcolor="#EAEAEA" class="trow2"><strong>Password:</strong><br /></td>
<td bgcolor="#EAEAEA" class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" />
(<a href="forum/member.php?action=lostpw">Zaboravljen password? </a>)</td>
</tr>
</table>
<input type="submit" class="button" name="submit" value="Login" />
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="http://www.MYSITE.com/index.php" />
</form>
$query = "SELECT * FROM mybb_users WHERE uid='$something";
$next = mysql_query($query);
while($a=mysql_fetch_array($next)){
$username = $a["username"];
// number of posts , etc..
}
Thanks! I hope I'll get answer(s). !
Done:
You can do it by:
define("IN_MYBB", 1);
include("forum/global.php");
$mybb->user[username] - username
$mybb->user[uid] - username's id
etc.