PDA

View Full Version : Login....



genius551v
4 Oct 2006, 7:24 AM
Hey jack,

Tnks to answer... Smile

can you separated the funtions need to Login "singin" from forum, how Question ?

tnks again

jack.slocum
4 Oct 2006, 7:52 AM
No se que quieres? En javascript o en la server?

En javascript, forum.js tiene esto:



signin : function(){
if(!loginDlg){
loginDlg = new YAHOO.widget.Dialog("loginBox",
{ modal:true, visible:false, width:"280px", fixedcenter:true,
constraintoviewport:true, draggable:true, zIndex:10001 });

loginDlg.hideOnSubmit = false;

loginDlg.callback.success = function(o){
if(o.responseText != 'OK'){
getEl('invalid-login').radioClass('active-msg');
}else{
loginDlg.hide();
signinInfo.refresh();
}
};

loginDlg.callback.failure = function(o){
getEl('invalid-login').radioClass('active-msg');
};

loginDlg.beforeSubmitEvent.subscribe(function(){
getEl('signing-in').radioClass('active-msg');
});

var listeners = [new YAHOO.util.KeyListener(document,
{keys : 27}, {fn:loginDlg.cancel, scope:loginDlg, correctScope:true}),
new YAHOO.util.KeyListener(document,
{keys : [13,10]}, {fn:loginDlg.submit, scope:loginDlg, correctScope:true})];

loginDlg.cfg.queueProperty("keylisteners", listeners);
loginDlg.cfg.queueProperty("buttons", [
{image:"images/signin.gif", handler:loginDlg.submit},
{image:"images/cancel.gif", handler:loginDlg.cancel}
]);
loginDlg.render();
}
loginDlg.show();
}


Tambien hay javascript "dialogs.js" que tiene unas functions que cambian YAHOO.widget.Dialog. Como, usando image por submit button en vez de button.

genius551v
11 Oct 2006, 1:23 PM
podrias explicarme lo que hace del lado del servidor ? ?

podrias darme un ejemplo del login.php ? ?

Tnks

jack.slocum
11 Oct 2006, 2:10 PM
Login.php es login de phpBB sin modificar.