forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Sun Nov 19, 2017 5:32 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: live game IM support.
PostPosted: Fri Jan 21, 2011 5:27 pm 
Offline

Joined: Thu Dec 18, 2008 12:24 pm
Posts: 55
Ok, this is much easier than i could have thought.

Grey press support at present (anonymous messages only - Black press support coming soon) White press can't be supported offsite without support from this side.

1)ajax im window (no server load for webdip - uses long polling, so there is a decent load on the server side)
2)iframe for the game to grab it directly from webdiplomacy.net

i'd like some suggestions on how to implement white press (this code will be free for anyone to download)

This is in alpha only: http://www.maths.tcd.ie/~orathaic/index_.php
Click on live support, and click connectToChat to go to the lobby.

lots of quirks at the moment, but it's an alpha...


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 5:38 pm 
Offline

Joined: Wed Oct 08, 2008 12:47 pm
Posts: 726
"Warning: fopen(../chatcache/.tmp): failed to open stream: Permission denied in /u3/maths/2006/orathaic/www/serverfunctions/RecieveChat.php on line 10"


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 7:19 pm 
Offline

Joined: Thu Dec 18, 2008 12:24 pm
Posts: 55
yeah, i may have some bugs right now... though that ones new.
also i need to sanitize the input so for the moment most things are disabled... maybe try in a few hours...

EDIT: actually thanks for that, i don't know how you did it, but i guess it's because my input is crappy while i try sanitize it, but that helped me find a stupid typo (bad capitalization on my part)


Top
 Profile  
 
PostPosted: Fri Jan 21, 2011 9:28 pm 
Offline

Joined: Thu Dec 18, 2008 12:24 pm
Posts: 55
ok, should be good to go!

it will generate some 500 errors if you leave it to sit for too long, and doesn't have an indicator of what's going on, but those will be for my next version...

So anonymous (grey) press should now be working, but only with one channel per game (no private chat between players until i get some kind of auth)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group