Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank chat board after deleting messages and reloading the page. #220

Open
Alexufo opened this issue Jan 18, 2016 · 2 comments
Open

blank chat board after deleting messages and reloading the page. #220

Alexufo opened this issue Jan 18, 2016 · 2 comments
Assignees

Comments

@Alexufo
Copy link

Alexufo commented Jan 18, 2016

  1. edit chat files for integration with phpbb3.0 (standart alone version).
    a) autologin custom.php, CustomAJAXChat.php
    b) disable session refresh CustomAJAXChat.php

  2. all works fine but then i delete my message and refresh page i see blank chat board until i write something again.

look at picture
ajaxchatbug

@renom
Copy link

renom commented Feb 25, 2016

Hi Alexufo. I found a solution for the problem. I think it was bug. I changed function getMessageFilter in file lib/class/AJAXChat.php on line 1932 to:

function getMessageFilter() {
$filterChannelMessages = '';
if(!$this->getConfig('showChannelMessages') || $this->getRequestVar('shoutbox')) {
$filterChannelMessages = ' AND NOT (
text LIKE ('/login%')
OR
text LIKE ('/logout%')
OR
text LIKE ('/channelEnter%')
OR
text LIKE ('/channelLeave%')
OR
text LIKE ('/kick%')
OR
text LIKE ('/delete%')
)';
}
return $filterChannelMessages;
}

Just added this lines:

OR
text LIKE ('/delete%')

@Frug Frug self-assigned this May 12, 2016
@Frug
Copy link
Owner

Frug commented May 12, 2016

I can confirm this is an issue with core chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants