Jump to content
xisto Community
Sign in to follow this  
BOAW

Center Shoutoutbox

Recommended Posts

Where can i find an easy reliable shoutout box that i can install and center in my site?? i ight just use the shoutoutbox becuase of the lack of use in our my forums...i almost find it to b useless since it is not used often...i figure that poeple are jsut lazy to use it so i think setting up the shoutbox would be most useful than my forums heh

Share this post


Link to post
Share on other sites

Well, you could set up a flat file shout box. Here is a flate file shout box i wrote a while back.

1. Save this file as index.html

<html><head><title>Shout Box</title></head><body><center><form method="post" action="post.php"><iframe src="shouts.html" scrolling="auto"></iframe><br /><input type="text"  name="name" value="Name" onfocus="if(this.value=='Name'){this.value=''}" onblur="if(this.value==''){this.value='Name'}" /><br /><input type="text" name="message" value="Message" onfocus="if(this.value=='Message'){this.value=''}" onblur="if(this.value==''){this.value='Message'}" /><br /><input type="submit" name="post" value="Post Comment" /></form></center></body></html>

2. Save a blank file as shouts.html and CHMOD the file to 777.

3. Save this file as post.php
<?phpif (isset($_POST['name']) && isset($_POST['message'])) {if ($_POST['name'] != 'Name') {if ($_POST['message'] != 'Message') {$name = str_replace(';', '.', $_POST['name']);$message = str_replace(';', '.', $_POST['message']);if (@file_exists('shouts.html')) {if (@is_writable('shouts.html')) {$fp = @fopen('shouts.html', 'a+');if (!@fputs($fp, stripslashes('<br><font color="red">' . $name . ',</font><font color="#000000"> ' . $message . '</font>'))) {echo 'Could not write to text, please set the permissions right.';} else {header('Location: index.html');}} else {if (@chmod('shouts.html', 777)) {$fp = @fopen('shouts.html', 'a+');if (!@fputs($fp, stripslashes(';' . $name . ', ' . $message))) {echo 'Could not write to shouts.html, please set the permissions right.';} else {header('Location: index.html');}} else {echo 'shouts.html is not writable, we attempted to CHMOD it to 777 and it failed, please manually CHMOD shouts.html to 777.';}}} else {echo 'Could not locate file: shouts.html';}} else {echo 'You must enter a message.';}} else {echo 'You must enter your name.';}} else {echo 'You must fill in both form fields.';}?>


And there you go.

Share this post


Link to post
Share on other sites

well if you don't want to program your own here are soem sites where you can get your own shoutbox already set up.

http://saybox.co.uk/
http://forums.xisto.com/no_longer_exists/

but their are some scripts as well including the one eddys showed in the previous post.

Share this post


Link to post
Share on other sites

thanks =) ill try the code out...but isnt the code supposed to b a block thing? because i used to have a shoutbox for my php site and installed the shoutbox block and i just had to center it...i believe i downloaded it from a site thou...not sure what it was to get it backand by the way i dont understand this step"2. Save a blank file as shouts.html and CHMOD the file to 777."please clarify this for me..

Share this post


Link to post
Share on other sites

and by the way i dont understand this step
"2. Save a blank file as shouts.html and CHMOD the file to 777."

please clarify this for me..


Hi there, Chmod's are confusing at first, but once you get to know them, they're nice.

When you chmod a particular file, you are setting the permissions for the other pages/users. This determines whether or not they can view the file or whether they can make modifications to files (Write).

777 is the permissions allowing users and other pages to execute, run and write on the file the permission is assigned to. What you need to do, is set 777 to this html file once created.

To do this, on an ftp client (such as Cute FTP or Smart FTP), you can right click on the file, and then click on 'properties / CHMOD'. Alternatively, you should be able to access the properties or Chmod menu from one of the menus along the top (where file, window, help etc is located). On my machine, it's under command.

Hope this helps :(

Share this post


Link to post
Share on other sites
Cool answerCenter Shoutoutbox

The code above workd well with a few modifications for colors and size. I could implement it at Adoremosunidos.Com in the chat feature. Thank you!

-reply by nadie4ever

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.