Jump to content

How would I go about creating this?


Legendary

Recommended Posts

Ok, on my site, every user has a profile. I want them to be able to allow a Live Chat button to show up on there profile, that will look like this :

 

<a href="chat/main.php?userID=(userid)"><img src="images/livechat.png" border="0"></a>

 

userid is what number user they are.

 

So when they click that image, it will notify the other user that someone wants to chat with them, and if they accept, it will open a private Live chat with them, and the other person. If they are already in a chat, show a Please hold, already in use message, and the person who put the button there, can have admin features such as Ban from his/her chat.

 

How can I make this?

Link to comment
Share on other sites

Ok, but the person would still need notifying. I'd say have something included in each page like

 

<php include('notify.php'); ?>

 

Then notify.php would have the script which would do something like open a pop-up window if there was someone wanting to start chat.

 

Sam

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.