Retroceder   Foros del Web > Diseño de Sitios web > Aplicaciones pre-fabricadas

Respuesta
 
Herramientas Desplegado
Antiguo 09-sep-2005, 13:36   #1 (permalink)
SoldKnot ha deshabilitado el karma
 
Fecha de Ingreso: septiembre-2005
Mensajes: 35
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...
SoldKnot está desconectado   Responder Citando
Antiguo 10-sep-2005, 10:21   #2 (permalink)
yoseman está en el buen camino
 
Avatar de yoseman
 
Fecha de Ingreso: diciembre-2003
Ubicación: Alicante (Spain)
Mensajes: 431
Enviar un mensaje por MSN a yoseman
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 ;)
__________________
[+]
[+]
yoseman está desconectado   Responder Citando
Antiguo 11-sep-2005, 18:48   #3 (permalink)
SoldKnot ha deshabilitado el karma
 
Fecha de Ingreso: septiembre-2005
Mensajes: 35
Xd Phpbb

gracias man

SALUDOS !
SoldKnot está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 20:35.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93