Announcement

Collapse
No announcement yet.

Modal Welcome Message

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Modal Welcome Message

    Hello, Appreciate if any one here can help me on how to make a modal welcome window message after login.

    Thank you,

  • #2
    Originally posted by eliaskho View Post
    Hello, Appreciate if any one here can help me on how to make a modal welcome window message after login.

    Thank you,
    Am also interested in this, actually want to be able to send the user a message which should display in a modal.
    Is it possible to attach a modal to a link maybe so I can display information on login (blank/Control) which will then provide the possibility of a modal on click?
    Would be happy with either method event thou the auto modal on login and menu would be really great!

    Comment


    • #3
      Just create a new control app with a single text field. The app's onscriptinit can get the message text from wherever (maybe check a table field for text) and assign it to the text field (or hard code it, but that's pretty inflexible).

      Your login app, after validating the login details successfully, opens your menu app - so, in your menu's onApplicationInit event - add:

      sc_redir("Application name", "", "modal");

      Regarding adding a link to it - add the link in your login app (where the other 2 are for "new user" / "retrieve password") - and direct it to the new control message app.

      Comment


      • #4
        Hi, this might be what you are looking for.

        if($login_ok)
        {
        sc_redir(blank_greeter,,'modal',600,350);
        }

        jsb

        Comment


        • #5
          You could also use the browser to do this. Just insert this in an event on your first app after login driven by a condition (sql lookup before in an if-else statement):
          PHP Code:
          echo "<script>
          alert('welcome_message');
          </script>"

          You could also do a redir after the user acknowledges the message and closes it with this:

          PHP Code:
          echo "<script>
          alert('welcome_message');
          sc_redir(my_app.php,'','_self');
          </script>"

          Comment

          Working...
          X