Online chatbox for forum

A place for general discussions about anything and everything.

Would you like an online chatbox for LoK forum?

YES
19
86%
NO
1
5%
CANT BE DONE
2
9%
 
Total votes : 22

Re: Online chatbox for forum

Postby Zeus Kabob » Tue Jul 17, 2012 1:33 am

My solution would be to use a password (or hash) in the IRC client. It would allow you to change computers, and it would keep you from having a semi-permanent cookie on your computer.
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby FMPraxis » Tue Jul 17, 2012 8:45 am

I thought of another solution (many times better than my last one).

(geek warning :geek: ... however I don't know about the security/sandboxing in PHP if there is any, so this idea might be dead before it starts.)

IF we're loading the chatbox/client in a frame, (or just displayed on the same page, the exact method shouldn't matter much) it should be possible to have (a script on) the forums pass your username to the client page.
So for example, if we put the chatbox on awesomelokchatbox.com and we put an iframe on the forums, we theoretically can send a string (your username) to the chatbox.

This idea isn't foolproof, because I can already think of a way that some firefox users such as myself could probably spoof other names anyway, but I'm pretty sure there's a workaround to make that difficult. You're never going to make it impossible, though.
FMPraxis
 
Joined: Mon Jun 25, 2012 10:14 am

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Fri Jul 20, 2012 5:42 pm

I use chat on my sait without any pasword - only login :mrgreen: But no body writes me - so now i use it like web notepad :lol: :lol: :lol:

Do you really think that some body will stole your forum names ?

Yes, the first idea of my friend was to write using my nick name and what ? He get tired after his 5th post :lol: It is no logikal why do you think some body will do it ? Or for example it can be protected so only some forum users can use it. If some body do the project and as example only them use it - what is the point to use some body others nick name ?

By the way - for example if you afraid of some cookies and etc - you can use Flash - it will not save Usernames / Paswords if you do not want it (i think :mrgreen: )

If you do not want to some body use your forum nick name - why do not use your forum Login and Pas ? If i am right - forum use MySql data base or some thing like this ? Why for example it can not read account data before you login to chat ?

I do not know about is it security or not - but i hope that there are no such mad people that will hack forum :mrgreen: But may be i am wrong :roll:
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby Zeus Kabob » Sat Jul 21, 2012 7:46 pm

FMPraxis, the spoofing problem should be resolved by using a "shared secret" to encrypt the username as it passes through the wires. Then a user can't access the chat server directly and acquire the username of their choice.

In any case, I can throw theories down in post form, but I wouldn't know how to write that kind of interface. I say this chatbox is probably easy from a theoretical standpoint, and much harder from an implementation standpoint.
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby BlueLight » Sun Jul 22, 2012 6:59 pm

I've got a question. Wont you guys have to void the warranty of BBforums so you can get this to work?
User avatar
BlueLight
Gangs n' Whores Developer
 
Joined: Sat Jun 04, 2011 8:23 am

Re: Online chatbox for forum

Postby Spazman » Fri Jul 27, 2012 3:45 am

I believe, if one of ye on here was a good-enough PHP/Java coder and such, ye could probably have a version of ET Chat running on this place. (I believe it's an off-shoot of AJAX chat, just doesn't take NEAR as much bandwidth, and can be bridged with the site software ;D )
Spazman
 
Joined: Tue Jul 24, 2012 5:04 pm

Re: Online chatbox for forum

Postby Zeus Kabob » Sat Jul 28, 2012 6:45 am

I'll check that out. I've fumbled around in PHP before, so I might be able to decipher what's going on with that.
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby BlueLight » Sat Jul 28, 2012 7:56 am

I could look at the code if it's java. However i don't think i'll get far since i haven't really messed with Networking.
User avatar
BlueLight
Gangs n' Whores Developer
 
Joined: Sat Jun 04, 2011 8:23 am

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Sat Jul 28, 2012 8:37 pm

Can i ask a really stupid question ? Do you really want to make a chat for forum ? :mrgreen:
If you do what solutions is possible for it ? And what do it have to do ? I mean for example - do you ant to make it on Flash / Java Script - and etc or only Java with out any flash and some other restrictions on langvich it have to be programed on ?

Or you just talking about how it is possible to make for getting more expirience ?
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby BlueLight » Sat Jul 28, 2012 8:42 pm

Is that aimed at me or people here in general?

Also from my understand, Ren doesn't want to modified any of the PhP files.
User avatar
BlueLight
Gangs n' Whores Developer
 
Joined: Sat Jun 04, 2011 8:23 am

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Sat Jul 28, 2012 8:56 pm

BlueLight Wrote:Is that aimed at me or people here in general?

Also from my understand, Ren doesn't want to modified any of the PhP files.


I mean to all people :mrgreen:

He is right - becouse it takes a lot of time to change it.

But if it is possible to build for example flash in some where - it is possible to make simple chat on it. Some thing wery simple is possible to make with 2 PHP files and 1 flash. If you want login with your forum name and etc - 1 more file and etc. for each function. like a example. Just make a new dirrectory for it and it will not do any mistakes with forum works. But may be make more workload on server.

If some body will be very interested in it - and you will decide to make it on this forum and i will have time (i change my work in real life so have some time problems for now some times :mrgreen: )- than i can a little tell more about it, i am not good in it, but have a little exp. how to work with php on flash - for making some kind of very simple chat/walls on it.

Just as example of flash chat - some simple example:

http://oostest.aiq.ru/Test/MyChat.swf

If you need it to check some data you can make php screept that will look is the same login and pasword in data base and do some thing.

When i did it i need not any password - only for wright and see last 20 strings so it is a very simple example.
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Tue Aug 14, 2012 2:09 pm

Oh my god !OoS kill topic - oos bastard :lol: (Like in south park :mrgreen: ).

Why when i write anything anywhere topic always abate it's activity :lol: ?

I am the topic killer baby :lol: :mrgreen:
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby Zeus Kabob » Tue Aug 14, 2012 6:18 pm

Oh geez! I totally checked out your chatbox and appreciated it, but I failed to post anything here. :P

I guess you have the uncanny ability to make people forget to post...
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby talin » Tue Aug 14, 2012 8:07 pm

Not bad. Bigger font size and a different style would make it easier to quickly read through it during fast conversations but it is nice.
Needs:
------->Easy to read font style
------->Easy to read font size
------->Larger screen to accommodate more posts at once
------->Site linked username and password login that goes off the same profile list as the forum sign in (have it query for a match without showing the possible matches).

