Jump to content
MakeWebGames

Free real-time chat


sniko

Recommended Posts

How easy is this to extend? Is there some kind of global file to add to?

There is a class (Pusher). Either you can overwrite the entire class by issuing another namespace, or extend the class and overwrite functions as none are marked as final.

Throughout the class, I inject dependancies (db object and $ir) rather than bringing them into the scope via global.

The div's used are marked individually with nice names so you can easily override styling for a specific aspect (ie: change user mentions background color)

Edited by sniko
Link to comment
Share on other sites

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Apologies for the double, but it appears once you hit the chats shown limit set in settings.ini, messages will no longer be seen after a new page load. Easy fix is to set the chat_shown value to some high value.

Also, the first few rooms you add in are ID'd two higher than normal. An easy fix is to just set the id manually in the DB

Edited by TheMasterGeneral
Additions
Link to comment
Share on other sites

I am stuck trying to get this to work, I have followed MTG's wiki and nothing, The chat boxs appear but they will not submit the messages. Any one have any idea?

If you're using Firefox/Chrome, please enable the console and reload the page. Paste any error messages please

Link to comment
Share on other sites

the only error i get in the console is from the jquery library which is: Using //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead

Right, there is a way to fix that, but that means grabbing a local copy of the jQuery lib. Also, that's not what's causing the issue..

If you'd like, I'll take a look and see what I can find.

Link to comment
Share on other sites

Love the idea of this staff panel. Just a few errors so far.

Trying to ban a user.

edit:

QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-bans WHERE userid = 100' at line 1

Query was SELECT ban_type, ban_until, banned_by FROM pusher_chat-bans WHERE userid = 100

If I had opened my eyes I would have seen the problem here:

Line 113

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Change too:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

New error when trying to ban someone.

ERROR

You didn't select a valid ban type

Trying to edit a room

Select the one and only room that I have and change the name.

ERROR

You didn't select a valid room

Add room works fine.

Delete room works fine as well.

Edited by Damond
Link to comment
Share on other sites

Archive: chat_master.zip

End-of-central-directory signature not found. Either this file is not

a zipfile, or it constitutes one disk of a multi-part archive. In the

latter case the central directory and zipfile comment will be found on

the last disk(s) of this archive.

unzip: cannot find zipfile directory in one of chat_master.zip or

chat_master.zip.zip, and cannot find chat_master.zip.ZIP, period.

And it won't let me unzip it on my computer

Link to comment
Share on other sites

Archive: chat_master.zip

End-of-central-directory signature not found. Either this file is not

a zipfile, or it constitutes one disk of a multi-part archive. In the

latter case the central directory and zipfile comment will be found on

the last disk(s) of this archive.

unzip: cannot find zipfile directory in one of chat_master.zip or

chat_master.zip.zip, and cannot find chat_master.zip.ZIP, period.

And it won't let me unzip it on my computer

I'll re-upload tonight, or if you add me on Skype I'll send it to you through there. Also please read this.

Link to comment
Share on other sites

  • 7 months later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...