Jump to content
xisto Community
Sign in to follow this  
TheDarkHacker

My Chat Program

Recommended Posts

I want to show you my new project,chatting.I am sorry because it is on Macedonian but the idea is that what i want to show you.

 

I haven't domain so i needed to use free-frame domain http://forums.xisto.com/no_longer_exists/ The script is working on this way:

 

1.First JavaScript need to use AJAX to connect with PHP.Then PHP checks how much chat is written.If there are more then 10 lines it starts new page,to prevent scrolling.

2.If PHP checks that there aren't 10 lines it shows everything what is stored in one file with the chatting history.

3.When you click on the button to write message JavaScripts send the username and message to PHP

4.PHP is storing the message to the file with history.

 

This project is open-source and you can see the script for ajax in the ajax.js file.Remember all that 200 lines aren't written by me,that 200 lines are to make AJAX working.Last lines,with comment //zapocnuvanje na chatot (starting chat) are written by me.The PHP script is not open-source and its hidden.If some user wants it,i will give him

Share this post


Link to post
Share on other sites

Why don't you give your chat programs URL ? Is it not hosted on any free server yet ? Try uploading it on some free hosting sites. We'll give you feedback if you give us URL of chat program. and almost forgot, welcome to TP17.

Share this post


Link to post
Share on other sites

Why don't you give your chat programs URL ? Is it not hosted on any free server yet ? Try uploading it on some free hosting sites. We'll give you feedback if you give us URL of chat program. and almost forgot, welcome to TP17.

You didn't see the link http://forums.xisto.com/no_longer_exists/ not read again :P

Share this post


Link to post
Share on other sites

I just tested your chat box. First thing is you haven't make good interface. you should make table or something to make a sofisticated interface and secondly you need to use pagination to show history after 10 posts. there are many ways for the pagination. the simplest way is use some classes widely available on different website.

Share this post


Link to post
Share on other sites

I just tested your chat box. First thing is you haven't make good interface. you should make table or something to make a sofisticated interface and secondly you need to use pagination to show history after 10 posts. there are many ways for the pagination. the simplest way is use some classes widely available on different website.

Sorry i removed that 5 php lines that make history dissapear.After you post i added the code and it works now...For the design i know.I am not good with that thing but i don't want to use free css html templates because my web-site will be the same like others with that template.This wasn't to show you my design skills it was to show you my php chat program.If somebody wants to give him the script i will add new features and admin panel.This was just a project to show that AJAX can make connection with PHP and that PHP chat can work without refreshing site,without forms submiting

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.