{ Learn Code. Share Code. Teach Code. Love Code. }

  • [Discontinued] CNS Chatroom

  • Please post all your completed software applications in here. This is for full software which you have created and wish to release and share with everyone.
Please post all your completed software applications in here. This is for full software which you have created and wish to release and share with everyone.
 #81182  by comathi
 Sat Apr 19, 2014 10:11 pm
Easter break is almost over, so I hope those of you who were off this week enjoyed the extra time off (I know I did ;) ).

Anyway, #Filip and I (mostly #Filip, though) have been working on a PHP chatroom that uses the Code'N'Stuff API and WebSockets, meaning messages arrive instantly (Push, basically).

We thought it would be nice to post it here, as a concept, and to show you all what can be done with a little PHP. This could easily be implemented to the forum, so #CodenStuff, if you're looking for a little project, we've got one for you :lol:

Anyway, the chat is accessible to any member of the forum, all you need is your username and API key, which can be found here: viewforum.php?f=226

#Filip and I will be moderating it. Have fun cooll;

http://filip-mestric.iz.hr/projects/cnschat/index.php

Image

Extra features
User tagging (using @username). Users are shown the messages they were tagged in when they log in.

Automatic URL parsing

BBCode integration

Bold, italic and underline (same as forum BBcodes)
[color=#color][/color]
[font="font"][/font]
[img][img]
[email][/email]
Last edited by comathi on Tue Jun 24, 2014 1:52 pm, edited 2 times in total.
 #81183  by smashapps
 Sat Apr 19, 2014 11:19 pm
This is great well done #Filip and #comathi

I logged on but there were some problems, I couldn't send any messages and there are a lot of PHP errors

Image
 #81184  by comathi
 Sat Apr 19, 2014 11:54 pm
Thanks!

The error should be fixed now... Filip did a bit of digging in the logs and it looks like there was a bad registration or something :)
 #81185  by CodenStuff
 Sun Apr 20, 2014 1:57 am
Looks really good guys cooll;

What's the resource usage and server requirements for this?

Sorry haven't tried it yet, internet's acting up and won't load the page.
 #81187  by jordy03
 Sun Apr 20, 2014 6:33 am
looks good but when i write my username and API it says wrong password or somethin ..
 #81189  by AnoPem
 Sun Apr 20, 2014 8:13 am
I get, this site has an loop in redirecting when i login, when im logged in it goes for chat.php and then again index.php
 #81190  by Filip
 Sun Apr 20, 2014 8:24 am
Hello everyone,

there seems to be a bug with initial login, the problem was with userids and session keys.. It is fixed now.

All your records were stored in our database, you should just try to relogin..

We're sorry for inconvenience!

Thanks
-Filip