[Tutorial] Simple staff chat

Go down

[Tutorial] Simple staff chat

Post by Daemon on March 23rd 2018, 8:19 pm

Create a simple chat for the staff.



Create a new module with the following content (Visible only to staff):
Code:
Editing...
Wink


Last edited by Daemon on May 9th 2018, 1:20 am; edited 2 times in total
avatar
Daemon
Forumember

Posts : 101
Reputation : 81
Language : Português

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by TonnyKamper on March 24th 2018, 12:34 am

Sadly it isn't working on Invision or phpbb3 Deamon.. Sad
avatar
TonnyKamper
Forumember

Female Posts : 350
Reputation : 25
Language : Dutch/English
Location : The Netherlands

http://www.nederlandheelt.nl/forum

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by Wecoc on March 24th 2018, 12:59 am

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.

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 scratch

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.
avatar
Wecoc
Forumember

Male Posts : 136
Reputation : 98
Language : Catalan, Spanish, English

http://www.mundo-maker.com/

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by Daemon on March 24th 2018, 2:53 am

I confess that I only tested in PunBB. But I promise a functional version for the other versions. Very Happy
avatar
Daemon
Forumember

Posts : 101
Reputation : 81
Language : Português

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by SarkZKalie on March 24th 2018, 12:43 pm

Thank you! Very Happy


avatar
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 940
Reputation : 157
Language : English

http://rotavn.forumotion.com

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by TonnyKamper on March 24th 2018, 2:40 pm

@Daemon wrote:I confess that I only tested in PunBB. But I promise a functional version for the other versions. Very Happy

Thank you cheers
avatar
TonnyKamper
Forumember

Female Posts : 350
Reputation : 25
Language : Dutch/English
Location : The Netherlands

http://www.nederlandheelt.nl/forum

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by TonnyKamper on March 31st 2018, 8:11 pm

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 ..
avatar
TonnyKamper
Forumember

Female Posts : 350
Reputation : 25
Language : Dutch/English
Location : The Netherlands

http://www.nederlandheelt.nl/forum

Back to top Go down

Re: [Tutorial] Simple staff chat

Post by Amjedamir on July 1st 2018, 8:08 pm

goood
avatar
Amjedamir
New Member

Posts : 23
Reputation : 1
Language : العربية

http://amjedofamir.ahlamontada.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum