PDA

View Full Version : Shoutbox Required



Drugs
08-08-2006, 04:57 PM
I am in need of a customisable shoutbox {Seperate CSS File If Possible} with an admin panel, and mod panel.. Or just commands for mods and admins..

The shoutbox needs to be like seperate, so i can put in include for the submit a shout form and another include for the actual list of shoutouts, it needs to have a user defined height with a scrollbar on it {The list of shoutouts} so i can include on my page..

If anyone can make one or tell me the URL to one i will be very greatful..

Thanks, Ryan..

ClubTime
08-08-2006, 05:01 PM
:) http://techtuts.com
http://myshoutbox.com

Drugs
08-08-2006, 05:02 PM
Nope & Nope...

Techtuts one isnt what i am looking for..

and myshoutbox no way.

ClubTime
08-08-2006, 05:05 PM
Yeah well i just thort id do my bit :)

ClubTime
08-08-2006, 05:23 PM
Sorry for double post, cant edit

try this:
http://www.zenomgt.com/forums/index.php?showtopic=1100

Drugs
08-08-2006, 05:36 PM
Urm i am no good at PHP really, can anyone set that up? If so, PM me :}

ADAM:
08-08-2006, 05:48 PM
Sorry for double post, cant edit

try this:
http://www.zenomgt.com/forums/index.php?showtopic=1100

That looks good,

Its very easy to set up. Copy and paste the code into a notepad and save them as what they are.


I am just telling him what to do.


Copy and paste this into notepad and save it as
addtag.php


<?php

// This gets the information from the form
$name = $_POST['name'];
$website = $_POST['website'];
$message = $_POST['message'];

// This takes the smiley code in the message and turns it into a smiley
$code = array(
'/:\)/',
'/:P/',
'/:D/'
);

$image = array(
'<img src="smileys/smile.gif">',
'<img src="smileys/razz.gif">',
'<img src="smileys/biggrin.gif">'
);
$formatted = preg_replace($code, $image, $message);

// Set up how it's going to be displayed.
$tag = ("<font size=\"2\" face=\"Arial\">
<a href=\"$website\" target=\"_blank\">$name</a>: $formatted
</font><br>");

// Gather the data currently in the file
$read = fopen("content.txt", "r");
$contents = fread($read, filesize('content.txt'));
fclose($read);

// Open the file and write the tag to it
$write = fopen("content.txt", "w");
fwrite($write, "$tag $contents");
fclose($write);

// Refresh!
print "<meta http-equiv=\"refresh\" content=\"0;shoutbox.php\">";

?>

Copy and paste this into notepad and save it as
shoutbox.php



<html>
<head>
<title>Shout box</title>
<link href="style.css" rel="STYLESHEET" type="TEXT/CSS" />
</head>
<body>

<iframe name="messages" src="content.php" marginwidth="1" marginheight="0" height="200"

width="200" border="0" frameborder="0"></iframe>
<FORM name="shout" action="addtag.php" method="POST">
Name:<br>
<INPUT TYPE="TEXT" name="name" size="20"><br>
Website:<br>
<INPUT TYPE="text" name="website" size="20" value="http://"><br>
Message:<br>
<TEXTAREA NAME="message" COLS=16 ROWS=2></TEXTAREA><br>
<br>
<INPUT TYPE="Submit" name="submit" value="Post IT!" size="20">
</FORM>

</body>
</html>

Copy and paste this into notepad and save it as
content.php


<html>
<head>
<link href="style.css" rel="STYLESHEET" type="TEXT/CSS" />
</head>
<body>
<?php include('content.txt'); ?>
</body>
</html>

Copy and paste this into notepad and save it as
content.txt

Leave content.txt as a blank file and when you upoad it to your Linux server chmod it to 777 so it over writes it self

When you want to add it to your site i would say use PHP include because they are much better.


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

If you like iframes use


<iframe name="shoutbox" src="shoutbox.php" marginwidth="1" marginheight="0" height="300" width="200" border="0" frameborder="0"></iframe>


If you still need help read through it and check if what you have done is right
http://www.zenomgt.com/forums/index.php?showtopic=1100

Edit: Sorry posted this at the same time as you posted your other thread.

Drugs
08-08-2006, 05:55 PM
Heh nevermind eh Adam it was very easy! And it works ;D

Want to hide these adverts? Register an account for free!