FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Shout Boxes, NO MySQL PLEASE





Zach Ownz
is there an easy to use shout box that doesnt need MySQL? please help, im trying to use it for my clan site...
mathiaus
I cant seem to find a working script out there which you can just download and upload. There are however sevral tutorials out there explaining and providing code how to create one yourself.

http://www.tutorialized.com/tutorial/Flat-file-Shoutbox/9119
http://www.teencoderz.com/forums2/articles.php?action=viewarticle&artid=26
boringest
you can use this:

http://www.tag-board.com/

just put a code in your website.
Zach Ownz
boringest wrote:
you can use this:

http://www.tag-board.com/

just put a code in your website.


yes, but that one costs money, or some add thing or something.

i might TRY to do a tutorial one... Shocked but im noob, and i know ill mess up...

if someone else would make one, and tell me how to put it into my site, i would pay some Frih$
clip
your site's at freewebs? i don't think that you can use those kind of stuff there. they don't offer any scripts (except for Javascript) there.

If I were you, I'd maka a shoutmix shoutbox. You just add the code on your site.

www.shoutmix.com <--- that's the site's URL. make an account and use it.
SamiTheBerber
Zach Ownz wrote:
is there an easy to use shout box that doesnt need MySQL? please help, im trying to use it for my clan site...

I have made my own shoutbox. You can download it in http://www.samisaada.frihost.net/downloads.php. Also newest version is on my sidebar, but it is not always stable. I only let stable version to download. I will soon finish version 1.2 and Admin Tool version 1.0. Versions 1.0 and 1.1 have no admin tool.
martindecorte
Why don't you want to use MySQL ? If it is because you don't know it, then I guess you'd better learn it seriously, even if you lose some time to learn it.
Matte52
Check http://www.hotscripts.com there you will find one i promisse you !
cafefort
IMHO, It's really easy:

Have a flat text file "shout.txt" with chmod 666
And a form which submits a name and a message to a script say
shout.php

the showt.php will be this way:

Code:
<?php

function readfromfile($file)
{
  $fh=fopen($file,'r');
  $content = fgets($fh,filesize($file));
  return($content);
}


function write2file($text,$file)
{
 $fh=fopen($file,'a+');
 $so = fputs($fh,$text);
 return($so);
}

//read the previous content
$previouscontent = readfromfile("shout.txt");

// add the new lines
$text2add=$_POST["name"]."says : ".$_POST["message"];
$newcontent=$previouscontent."\n".$text2add;

//write the new content to the file
write2file($newcontent,"shout.txt");

?>


the form will contain:

1) a textarea to show the content of the file
2) an input to contain the name
3) a textarea to contain the submitted message.
4) of course a button to submit it.

That's grosso modo a way to do it.

The script is not optimized (for educational purpose), it's up to you
to write the rest Wink

Hope this helps Smile

P.S. martindecorte is right: if you're "afraid" of mysql, believe me,
it's better to start! It's really worth it! Don't worry about backups, data
transfers, SQL querries, data integrity and other questions, all your worries have been studied before. You can trust million other folks Smile

P.P.S. That would be NICE if everybody brings his contribution to this modest script, so that it will be as usable us possible.
Related topics
Help ... Scripting PHP
PHP Tutorial: Basic Shoutbox w/ MySQL
a big challenge
PM Script
mysql gives the wrong result [solved]
Error connecting to mysql ; please help
Starting with PHP and going to place with no internet.
Chat software
plz check my site
Database transfer
Server Two MySQL Down
How can I log in to MySQL? Please help!
Need some tips
how to configure libraries for Hibernate?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.