[campsite-dev] Campsite User Feedback functions
  • I've added the following functions to camp_html.php to help with user
    feedback:

    camp_html_add_msg($msg, $type = "error"); // the other $type is "ok"
    camp_html_has_msgs();
    camp_html_display_msgs();
    camp_html_clear_msgs(); // you will probably never need to use this

    These functions use the session to store messages. This has the
    advantage over putting error messages in the URL in that if the page is
    refreshed, the message doesnt appear again (also the URL looks nicer
    too). I also found a cool javascript fading script on the web which I
    used to fade success messages. The reason they fade is so you can tell
    the screen has been updated if you click the Save button again.

    These are used in pub/issue/section edit screens and I also converted
    the user screens to use them as well.

    Please use these in the future whenever you need to send feedback to the
    user. Comments/suggestions welcome.

    - Paul
  • 2 Comments sorted by
  • I have a small language related wish.
    1) add prefered language to user profile (the staff user)
    2) The login window should have "use profile language" as default, not
    English
    3) when new user is created, let admin to preset the language for him

    I believe this small thing will help all non english magazines.

    Ondra
  • Thanks for the suggestion Ondra. The login language is set in a cookie,
    so the user should only ever have to pick their language once. Is once
    too much? And when they first see the login screen there would be no
    way to know which language to show to them because they haven typed in
    their user name yet. But we could add in a global variable to allow you
    to choose the default login screen language. Would that be helpful?


    - Paul

    P.S. In the future, please post feature requests to the campsite-users
    list. Thanks!


    Ondra Koutek wrote:
    > I have a small language related wish.
    > 1) add prefered language to user profile (the staff user)
    > 2) The login window should have "use profile language" as default, not
    > English
    > 3) when new user is created, let admin to preset the language for him
    >
    > I believe this small thing will help all non english magazines.
    >
    > Ondra
    >
    >
    >