E107: Chatbox does not display the user's nickname correctly

Created on 10 May 2020  路  4Comments  路  Source: e107inc/e107

Bug Description

Chatbox does not display the user's nickname correctly

How to Reproduce

Steps to reproduce the behavior:
In chatbox menu, if the user contains "." in your nick, only the first string is displayed up to the "."

Expected Behavior

Show the full nick

The content of line 64 needs to be changed, in the file e107_plugins/charbox_menu/chatbox_menu_shortcodes.php of
$temp = explode ('.', $this->var['cb_nick']);
to
$temp = explode ('.', $this->var['cb_nick'], 2);

chatbox bug

All 4 comments

Thank you @chory for the fix.

I'm not sure how this was exactly but I remember there was an issue with usernames having a ".". Need to lookup the exact issue.

I also remember that this fix was put there to split the userid from the username because for some reason, messages were stored in "id.username" format. Not sure if that's still the case.

Can't test now but will test asap

2376 hmm, this was in forum only. Doesn't seem to be related to chatbox.

I also remember that this fix was put there to split the userid from the username because for some reason, messages were stored in "id.username" format. Not sure if that's still the case.

Correct, user names are stored in id.usename format, so as it was previously, if the user name contains any ".", Only the content was returned between the first and second point.

Now it works correctly.
Thank you very much for the work you do and the dedication...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Norwayman picture Norwayman  路  3Comments

rica-carv picture rica-carv  路  6Comments

Jimmi08 picture Jimmi08  路  5Comments

Evgura picture Evgura  路  3Comments

realmontazeri picture realmontazeri  路  5Comments