Wants: (if it's not to much trouble)
------->Multiple private chat room capability (for private conversations, maybe a few RP's, team game dev planning, ect.)
------->Emotes
What is a goal but an attempt to gain a purpose? We don't really want the goals and advancements for themselves, we want them because it gives us a reason to act.
RP DnD roller: http://www.wizards.com/dnd/dice/dice.htm
User avatar
talin
 
Joined: Sun Jan 22, 2012 2:14 am
Location: Laptops can go almost anywhere.

Re: Online chatbox for forum

Postby Zeus Kabob » Wed Aug 15, 2012 2:53 am

You forgot the scroll bar so that we can see older posts.
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Wed Aug 15, 2012 4:29 am

I think that i will post code (php + *.fla) of it when come from work today or may be tomorrow. So if some body will be interested he can use it. I think that i will post a little Instruction how to work with PHP + flash too.

This prototype was simpled to work with out MySQL. But i had codes for MySQL too some where. To create check of nick name on forum - some body who will work with it needa to have paswords of administrator from LoK site and forums. So i think only Renara can do it, but i think that we can help a little with it if he will be interesed do we ? :mrgreen:

I long time ago i post an idea about Krystal flash world - so the chat idea was designed for it (it is easy integrate in flash games and any flash projects). The first idea of it was to collect data about how many people win the game / what levels more difficult and etc. and let people to chat in game.
Last edited by OwnerOfSuccuby on Wed Aug 15, 2012 4:53 am, edited 1 time in total.
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby Zeus Kabob » Wed Aug 15, 2012 4:42 am

Спасибо!

(OoS, you're Russian, right?)
User avatar
Zeus Kabob
Moderator
 
Joined: Tue Nov 16, 2010 2:16 am
Location: Between some awesome thunderheads

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Wed Aug 15, 2012 4:54 am

Yes i am =) Да русский =)
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Re: Online chatbox for forum

Postby OwnerOfSuccuby » Wed Aug 15, 2012 12:05 pm

I'll post this to my little guide in viewtopic.php?f=29&t=2370 a little later.

Sorry for errors in English, really have some times problems and as a main reason my English is not perfect :roll: :mrgreen:

To work with PHP - you will need to instal this program - it is pack of programs Apache / mySQL and etc..

http://www.wampserver.com/

When you install it - (as i understand it is free) - run it. Open your browser and type localhost - now you are in the site that you pt on your computer when you install WAMP.

Go to wamp icon and click it. Select the www directory. It is location of your site that you can use when type localhost in browser.
Good - now create directory in that www directory and name it for example 1. It is very comfortable to use it that way.

Now when you type in your browser "localhost/1/" you will be in that folder that you made and can choose what php scripr or any other thing to load. Php will not work with out WAMP or another the same program - it will not start work directly. You must to execute it in broswer like i wright earlier.

It is not as hard as it sounds like ;) The next steps are even more simple.

Now you know how to execute php files. If you load and try to execute flash that use php this way - it will work. Now we need to understand how to make flash that can execute php files and get information from it. It is not hard. Let us first see it on very very veeeery simple example. Just to show the idea of this.

What is the chat ? It is te little program that can get and send information. It have to check some thing than send it to our server. and reed from server than post in our chat window. How to post the text on screen - i think it is very simple to make ;) If you have the text variable with some text in it - just put it in the standart flash text field. So the main problem is some how write our text variable on server and reed new date to it :mrgreen:

Let us imagine a little. What can be much more simple than chat, but can work us how to send/get variables from server and back ? Yes you re wright - it can be for example flash counter that will count for example how much did flash loaded on our site.

So let me first show you how to make it. There is only nesesary code with out any garbage.

To be continied

... some times i think that i am idiot !!! :lol: I made this example some times ago and delete its *.fla file :twisted: :roll: :lol:

So i will post the example soon i need to make new one now :lol:

Ok i remade example for counter - first unzip all to your www directory / 1 in wamp - you have to see it in localhost/1

Then try to look how is done Counter example - 111.fla

Then you are ready to look Chat source. It's purpose was not an ordinary chat, it was designed to build in another flash / java and etc. so it is a little not oprimized like ordinary chat. And may be it's structure is a little strange :mrgreen:

This is the simple example how to work with out MySQL. If some body is interested i can try to find and post some php scripts - that i made for mysql for this chat. The idea is the same - it is no difference betwen text file or MySQL in this context. But if you want to check forum accounts - you will need it. The same for differente groups of users/better optimization and etc..

But you can not use mysql with out paswords from loK forum and etc. becouse you will need to get some date from it - so only Renara i think can use this option. But it is possible to remake design - and if some body will be interested - he will may be even do not need to change flash chat file. Only optimize php for MySql.

It was made on AS3. I did not made it on AS2 but i think it is the same - but some changes in code like:

/*
myLoadVars = new loadVars();
myLoadVars.name = username;
myLoadVars.age = userage;
myLoadVars.comment = usercomment;
myLoadVars.send("file.php", "_self", "POST");
*/

But not myLoadVars.name i think you will need some thing like myLoadVars.requestCode - or some thing like that. But i did not test it on AS2 so ... :roll: :mrgreen:
OwnerOfSuccuby
 
Joined: Fri Jun 11, 2010 9:33 pm

Previous

Return to General



Who is online

Users browsing this forum: No registered users