Menu

amount of messages users see when logging in

Help
Caroline
2011-04-27
2012-09-14
  • Caroline

    Caroline - 2011-04-27

    last one for now - I promise!

    when a user logs in, either for the first time, or after being booted (for
    time limit or internet issues), is there a way to control the number of
    messages they see - or the amount of time worth of messages they see. when a
    user logs back in, they should be able to see like an hour or 2 hours worth,
    so they can see maybe what they missed if someone was hosting the chat. right
    now when you login, you see like a couple minutes worth - 8 or 10 messages. is
    this in the config - i didnt see it.

    btw - great tool - i will be donanting after getting this dev project live :)

     
  • Ciprian Murariu

    Ciprian Murariu - 2011-04-27

    Lol, please don't stop! ;))

    Yes, that setting is in Admin panel/Configuration/Menu->General
    settings/Functionality: Default number of messages to display on first
    entrance. Default = 10

     
  • Caroline

    Caroline - 2011-04-27

    ok - that helps - is the limit 99? I couldnt type 3 digits - but maybe if it
    is more it would bog things down?

    also, did a test chat with approx 10 people this morning, and a few people
    continued to get booted - any thoughts?

    thanks

    caroline

     
  • Ciprian Murariu

    Ciprian Murariu - 2011-04-27
    1. Be aware that a higher number of first rows will make the room load slower and slower for each client;
    2. Teach your users use this command: /show nnn or /last nnn That way thy could choose how much to read;
      2a. HINT: after reading the desired history, type /show 10 , so the window
      keeps only the last 10 posts active - that will prevent reloading every 10
      seconds a large amount of data, so the chat goes faster (as per each user, of
      course, but also the used bandwidth gets narrower - from the server's pov);

    2b. Advice: have your users read the tutorial and help.

    1. The booting issue could be browser related - Google Chrome has been released after this chat was developed, so, for some reasone, there is an incompatibility I've noticed. Recommend our users IE or FF (Opera is also working fine)

    PS: I still need a link to your chat so I can come and see/test your feedback
    and provide better advice. Send it to my email, if you want to keep it
    private.

    Ciprian M.

     
  • Ciprian Murariu

    Ciprian Murariu - 2011-04-27

    Sorry for the typos. It's just my keyboard (this time)

     
  • elaine

    elaine - 2012-02-15

    Is there any way to disable the /show and /last commands? I want to prevent
    users from seeing the conversation before they entered the room...

     
  • Ciprian Murariu

    Ciprian Murariu - 2012-02-15

    You're in a very big hurry...

    Sorry for the delay, I was on duty.

    Well, it depends on your version, but basically, here is what you need to do:

    Open lib/index.lib.php, search for this "show|last|" an delete it what in the
    quotes.

    Then ~20 lines above, depending on your version, you'll might find this line:

    (L_CMD_SHOW != "" && L_CMD_SHOW != "L_CMD_SHOW" ?
    str_replace(",","|",L_CMD_SHOW)."|" : "").

    Put one # in front of it - or delete it completely... Save and upload.

    Do the same in lib/remotelogin.lib.php.

    Enjoy!

    Important: please be aware that this will just disable the use of commands
    /show, /last and eventual synonyms (especially in other langs), but this is
    not completely enough, as there are a few other modes like the lurking page,
    logs, /save command, chat_activity .php and chatroom_extras.php and export.php
    files, all these being alternatives to open and eventually display older posts
    in your chat...

    Try them all manually, after setting in admin panel/configuration tab/general
    settings/Functionality, the value of "Default number of messages to display on
    first entrance" to minimum "1" (or "2", according to the hints I put there).

    Let us/me know how it worked.

    Ciprian M.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.