WebScript using ajax/php/js to LiveUpdate v0.2
Easy to setup, no database required. Upload via FTP and you're away.
Updates
v0.1
I still cant believe this is like from a year ago and barely anyone posted on it despite it being a cool script... Anyways, compact version: outdated link removed, will readd when i can - Lots of stuff removed, i.e. the posting of images, and then table width at 100% so whereever it goes, it will try to fill up the space, even if its as narrow as a sidebar, or even if it was horizontal live updates, would be perfect. :)
Yeah, http://dreamphreak.com
Replaced my website with it since i needed a redesign anyways. :p
Just my own personal website anyways, no one visits me, and i just have it mainly for testing other coding projects in the background
Been messing around with this all day lol, its really fun.
Suggestion one: Add pages somehow? Or perhaps an option to enable pages or just all on one page.
Suggestion two: Messed around with a youtube video embedder, but doesnt work because of the auto-refresh, so i think i might just have to throw this one out the window:
function bb2html($str) {
$patterns = array( "/\[link\](.*?)\[\/link\]/", "/\[url\](.*?)\[\/url\]/", "/\[b\](.*?)\[\/b\]/", "/\[u\](.*?)\[\/u\]/", "/\[s\](.*?)\[\/s\]/", "/\[i\](.*?)\[\/i\]/", "/\[center\](.*?)\[\/center\]/", "/\[scroll\](.*?)\[\/scroll\]/", "/\[yt\](.*?)\[\/yt\]/");
$replacements = array( "<a href=\"\\1\" target=\"_blank\">\\1</a>", "<a href=\"\\1\" target=\"_blank\">\\1</a>", "<strong>\\1</strong>", "<u>\\1</u>", "<s>\\1</s>", "<i>\\1</i>", "<center>\\1</center>", "<marquee behavior=\"scroll\" direction=\"left\">\\1</marquee>", "<object width=\"480\" height=\"360\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"480\" height=\"360\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed></object>");
which works by just putting the video id between the tags, like [yt]QV8eiSA4vqc[/yt].
function bbc2html($str) {
$patterns = array( "/\[link\](.*?)\[\/link\]/", "/\[url\](.*?)\[\/url\]/", "/\[b\](.*?)\[\/b\]/", "/\[u\](.*?)\[\/u\]/", "/\[s\](.*?)\[\/s\]/", "/\[i\](.*?)\[\/i\]/", "/\[center\](.*?)\[\/center\]/", "/\[scroll\](.*?)\[\/scroll\]/");
$replacements = array( "<a href=\"\\1\">\\1</a>", "<a href=\"\\1\">\\1</a>", "<strong>\\1</strong>", "<u>\\1</u>", "<s>\\1</s>", "<i>\\1</i>", "<center>\\1</center>", "<marquee behavior=\"scroll\" direction=\"left\">\\1</marquee>");
$str = preg_replace($patterns,$replacements, $str);
return stripslashes($str);
}
bbc2html($str);
k thnx