"Who is online" script for Ajax chat (can be integrated universally) - Printable Version +- Makestation (https://makestation.net) +-- Forum: Technical Arts (https://makestation.net/forumdisplay.php?fid=45) +--- Forum: Software (https://makestation.net/forumdisplay.php?fid=104) +--- Thread: "Who is online" script for Ajax chat (can be integrated universally) (/showthread.php?tid=431) |
"Who is online" script for Ajax chat (can be integrated universally) - Darth-Apple - August 30th, 2013 This is a very simple script that generates a list of users online in Ajax Chat, and it can be integrated with your website easily using an iframe. You can use notepad++ to paste this into a file named online.php, or you can alternatively download the attached file. You will need to manually configure the database connection settings (on line 2 of the script) but other than that it should work without any need for changes. It also puts the user's username in italics if [Away] is found in the username, which is designed to make it compatible with "AFK" command modifications. You can modify this as needed. Code: <?php I have set this up to be integrated on the index using an iframe at several websites. You can use something like this to integrate this script into any place on your forum or website. Modify this as needed. Code: <iframe style="display:inline;" src="http://example.com/chat/online.php" height="44px" marginheight="1px" frameborder="0" width="550px" scrolling="auto" seamless>Live Chat <a href="http://example.com/online.php">click here to see who is online. </a></iframe> |