Results 1 to 4 of 4

Thread: Login....

  1. #1

    Default Login....

    Hey jack,

    Tnks to answer... Smile

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

    tnks again

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    No se que quieres? En javascript o en la server?

    En javascript, forum.js tiene esto:

    Code:
    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.

  3. #3

    Default server side....

    podrias explicarme lo que hace del lado del servidor ? ?

    podrias darme un ejemplo del login.php ? ?

    Tnks

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    Login.php es login de phpBB sin modificar.

Similar Threads

  1. User login help
    By ukara in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 16 Mar 2007, 5:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •