The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[Project] Staff's Chatbox

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Go down

[Project] Staff's Chatbox

Post by JScript on December 7th 2014, 6:56 am

First topic message reminder :

Hello folks!

Introduction:

I realized that many users would like to have a "chatbox for exclusive staff" and I also wanted!
It was then that so I had the idea of making one, I did inside a widget but I found it strange because it was very small, boring to implement, required many steps to create and parameter settings in the ACP ...

But now, based on another project I'm developing, this code has the ability of a true "installer", also having an uninstaller in which all the code and the pseudo database are removed completely !!!

Only by creating a new JavaScript so that we can have the installer code is required.

But how does it work?
It's simple:
The installer first create a category and within a forum with permissions only to administrators and moderators, but this can be changed later in the ACP.
Then it creates a topic within this forum that will serve as a pseudo database to our chat!

Features:
1- Each member will be able delete or edit your own message;
2- Messages are written in JSON format, thus we gain storage space and ease of maintenance in code;
3- The message storage capacity is the same as a topic.

How about we make tests?

First access the ACP and check "Unauthorize unoficial forms .." to "no", see example below:


In the ACP, create a new JavaScript as follows:
Title * : @install_chat_staff
Placement : In the home page
Javascript Code * : - Copy and paste the code below in this field:

Download link: https://www.dropbox.com/s/yeu4mif5bk62acg/Staff%27s_Chat_div.js?dl=1

Note: The title field should have exactly this name: @install_chat_staff
For uninstalling the code and structure of pseudo database depends exclusively on him!

When you finish this step, go to your forum, reload the page and wait for the following window:

Follow the steps waiting for the end of each.

After the installer finishes, the page will reload, then you can use the chatbox staff that will have the following appearance (varying according to the version of your forum):


Example: Editing a message!


To uninstall is easy, as well as install, only the founder can do this! Simply by typing in the chat: /uninstall
You will see the following window:

Just follow the steps and the chat will be uninstalled completely!

Some chat commands:

/cls - Clear all messages, resetting the list.
/stop - Pause the reception of messages, useful when you do not want to be disturbed.
/start - Restarts the reception of messages.

See an example of how messages are stored in the pseudo database:


JSON format:
Code:
{
    "user": [{
        "id": 1,
        "name": "JScript",
        "pname": "%3Cspan%20style%3D%22color%3A%23000099%22%3E%3Cstrong%3EJScript%3C%2Fstrong%3E%3C%2Fspan%3E",
        "avatar": "http://autoitbrasil.com/forum/uploads/av-89.png"
    }, {
        "id": 2,
        "name": "Member Test",
        "pname": "%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%20153)%3B%22%3E%3Cstrong%3EMember%20Test%3C%2Fstrong%3E%3C%2Fspan%3E",
        "avatar": "http://illiweb.com/fa/invision/pp-blank-thumb.png"
    }],
    "msgs": [{
        "id": 1,
        "msg": "Messages%20cleared!",
        "date": "18:56 - 19/12/2014"
    }, {
        "id": 1,
        "msg": "Test%2001%20-%20FF",
        "date": "18:56 - 19/12/2014"
    }, {
        "id": 2,
        "msg": "Test%2002%20-%20IE",
        "date": "18:57 - 19/12/2014"
    }, {
        "id": 2,
        "msg": "Test%2003%20-%20CR",
        "date": "18:57 - 19/12/2014"
    }]
}


Who can contribute to the project, either with more ideas, codes and even translations into other languages, I thank you!

JS


Last edited by JScript on June 3rd 2015, 4:53 pm; edited 7 times in total

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down


Re: [Project] Staff's Chatbox

Post by _Twisted_Mods_ on January 6th 2015, 2:00 am

true but you can remove that group from mod of that forum .. turn on auto subscribe for 0 post on that group... turn it back off then turn mod back on ..on that forum... bit annoying but it will do the trick

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by smejker on February 6th 2015, 12:51 pm

This is realy nice!

