2009-06-24, 06:50 AM
Using this guide
I copied this code
The login works but when you come back to the page, the buttons like: View PM, ecc aren't show
How can i do?
I copied this code
<?php
$rel = "forum/"; // Ricordati la / finale
chdir($rel);
require("./global.php");
?>
<?php
if($mybb->user["uid"])
{
?>
• <a href="<?php echo $rel; ?>search.php?action=getnew">Visualizza Nuovi Messaggi</a><br>
• <a href="<?php echo $rel; ?>private.php">Visualizza nuovi messaggi privati</a><br>
• <a href="<?php echo $rel; ?>usercp.php">Pannello Utente</a><br>
<b>·</b> <a href="<?php echo $rel; ?>usercp.php?action=editsig">Modifica Firma</a><br>
<b>·</b><a href="<?php echo $rel; ?>usercp.php?action=avatar">Modifica avatar</a><br>
• <a href="<?php echo $rel; ?>member.php?action=profile&uid=<?php echo $mybb->user["uid"]; ?>">Il mio profilo</a><br>
• <a href="<?php echo $rel; ?>search.php?action=finduser&uid=<?php echo $mybb->user["uid"]; ?>">I miei messaggi</a>
<?php
}
else
{
?>
<table>
<form method="POST" action="<?php echo $rel; ?>member.php" onsubmit="return submitted();">
<input type="hidden" name="action" value="do_login">
<input type="hidden" name="url" value="">
<tr>
<td>Username</td>
<td><input type="text" name="username" size="15"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" size="15"></td>
</tr>
<tr>
<td colspan="2"><center><input type="submit" value="Login" name="submit"></center></td>
</tr>
<tr>
<td colspan="2"><center><a href="<?php echo $rel; ?>member.php?action=register">Non sei un utente? Registrati ora!</a></center></td>
</form>
</table>
<?php
}
?>
The login works but when you come back to the page, the buttons like: View PM, ecc aren't show
How can i do?