Add a link to system alert message

Last post 03-23-2010, 11:24 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  03-22-2010, 3:47 AM 59547

    Add a link to system alert message

    Hello there,
     
    Is it possible to add a link to the system alert message that says: Anonymous users are not allowed in this application: You must sign in first to this website.
     
    The problem is when the user clicks OK the application is open and they can type but obviously not post.  We need them to be redirected to our sign in page.  Is there a way we can do this?
     
    Thanks
    Arabella
  •  03-22-2010, 9:45 AM 59558 in reply to 59547

    Re: Add a link to system alert message

    Dear ArabellaS,
     
    "The problem is when the user clicks OK the application is open and they can type but obviously not post. ", can you open http://www.dotnetdate.com/ and tell us detailed steps.
     
    Regards,
    Eric
  •  03-22-2010, 12:05 PM 59572 in reply to 59558

    Re: Add a link to system alert message

    Hi Eric,
     
    Sorry I'm not sure where you want me to tell you these details, I couldn't see where on that page?
     
    Thanks
    ArabellaS
  •  03-23-2010, 11:24 PM 59611 in reply to 59572

    Re: Add a link to system alert message

    Hi ArabellaS,
     
    Try this way
     
    1. Open file "CuteSoft_Client\CuteChat\Script\ChatUI.js"
     
    2. Find section below
     
    case "NEEDLOGIN":
       msghtml=TEXT("UI_CONNECTION_NEEDLOGIN");
       Desktop.Alert(null,TEXT("UI_CONNECTION_NEEDLOGIN"),TEXT("UI_ALERT"));
       break;
     
    3. Change to
     
    case "NEEDLOGIN":
       msghtml=TEXT("UI_CONNECTION_NEEDLOGIN");
       if(confirm("Login Now?")==true)
        {
           window.location.href="http://localhost:63643/CuteChat/";
        }
       break;
     
    4. Note
     
    "Login Now?" is the confirm message. http://localhost:63643/CuteChat/ is the login location in you site.
     
    Regards,
     
    Ken
View as RSS news feed in XML