PHP chat like Facebook

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP chat like Facebook

Post by onion2k »

jayshields wrote:What do you mean by Ning "install"? There's nothing to install is there? Isn't it just an online service that anyone can sign up to?
I'm sure you used to be able to download the code and run it on your own server. Maybe they closed it. There's always others anyway.. elgg for example. Mmaybe Apache Shindig too though that's really just an opensocial container so you'd need to build a lot on top of that.
jayshields wrote:I doubt a client would be very happy if they wanted a Facebook-like social networking site and all you did was sign them up to a free online service and write some CSS.
That depends on what they want. If they're interested in running a social network then they might well be happy with Ning and some design work to skin it. Why not? It solves their problem very cheaply. Don't discard solutions because you don't think the client will go for it. Ask the client.
crazycoders
Forum Contributor
Posts: 260
Joined: Tue Oct 28, 2008 7:48 am
Location: Montreal, Qc, Canada

Re: PHP chat like Facebook

Post by crazycoders »

Most people think facebook is pretty simple but it's an amazing architecture. Not only because of it's size (due to millions of users) but mostly due to its extensibility framework. Creating applications for Hi5, Facebook and MySpace is largely different and so far my experience has told me that facebook is most well implemented version possible!

Building a facebook from joomla.. HA, highly unortodox and an impossible task! But building a small community social engine that doesn't allow extensions, that could be done with such a tool!
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: PHP chat like Facebook

Post by jaoudestudios »

crazycoders wrote:Most people think facebook is pretty simple but it's an amazing architecture. Not only because of it's size (due to millions of users) but mostly due to its extensibility framework. Creating applications for Hi5, Facebook and MySpace is largely different and so far my experience has told me that facebook is most well implemented version possible!

Building a facebook from joomla.. HA, highly unortodox and an impossible task! But building a small community social engine that doesn't allow extensions, that could be done with such a tool!
Good example/explaination!
spider888
Forum Newbie
Posts: 7
Joined: Wed May 13, 2009 5:49 am

Re: PHP chat like Facebook

Post by spider888 »

crazycoders wrote:Building a facebook from joomla.. HA, highly unortodox and an impossible task! But building a small community social engine that doesn't allow extensions, that could be done with such a tool!
Yup, you're right. I'm not saying that I will build a facebook from joomla. All I'm pertaining to is its features like the profiling for users(Upload pics & videos, User accounts) which is the reason we will use JomSocial for that and the chat which is I'm currently working on.
Besides, we will be implementing this project in our section inside our organization. Probably, 300+ users.
Paul Arnold
Forum Contributor
Posts: 141
Joined: Fri Jun 13, 2008 10:09 am
Location: Newcastle Upon Tyne

Re: PHP chat like Facebook

Post by Paul Arnold »

Not sure if you'll check this but I found a link for you to create something similar.

http://www.webappers.com/2009/05/25/gma ... th-jquery/
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: PHP chat like Facebook

Post by mikemike »

If you want it like Facebook then just JavaScript won't suffice. For starters it stores all sorts of information about you in a database (not a cookie), such as past conversations, your friends (obviously), your preferences, your online/offline status. I also imagine it stores other users online/offline status too.

Personally I'd keep things simple to begin with. Just have some AJAX that posts to a database when you type something. Have the div above automatically populate with this database once every x seconds. You'll notice this is substancially slower than FB's implementation, I would then suggest coming up with a way of adding YOUR comments to the content div on post, rather than having to refresh the div, shouldn't be too difficult.

On the point of creating Facebook for £500, the whole idea of Facebook is that it's a Framework and platform for developers, not just a social networking tool.
Post Reply