2007-02-25, 05:17 PM
Pages: 1 2
2007-02-25, 06:24 PM
damn ive doubleposted.
<!--- read below ---!>
<!--- read below ---!>
2007-02-25, 06:26 PM
try this:
and save as xxx.php
and then do an include:
Alex.
<div class="login">
<div>
<?php
if($mybb->user["uid"])
{
?>
• <a href="<?php echo $rel; ?>search.php?action=getnew">View new posts</a><br>
• <a href="<?php echo $rel; ?>private.php">View new PM's</a><br>
• <a href="<?php echo $rel; ?>usercp.php">User CP</a><br>
<b>·</b> <a href="<?php echo $rel; ?>usercp.php?action=editsig">Edit Signature</a><br>
<b>·</b><a href="<?php echo $rel; ?>usercp.php?action=avatar">Edit Avatar</a><br>
• <a href="<?php echo $rel; ?>member.php?action=profile&uid=<?php echo $mybb->user["uid"]; ?>">My Profile</a><br>
• <a href="<?php echo $rel; ?>search.php?action=finduser&uid=<?php echo $mybb->user["uid"]; ?>">My Posts</a>
<?php
}
else
{
?>
<input type="text" name="username" class="logtxt" />
<input type="submit" value=" " name="login" class="login" />
</div>
<div>
<input type="password" name="password" class="logtxt" />
<input type="button" value=" " onclick="window.location='register.php'" name="register" class="register" />
</div>
<?php
}
?>
and save as xxx.php
and then do an include:
include(xxx.php);
on the page you want the login form.Alex.
Pages: 1 2