Menu

Chat History / Cache

2004-03-01
2004-03-05
  • Daniel Fulton

    Daniel Fulton - 2004-03-01

    Hi all,

    Installed poc to integrate with my yabbse board - it works very well, nice work.

    I have a question regarding chat history, at the moment when a new user enters chat they can see nothing from before, is it possible to enable a history, say of 10 lines so that they can 'catch up'.

    Thanks

    Dan

    www.allotments4all.co.uk

     
    • Michael Oertel

      Michael Oertel - 2004-03-01

      search for:
      $lastRedLine = $_SESSION['channel_buffer']->get_cur_line_idx();
      $_SESSION['lastRedLine'] = $lastRedLine;

      within index.php and add after the following code:
      $_SESSION['lastRedLine'] = ($_SESSION['lastRedLine']+30) % $_SESSION['channel_buffer']->get_max_line_idx();

      HTH
      -letreo

       
      • Daniel Fulton

        Daniel Fulton - 2004-03-01

        letreo,

        thanks for the info, but I can not get it to work !

        in index.php I have the following lines,

                $lastRedLine = $_SESSION['channel_buffer']->get_cur_line_idx();
                $_SESSION['channel_buffer']->disconnect();
                $_SESSION['lastRedLine'] = $lastRedLine;

        I changed the lines to be,

                $lastRedLine = $_SESSION['channel_buffer']->get_cur_line_idx();
                $_SESSION['lastRedLine'] = $lastRedLine;
        $_SESSION['lastRedLine'] = ($_SESSION['lastRedLine']+30)
        % $_SESSION['channel_buffer']->get_max_line_idx();
                $_SESSION['channel_buffer']->disconnect();

        This does not seem to work with the autologin feature of the yabbse integration.

        Have I been silly ?

        Cheers

        Dan

         
        • Daniel Fulton

          Daniel Fulton - 2004-03-04

          More info, it appears that the history works when a user first logs in, but if they leave and then return when the session is not expired it fails.

          I am continuing to investigate, if I find anything out I'll let you know.

          Cheers

          Dan

           
        • Michael Oertel

          Michael Oertel - 2004-03-05

          okay, here is the solution.
          download beta8 and switch on 'SHOW_CHAT_HISTORY' in config.inc.php
          :)

          regards,
          -letreo

           
          • Daniel Fulton

            Daniel Fulton - 2004-03-05

            Downloaded beta8 - and it works great.

            Lovely job !

            Cheers

            Dan

             

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.