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
https://forums.phpfreaks.com/topic/83791-how-would-i-go-about-creating-this/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.