for this JScript. Great job!

But I have a little problem... When I click on smiles... box is empty (See image)



And...
1. Is it possible to put sound when new message will come?
2. Is it a chanse to see this chatbox from subforums, profile... etc... not just homepage?
3. Is it a chanse to change FM chat with this chat... 'cause this chat is more better from this one chat.. it's not good for me.

Thanks in advance!

Regards & Respect!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by conan@10 on February 6th 2015, 1:24 pm

this chatbox has lots of errors, effects to many codes andsomewhat difficult to use...

conan@10
New Member

Male Posts : 24
Reputation : 2
Language : Vietnam
Location : HCMC

http://yukimono.net

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on February 6th 2015, 2:15 pm

@smejker
Hello, I am very glad you enjoyed the code!

Let me know the version of your forum so I can check the problem with smiles ok?
I made a last update in this current version, check if that solves this problem.
Example: http://i.imgur.com/7mqzK3j.png

All items below are already part of a new version in which is being tested:

1. Is it possible to put sound when new message will come?
2. Is it a chanse to see this chatbox from subforums, profile... etc... not just homepage?
3. Is it a chanse to change FM chat with this chat...


@conan@10
1- this chatbox has lots of errors,
-> And unfortunately you did not specify what the errors, in this case is extremely difficult to solve them!

2- effects to many codes
-> ???

3- andsomewhat difficult to use...
-> So you find difficult to use this chat ?! Or is it to install?
Again you did not specify the details ...

But you are free to not use it!

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by smejker on February 6th 2015, 3:11 pm

@JScript wrote:@smejker
Hello, I am very glad you enjoyed the code!

Let me know the version of your forum so I can check the problem with smiles ok?
I made a last update in this current version, check if that solves this problem.
Example: http://i.imgur.com/7mqzK3j.png

All items below are already part of a new version in which is being tested:

1. Is it possible to put sound when new message will come?
2. Is it a chanse to see this chatbox from subforums, profile... etc... not just homepage?
3. Is it a chanse to change FM chat with this chat...



Thanks for quick answerJScript

I have phpBB3 (prosilver) version, and anothertime thanks for sharing of everything what you made

but someone can speak what they want...

Regards & Respect!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by Kuriboo on February 7th 2015, 8:02 pm

The possibilities of being able to manipulate data in a pseudo database from a HTML page on the forum would be quite..staggering.. kudos

Kuriboo
New Member

Posts : 8
Reputation : 1
Language : Engish

http://shuraduelacademy.forumotion.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on February 7th 2015, 10:03 pm

@Kuriboo
Absolutely yes!


@smejker
I tested in phpBB3 (prosilver) version and it worked normally!

I await your response,

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by smejker on February 9th 2015, 9:02 am

@JScript wrote:
@smejker
I tested in phpBB3 (prosilver) version and it worked normally!

I await your response,

JS

Nothing... The box of smilies is still empty!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by SLGray on February 9th 2015, 9:19 am

Have you modified any templates?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36697
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by smejker on February 10th 2015, 9:27 am

@SLGray wrote:Have you modified any templates?

Yes SLGray

index_body, index_box, overall_header, topics_list_box and viewtopic_body

Regards & Respect!

smejker
Forumember

Male Posts : 158
Reputation : 3
Language : serbo-croatian/english/macedonian/bulgarian

http://smejker@yahoo.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on February 11th 2015, 8:18 pm

@smejker

Could you post the address of your forum?

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by palokm on February 26th 2015, 1:37 pm

super chat

if only add sound

palokm
New Member

Posts : 1
Reputation : 1
Language : SLOVAKIA

http://naseandroidforum.slovakforum.net/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on February 26th 2015, 2:34 pm

@palokm
Hello!

Thank you, the sound will be part of the next version ok?

So long,

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by Van-Helsing on February 26th 2015, 2:45 pm

Hello dear all,
Perfect the sound for chatboxes is a very beautiful function.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on April 11th 2015, 1:37 am

Hello everybody, I modified the code to make life easier for developers, although still does not contain the significant changes of the next version!

Download link: https://www.dropbox.com/s/yeu4mif5bk62acg/Staff%27s_Chat_div.js?dl=1
(Also present in the first post!)

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by FrOsTyXi on April 20th 2015, 11:43 pm

@JScript Thank you for the update on the staff chatbox working great!!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on April 21st 2015, 12:15 am

@FrOsTyXi
Thank you my friend...

In next version will have the Forumotion's chatbox fully integrated in this chat!!!

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by FrOsTyXi on April 21st 2015, 12:37 am

@JScript I await that version and the normal chatbox, thank you for your continued work and effort!!

Best Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by FrOsTyXi on May 30th 2015, 7:30 pm

@JScript Has there been an update to this awesome code as of yet?

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by mpelmmc on June 1st 2015, 4:35 pm

I can't see the other forums when I install this,

It looks like this in my Admin account:



In guest mode:


I'll let you my link forum into the hide thing so It won't be spam. I can send you the link for PM anyways.



The forum is in Spanish cuz I'm Spanish. I can change the language if you feel conforted.

And sorry for the confusion

Thanks.

mpelmmc
Forumember

Male Posts : 139
Reputation : 12
Language : Spanish (100%), English (90%) and Google Translate.
Location : I go back and forth.

http://asistencia.foroactivo.com/forum

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on June 1st 2015, 6:47 pm

@mpelmmc

Okay, so since the forum in question is only for testing purposes, you could create an account in moderation rights so I can better assess what is happening?

If so, you can post username and password here or send me PM.

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by mpelmmc on June 1st 2015, 8:39 pm

I have just sent you a PM.

mpelmmc
Forumember

Male Posts : 139
Reputation : 12
Language : Spanish (100%), English (90%) and Google Translate.
Location : I go back and forth.

http://asistencia.foroactivo.com/forum

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on June 1st 2015, 10:37 pm

@mpelmmc
In your ACP, follow the steps below image, choose one of three models of "Split categories on index":


And thank you for this information, it will make me adapt the code to another format available for the categories!

JS

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Re: [Project] Staff's Chatbox

Post by mpelmmc on June 1st 2015, 10:44 pm

Oh, so it was that. Thank you and best wishes on your adaptation Wink.

mpelmmc
Forumember

Male Posts : 139
Reputation : 12
Language : Spanish (100%), English (90%) and Google Translate.
Location : I go back and forth.

http://asistencia.foroactivo.com/forum

Back to top Go down

Re: [Project] Staff's Chatbox

Post by darki on June 2nd 2015, 10:36 pm

After toogling the chatbox and reloading the page, the chatbox disappears and the created forum appears instead.

The toolbar disappears after toggling and reloading.

The "refresh" and "clear" button don't work (nothing happens by clicking on it).

Don't know whether the problems are only in my forum. I'm using phpbb3.

darki
Forumember

Posts : 254
Reputation : 10
Language : German, english

http://schiggysboard.com

Back to top Go down

Re: [Project] Staff's Chatbox

Post by JScript on June 2nd 2015, 11:02 pm

@darki wrote:After toogling the chatbox and reloading the page, the chatbox disappears and the created forum appears instead.
So I can check this probable error, you need to create a temporary account with moderator privileges because this chat is for staff, and send me username and password via PM ok?

@darki wrote:The toolbar disappears after toggling and reloading.
Which toolbar do you mean?

@darki wrote:The "refresh" and "clear" button don't work (nothing happens by clicking on it)
1- The refresh button only works if there are new messages and for some reason they were not shown on the screen!
2- The clear button is designed to clean only the input field!

Edit:

See:


JS


Last edited by JScript on June 3rd 2015, 3:10 am; edited 1 time in total (Reason for editing : More info...)

JScript
Forumember

Male Posts : 741
Reputation : 168
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Page 3 of 3 Previous  1, 2, 3

View previous topic View next topic Back to top


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