[Tutorial] Simple staff chat
5 posters
Page 1 of 1
[Tutorial] Simple staff chat
Create a simple chat for the staff.
![[Tutorial] Simple staff chat 8dMt0C2](https://i.imgur.com/8dMt0C2.png)
Create a new module with the following content (Visible only to staff):

![[Tutorial] Simple staff chat 8dMt0C2](https://i.imgur.com/8dMt0C2.png)
Create a new module with the following content (Visible only to staff):
- Code:
Editing...

Last edited by Daemon on Wed 9 May - 2:20; edited 2 times in total
Daemon- Forumember
- Posts : 104
Reputation : 90
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 : 90
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 ..

» Addition of a Staff Chat/ideas for current chat additions.
» Staff chat
» [Tutorial]How to make a staff background
» [Tutorial] Invisible profile fields except for staff and the user himself
» problem for chat tutorial
» Staff chat
» [Tutorial]How to make a staff background
» [Tutorial] Invisible profile fields except for staff and the user himself
» problem for chat tutorial
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum