Tema: Phpbb
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/09/2005, 13:36
SoldKnot
 
Fecha de Ingreso: septiembre-2005
Mensajes: 58
Antigüedad: 18 años, 8 meses
Puntos: 0
Phpbb

hola amigos un saludo desde venezuela, quiero preguntarles algo sobre el phpbb, yo tengo una pagina llamada http://www.slipknot696.com

tengo un formulario en la pagina principal donde el usuario entra directamente al foro...pero aveces entra perfecto y a veces no entra...

este es el formato de mi web

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?
define('IN_PHPBB', true);
$phpbb_root_path = (dirname($_SERVER['PHP_SELF'])=="../foros/") ? './' : '../foros/'; //PATH DEL FORO RESPECTO DEL SCRIPT
if (!function_exists("init_userprefs"))
{
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
global $db, $board_config;
global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID;
$cookiename = $board_config['cookie_name'];
$cookiepath = $board_config['cookie_path'];
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
}
?>

/////Bienvenido usuario logueado:
<?
if ($userdata['user_id']!=-1)
{ // usuario SI logeado
switch ($userdata['user_avatar_type'])
{
case 0 : $ruta_de_avatar = '' ;break;
case 1 : $ruta_de_avatar = "<img src=\"" . $phpbb_root_path .$board_config['avatar_path'] . '/' . $userdata['user_avatar'] . "\">";break;
case 2 : $ruta_de_avatar = "<img src=\"" .$userdata['user_avatar'] . "\" >";break;
case 3 : $ruta_de_avatar = "<img src=\"" . $phpbb_root_path.$board_config['avatar_gallery_path'] . '/' . $userdata['user_avatar'] . "\" >";break;
} // fin swicth del avatar
if ( $userdata['user_new_privmsg'] )
{ // SI hay mensajes privados
$l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
$l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);
}
else
{ // NO hay mensajes privados
$l_privmsgs_text = $lang['No_new_pm'];
} //fin mensajes

// pritamos los menus.....
echo "<b>Bienvenido</b> " . $userdata['username'] . " | ";
echo "<a target=\"_blank\" href='" . $phpbb_root_path . "privmsg.php?folder=inbox'>" . $l_privmsgs_text . "</a> | ";
echo "<a target=\"_blank\" href='" . $phpbb_root_path . "profile.php?mode=editprofile'>Tu Perfil</a>";
echo ' | <a href="'.$phpbb_root_path.'login.'.$phpEx.'?logout= true&sid=' . $userdata['session_id'].'&redirect='.$volver.'">Salir ['.$userdata['username'].']</a>';
// fin usuario SI logeado
} else {
echo "<b>Bienvenido:</b> <i>Anonimo</i> | ";
echo "<b>¿No te haz Registrado?</b>: <a target=\"_blank\" href='" . $phpbb_root_path . "profile.php?mode=register'>Registrarse</a>";
} //fin usario NO logueado
?>

-->>codigo HTML<<--

<form action="<?=$phpbb_root_path?>login.php" method="post">
<div align="center"><strong>
<br>
Entrar a los Foros</strong> </div>
<table width="100%" border="0">
<tr>
<td>
<div align="center">
<input type="hidden" name="redirect" value="<?=$volver?>?sid=<?=$userdata['session_id']?>">
<input type="text" style="BORDER-RIGHT: #555555 1px dotted; BORDER-TOP: #555555 1px dotted; BACKGROUND: #000000; BORDER-LEFT: #555555 1px dotted; COLOR: #c0c0c0; BORDER-BOTTOM: #555555 1px dotted" onFocus="this.value='';" value="Usuario" name="username" size="16" />
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="password" style="BORDER-RIGHT: #555555 1px dotted; BORDER-TOP: #555555 1px dotted; BACKGROUND: #000000; BORDER-LEFT: #555555 1px dotted; COLOR: #c0c0c0; BORDER-BOTTOM: #555555 1px dotted" onFocus="this.value='';" value="Palabra" name="password" size="16" maxlength="32" />
</div></td>
</tr>
<tr>
<td><div align="center">Recordarme
<input class="text" style="BORDER-RIGHT: #555555 1px dotted; BORDER-TOP: #555555 1px dotted; BACKGROUND: #000000; BORDER-LEFT: #555555 1px dotted; COLOR: #c0c0c0; BORDER-BOTTOM: #555555 1px dotted" type="checkbox" name="autologin" />
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" style="BORDER-RIGHT: #555555 1px dotted; BORDER-TOP: #555555 1px dotted; BACKGROUND: #000000; BORDER-LEFT: #555555 1px dotted; COLOR: #c0c0c0; BORDER-BOTTOM: #555555 1px dotted" class="mainoption" name="login" value="Entrar" />
</div></td>
</tr>
</table>
</form>

ahora mi pregunta es, al momento del usuario loguearse como hago para que salga la pagina y le de la bienvenida...y que no entre al foro que ya dentro de la pagina logueado el vera si entra al foro...y como quito el formulario al momento de que el usuario se loguee y coloque los usuarios activos dentro de la pagina...