[Tutorial] Simple staff chat
5 posters
Page 1 of 1
[Tutorial] Simple staff chat
Create a simple chat for the staff.
Create a new module with the following content (Visible only to staff):
Create a new module with the following content (Visible only to staff):
- Code:
Editing...
Last edited by Daemon on May 9th 2018, 1:20 am; edited 2 times in total
Daemon- Forumember
- Posts : 104
Reputation : 91
Language : Português
Re: [Tutorial] Simple staff chat
I just tried it and sadly it doesn't work. I tried in phpBB3, punBB and modernBB... and doesn't work in any of them.
The board is always empty, new posts don't appear (only a text in portuguese is displayed). Maybe with the translation to english something has messed up.
No alerts or console errors, it simply ignores your sends.
Maybe the problem is with this line, I checked and its value is always null. All the ajax succeed but the msgs is null so no message can be displayed
PS. Also, as far as I understand, this code only works with the advanced profile (and this can't be changed).
I checked it always with the advanced profile enabled so that's not the problem is my tests.
The board is always empty, new posts don't appear (only a text in portuguese is displayed). Maybe with the translation to english something has messed up.
No alerts or console errors, it simply ignores your sends.
- Code:
var msgs = jQuery("li.clearfix:contains('chat_staff'):lt(10)", responseHtml).wrapAll("<div></div>").parent().html();
Maybe the problem is with this line, I checked and its value is always null. All the ajax succeed but the msgs is null so no message can be displayed
PS. Also, as far as I understand, this code only works with the advanced profile (and this can't be changed).
I checked it always with the advanced profile enabled so that's not the problem is my tests.
Wecoc- Forumember
- Posts : 144
Reputation : 111
Language : Catalan, Spanish, English
Re: [Tutorial] Simple staff chat
I confess that I only tested in PunBB. But I promise a functional version for the other versions.
Daemon- Forumember
- Posts : 104
Reputation : 91
Language : Português
Re: [Tutorial] Simple staff chat
Daemon wrote:I confess that I only tested in PunBB. But I promise a functional version for the other versions.
Thank you
Re: [Tutorial] Simple staff chat
As for feedback, I can tell you that the message I sent in the widget instead of displaying in the chatwidget get's displayed on my wall ..
Similar topics
» problem for chat tutorial
» [Tutorial] Online staff widget
» [Tutorial] Invisible profile fields except for staff and the user himself
» Immediate Removal of FM Chat & Validate Registration Field Tutorial Codes
» Staff Chat?
» [Tutorial] Online staff widget
» [Tutorial] Invisible profile fields except for staff and the user himself
» Immediate Removal of FM Chat & Validate Registration Field Tutorial Codes
» Staff Chat?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum