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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
within index.php and add after the following code:
$_SESSION['lastRedLine'] = ($_SESSION['lastRedLine']+30) % $_SESSION['channel_buffer']->get_max_line_idx();
HTH
-letreo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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
okay, here is the solution.
download beta8 and switch on 'SHOW_CHAT_HISTORY' in config.inc.php
:)
regards,
-letreo
Downloaded beta8 - and it works great.
Lovely job !
Cheers
Dan