Simple Machines Community Forum

SMF Support => Language Specific Support => Español (Spanish) => Aiheen aloitti: BenRu - heinäkuu 13, 2006, 10:10:01 IP

Otsikko: Dos dudas con SSI.php
Kirjoitti: BenRu - heinäkuu 13, 2006, 10:10:01 IP
Me gustaria poder poner el login(); y welcome(); para que se abriera en una pagina nueva y no en la misma, este es el code, que debo modificar?

login():

// Shows a login box.
function ssi_login($redirect_to = '', $output_method = 'echo')
{
global $scripturl, $txt, $user_info;

if ($redirect_to != '')
$_SESSION['login_url'] = $redirect_to;

if ($output_method != 'echo' || !$user_info['is_guest'])
return $user_info['is_guest'];

echo '
<form action="', $scripturl, '?action=login2" method="post">
<table border="0" cellspacing="1" cellpadding="0" class="ssi_table">
<tr>
<td align="right"><label for="user">', $txt[35], ':</label>&nbsp;</td>
<td><input type="text" id="user" name="user" size="9" value="', $user_info['username'], '" /></td>
</tr><tr>
<td align="right"><label for="passwrd">', $txt[36], ':</label>&nbsp;</td>
<td><input type="password" name="passwrd" id="passwrd" size="9" /></td>
</tr><tr>
<td><input type="hidden" name="cookielength" value="-1" /></td>
<td><input type="submit" value="', $txt[34], '" /></td>
</tr>
</table>
</form>';
}



welcome():

// Display a welcome message, like:  Hey, User, you have 0 messages, 0 are new.
function ssi_welcome($output_method = 'echo')
{
global $context, $txt, $scripturl;

if ($output_method == 'echo')
{
if ($context['user']['is_guest'])
echo $txt['welcome_guest'];
else
echo $txt['hello_member'], ' <b>', $context['user']['name'], '</b>', allowedTo('pm_read') ? ', ' . $txt[152] . ' <a href="' . $scripturl . '?action=pm">' . $context['user']['messages'] . ' ' . ($context['user']['messages'] == '1' ? $txt[471] : $txt[153]) . '</a>' . $txt['newmessages4'] . ' ' . $context['user']['unread_messages'] . ' ' . ($context['user']['unread_messages'] == '1' ? $txt['newmessages0'] : $txt['newmessages1']) : '', '.';
}



Un saludo
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: BenRu - heinäkuu 20, 2006, 11:46:00 IP
Alguien me puede ayudar?

Necesito arreglar esto lo antes posible  :-\
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: [darksteel] - heinäkuu 22, 2006, 07:04:40 IP
no sé si funcione pero intenta colocando luego de method="post" un target="_blank"

darksteel-
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: BenRu - heinäkuu 23, 2006, 06:39:20 IP
En el login si ha funcionado, pero el welcome no tiene ningun method="post".

El ssi no me logea en la pagina que esta puesto el login,tu metes tu user y pass y se abre el foro pero en esa pagina no paa nada :S
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: [darksteel] - heinäkuu 23, 2006, 09:51:06 IP
dentro de el <href=" "   aca >
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: BenRu - heinäkuu 25, 2006, 01:20:32 IP
Pero de todas maneras, cuando se abre el foro en una pagina nueva en blanco, en el index (en el menu) deberia salir, Bienvenido Usuario, tiene x mensajes nuevos...y no sale nada de eso.

Me dijeron que podia ser porque estaba en un iframe metido, pero ya lo saque y sige igual  :-\
Otsikko: Re: Dos dudas con SSI.php
Kirjoitti: BenRu - heinäkuu 31, 2006, 04:44:42 AP
Nadie sabe nada?  :-\