![]() |
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í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... |
Echa un vistazo a este hilo http://forosdelweb.com/showthread.php?t=261850 Todo lo que quieres hacer se plantea. Si después de leerlo tienes alguna duda(que esta algo lioso) encantado de ayudar :) Salu2 ;) |
Xd Phpbb gracias man :adios: SALUDOS ! :-D |
| La zona horaria es GMT -6. Ahora son las 07:44. |
Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.