View Full Version : Shoutbox
Some portals like this have shoutboxes and was curious if one could be inserted on the frontpage. This way if you see people on the homepage, you can type them a message and it is kinda fun in a sense and interesting for the community. This might also cut out post whoring as little things meant for people that are seen on the forum at the same time can be on the shoutbox. I know there already is like IRC and now possibly jabber, but shoutboxes can be downloaded and used for free, it just has to be inserted into the code for the homepage. Just an idea!
ferret
05-11-2004, 03:24 PM
Good call, will consider. Should keep Shaft busy :P
unrequited
05-11-2004, 03:32 PM
I see it getting abused about 30 mins after going live, but sounds like a good idea.
TheShaft
05-11-2004, 03:34 PM
Good call, will consider. Should keep Shaft busy :P
damnit, what about my post count!?
LOL, you are up to 51 already? I think you have a pretty decent lead on everyone but the ferretster
ferret
05-11-2004, 03:36 PM
Yeah, and I post content
Spyder
05-11-2004, 03:36 PM
http://66.30.224.98/forum/notpostcount.gif
TheShaft
05-11-2004, 03:40 PM
Yeah, and I post content
Lies. I think you padded your numbers with a quick phpadmin hax!
Spyder
05-11-2004, 03:46 PM
i wrote my own php shoutbox a while ago. it was very basic, but it worked...
StealthMonkey
05-11-2004, 09:34 PM
i wrote my own php shoutbox a while ago. it was very basic, but it worked...
how hard is it
<?PHP
if(isset($_POST['shoutbox_text']) && !empty($_POST['shoutbox_text'])) {
mysql_query("INSERT into shoutbox VALUES('".$_POST['shoutbox_text']."'");
}
echo "<div style=\"width: 300px; height: 300px; overflow: auto;\"><table>";
$result = mysql_query(SELECT * FROM shoutbox);
while($row = mysql_fetch_array($result)) {
echo "<tr><td>".$row['shoutbox_text']."</td></td>";
}
echo "</table></div>";
echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"post\">
Shout: <input type=\"text\" name=\"shoutbox_text\" />
<input type=\"submit\" value=\"Shout!\" />
</form>":
?>
Done. 3 minutes :) Add some styles sheets and its gold :D Man I am so cool.
Spyder
05-11-2004, 09:38 PM
i concede my php king status to stealthmonkey :(
StealthMonkey
05-11-2004, 11:55 PM
i concede my php king status to stealthmonkey :(I am the best ever. I challenge anyone here to a PHP-off! Yay! I'm serious too.
AirFoam
05-11-2004, 11:58 PM
i dont know if you should be celebrating that youre the best coder =p
StealthMonkey
05-12-2004, 12:46 AM
i dont know if you should be celebrating that youre the best coder =pIt's my job. It's my major. Why shouldn't I? Being the best is awesome. You should try it sometime.
Spyder
05-12-2004, 12:48 AM
oooooooh
owned.
http://66.30.224.98/forum/owned-3catsown_001.gif
StealthMonkey
05-12-2004, 12:53 AM
ROFL :D :D :D
If someone posts something shoutbox and you are on the homepage, will it automatically reload when the other person posts?
StealthMonkey
05-13-2004, 01:46 AM
no.
steaLer
05-13-2004, 06:14 PM
Foam got slapped, but he's right though...i mean, come on!! it's coding.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.