Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > The Lounge > World Record Thread

 
 
Thread Tools Display Modes

 
Reply
Posted 2009-03-20, 07:44 PM in reply to Goodlookinguy's post starting "Dum, ditty dum, dum, dum. ..."
I love that episode of South Park!!!!
Old
Profile PM WWW Search
Wallow is an uncelestial body of massWallow is an uncelestial body of massWallow is an uncelestial body of mass
 
 
Wallow
 



 
Reply
Posted 2009-03-21, 05:56 PM in reply to Wallow's post starting "I love that episode of South Park!!!!"
Cripple fight!


KagomJack said:
My girth isn't anything to bitch and moan about in long, elaborate paragraphs.
Old
Profile PM WWW Search
JRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzJRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
JRwakebord
 



 
Reply
Posted 2009-03-21, 07:32 PM in reply to JRwakebord's post starting "Cripple fight!"
Damn it, they need to bring back games on the Window console and Gorgoth.

Code:
#include <iostream>
#include <string>
using namespace std;

int doGame();

int main() {
	doGame();
}

int doGame() {
	cout << "Worst Text Adventure Game Ever" << endl;
	cout << "Please select a character class number..." << endl;
	cout << "1)Fighter\n2)Wizard\n3)Cleric\n4)Thief\nEnter a number: ";
	
	int characterNum = 1;
	cin >> characterNum;

	int numHitPoints = 0;
	int numMagPoints = 0;
	string weaponName = "";
	string className = "";
	if (characterNum == 1) { /* Fighter */
		numHitPoints = 10;
		numMagPoints = 4;
		weaponName   = "Sword";
		className    = "Fighter";
	}
	else if (characterNum == 2) { /* Wizard */
		numHitPoints = 4;
		numMagPoints = 10;
		weaponName   = "Magic Staff";
		className    = "Wizard";
	}
	else if (characterNum == 3) { /* Cleric */
		numHitPoints = 7;
		numMagPoints = 7;
		weaponName   = "Magic Staff";
		className    = "Cleric";
	}
	else { /* Thief */
		numHitPoints = 8;
		numMagPoints = 6;
		weaponName   = "Short Sword";
		className    = "Thief";
	}
	cout << endl;
	cout << "Character Properties:\n";
	cout << "Class Name   = " << className << endl;
	cout << "Hit Points   = " << numHitPoints << endl;
	cout << "Magic Points = " << numMagPoints << endl;
	cout << "Weapon Name  = " << weaponName << endl;
	int monHP = 10;
	int monMP = 0;
	string monName = "Gorgoth";
	cout << "\nYou suddenly start a fight with " << monName << endl;
	while (numHitPoints > 0) {
		cout << monName << " takes 2 damage";
		numHitPoints -= 2;
		if (numHitPoints > 0) {
			cout << "\nYou have " << numHitPoints << "HP left";
			cout << "\nWhat do you want to do?\n1)Attack\n2)Magic Attack\n1 or 2? ";
			int yourAttack = 0;
			cin >> yourAttack;
			if (yourAttack == 2) {
				monHP -= 3;
				cout << "You took 3 damage from " << monName << endl;
				if (monHP > 0) {
					cout << monName << " now has " << monHP << "HP left" << endl;
				}
				else {
					cout << "You killed " << monName;
					exit(0);
				}
			}
			else {
				monHP -= 2;
				cout << "You took 3 damage from " << monName << endl;
				if (monHP > 0) {
					cout << monName << " now has " << monHP << "HP left" << endl;
				}
				else {
					cout << "You killed " << monName;
					exit(0);
				}
			}
		}
		else {
			cout << "\nYou have died...:(\n";
			exit(0);
		}
	}
}
 
Work List
疲れていますから 寝むってありますね。 むずかしいです。 また、ケーキ屋で ケーキを食べていました。

I've considered being a translator, but I dunno. It feels like a lot of work. If someone gets angry then I have to deal with it, you know? I'd rather just relax.

 
Speed Test
 
Favorite Anime/Manga
#01 Clannad ~After Story~
#02 Trigun {Maximum}
#03 Koi Kaze
#04 Berserk
#05 Outlaw Star
#06 Slayers
#07 Desert Punk
#08 Spirited Away
#09 Fullmetal Alchemist
#10 Shakugan no Shana
#11 Death Note
#12 FLCL
#13 Tokyo Magnitude 8.0
#14 Toradora
#15 Gunslinger Girl

 
Anime List
Old
Profile PM WWW Search
Goodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to be
 
 
Goodlookinguy
 



 
Reply
Posted 2009-03-22, 08:36 PM in reply to Goodlookinguy's post starting "Damn it, they need to bring back games..."
Ohh shit!

Old
Profile PM WWW Search
Wallow is an uncelestial body of massWallow is an uncelestial body of massWallow is an uncelestial body of mass
 
 
Wallow
 



 
Reply
Posted 2009-03-23, 10:37 AM in reply to Wallow's post starting "Ohh shit! ..."
Riot shield? Really?


KagomJack said:
My girth isn't anything to bitch and moan about in long, elaborate paragraphs.
Old
Profile PM WWW Search
JRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzJRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
JRwakebord
 



 
Reply
Posted 2009-03-23, 06:11 PM in reply to JRwakebord's post starting "Riot shield? Really?"
for a naked man? wtf.......
Old
Profile PM WWW Search
kyeruu is neither ape nor machine; has so far settled for the in-betweenkyeruu is neither ape nor machine; has so far settled for the in-between
 
 
kyeruu
 



 
Reply
Posted 2009-03-23, 06:12 PM in reply to kyeruu's post starting "for a naked man? wtf......."
i dont whanna know y they have the clubs out
Tim
I know you
said not to
deal w/ them
I didn't think
I'm lost and
I'm sorry
They Know
Run
Old
Profile PM WWW Search
jamer123 shouldn't have fed itjamer123 shouldn't have fed itjamer123 shouldn't have fed itjamer123 shouldn't have fed itjamer123 shouldn't have fed it
 
 
jamer123
 



 
Reply
Posted 2009-03-24, 06:37 PM in reply to jamer123's post starting "i dont whanna know y they have the..."
Castrate him, what else?
Old
Profile PM WWW Search
Wallow is an uncelestial body of massWallow is an uncelestial body of massWallow is an uncelestial body of mass
 
 
Wallow
 



 
Reply
Posted 2009-03-24, 09:28 PM in reply to Wallow's post starting "Castrate him, what else?"
Turn him into a eunuch!


KagomJack said:
My girth isn't anything to bitch and moan about in long, elaborate paragraphs.
Old
Profile PM WWW Search
JRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzJRwakebord enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
JRwakebord
 



 
Reply
Posted 2009-03-28, 01:06 AM in reply to Wallow's post starting "Castrate him, what else?"
*Takes out a Pistol. shoot someone with a Chainsaw.*
Skurai
Old
Profile PM WWW Search
Skurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Skurai
 



 
Reply
Posted 2009-04-22, 08:57 PM in reply to Skurai's post starting "*Takes out a Pistol. shoot someone with..."
Falcon Bump!
Falcon Lunch!!
Skurai
Old
Profile PM WWW Search
Skurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Skurai
 



 
Reply
Posted 2009-05-10, 04:59 AM in reply to Skurai's post starting "Falcon Bump! Falcon Lunch!!"
futurism!
The empire never began.
Old
Profile PM WWW Search
Synthfrisyr is neither ape nor machine; has so far settled for the in-betweenSynthfrisyr is neither ape nor machine; has so far settled for the in-between
 
 
Synthfrisyr
 



 
Reply
Posted 2009-05-10, 02:40 PM in reply to Synthfrisyr's post starting "futurism!"
Synthfrisyr said: [Goto]
futurism!
This Is Madness!

Madness.....

This
Is
SPARTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Skurai
Old
Profile PM WWW Search
Skurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Skurai
 



 
Reply
Posted 2009-05-11, 06:13 AM in reply to Skurai's post starting "This Is Madness! Madness..... ..."
'a' attack.
Old
Profile PM WWW Search
Sum Yung Guy seldom sees opportunities until they cease to beSum Yung Guy seldom sees opportunities until they cease to beSum Yung Guy seldom sees opportunities until they cease to beSum Yung Guy seldom sees opportunities until they cease to be
 
 
Sum Yung Guy
 



 
Reply
Posted 2009-05-13, 01:03 AM in reply to Sum Yung Guy's post starting "'a' attack."









































 
Work List
疲れていますから 寝むってありますね。 むずかしいです。 また、ケーキ屋で ケーキを食べていました。

I've considered being a translator, but I dunno. It feels like a lot of work. If someone gets angry then I have to deal with it, you know? I'd rather just relax.

 
Speed Test
 
Favorite Anime/Manga
#01 Clannad ~After Story~
#02 Trigun {Maximum}
#03 Koi Kaze
#04 Berserk
#05 Outlaw Star
#06 Slayers
#07 Desert Punk
#08 Spirited Away
#09 Fullmetal Alchemist
#10 Shakugan no Shana
#11 Death Note
#12 FLCL
#13 Tokyo Magnitude 8.0
#14 Toradora
#15 Gunslinger Girl

 
Anime List
Old
Profile PM WWW Search
Goodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to be
 
 
Goodlookinguy
 



 
Reply
Posted 2009-05-13, 01:06 AM in reply to Goodlookinguy's post starting "http://dump.nrgs.org/ext/longcat.bmp..."
---------------DA!-----------------












































-----------BA!-----------
 
Work List
疲れていますから 寝むってありますね。 むずかしいです。 また、ケーキ屋で ケーキを食べていました。

I've considered being a translator, but I dunno. It feels like a lot of work. If someone gets angry then I have to deal with it, you know? I'd rather just relax.

 
Speed Test
 
Favorite Anime/Manga
#01 Clannad ~After Story~
#02 Trigun {Maximum}
#03 Koi Kaze
#04 Berserk
#05 Outlaw Star
#06 Slayers
#07 Desert Punk
#08 Spirited Away
#09 Fullmetal Alchemist
#10 Shakugan no Shana
#11 Death Note
#12 FLCL
#13 Tokyo Magnitude 8.0
#14 Toradora
#15 Gunslinger Girl

 
Anime List
Old
Profile PM WWW Search
Goodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to be
 
 
Goodlookinguy
 



 
Reply
Posted 2009-05-13, 01:08 AM in reply to Skurai's post starting "This Is Madness! Madness..... ..."
Skurai said: [Goto]
This Is Madness!

Madness.....

This
Is
SPARTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA











































SUCK ON IT! Did ye have fun scrollin'?
 
Work List
疲れていますから 寝むってありますね。 むずかしいです。 また、ケーキ屋で ケーキを食べていました。

I've considered being a translator, but I dunno. It feels like a lot of work. If someone gets angry then I have to deal with it, you know? I'd rather just relax.

 
Speed Test
 
Favorite Anime/Manga
#01 Clannad ~After Story~
#02 Trigun {Maximum}
#03 Koi Kaze
#04 Berserk
#05 Outlaw Star
#06 Slayers
#07 Desert Punk
#08 Spirited Away
#09 Fullmetal Alchemist
#10 Shakugan no Shana
#11 Death Note
#12 FLCL
#13 Tokyo Magnitude 8.0
#14 Toradora
#15 Gunslinger Girl

 
Anime List
Old
Profile PM WWW Search
Goodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to be
 
 
Goodlookinguy
 



 
Reply
Posted 2009-05-13, 05:42 PM in reply to Goodlookinguy's post starting "http://dump.nrgs.org/ext/longcat.bmp..."
Goodlookinguy said: [Goto]









































Lol. No.
Skurai
Old
Profile PM WWW Search
Skurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Skurai
 



 
Reply
Posted 2009-05-13, 05:43 PM in reply to Skurai's post starting "Lol. No."
Skurai said: [Goto]
Lol. No.
Lol, Fail quote!
Skurai
Old
Profile PM WWW Search
Skurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darknessSkurai has an imagination enthroned in its own recess, incomprehensible as from darkness
 
 
Skurai
 



 
Reply
Posted 2009-05-16, 01:11 AM in reply to Skurai's post starting "Lol, Fail quote!"
Code:
public static function bbcode($str) {
	// Optionally, do this to break up words longer than 20 characters (without breaking code)
	// $str = preg_replace("/(([^\(\)\{\}\[\]_]\S){20})/","$1 ",$str);
	// Make sure htmlentities has been run through the text and that
	// $str = preg_replace("/(\r|\n)/","<br />",$str); // has been run through
	//-----------------------------------------
	// This is part of NRG's A3 PHP Framework
	// Do not redistribute, it is strictly forbidden by the license.
	$x = 0;
	$noparse = array();
	while (preg_match("/\[noparse\](.*)\[\/noparse\]/",$str)) {
		$noparse[$x] = preg_replace("/(.*?)\[noparse\](.*?)\[\/noparse\](.*)/","$2",$str);
		$str = preg_replace("/(.*?)\[noparse\](.*?)\[\/noparse\](.*)/","$1<PARSECODE_".$x.">$3",$str);
		$x += 1;
	}
	for ($x=0;$x<count($noparse);$x++) {
		$noparse[$x] = str_replace(array(":","[","]"),array(":","[","]"),$noparse[$x]);
		$str = str_replace("<PARSECODE_".$x.">",$noparse[$x],$str);
	}
	$codes = array();
	$codes[0] = "[b]param[/b]";
	$codes[1] = "[i]param[/i]";
	$codes[2] = "[u]param[/u]";
	$codes[3] = "[a]param[/a]";
	$codes[4] = "[a=param]param[/a]";
	$codes[5] = "[a,param]param[/a]"; // This is not necessary
	$codes[6] = "[s]param[/s]";
	$codes[7] = "[subscript]param[/subscript]";
	$codes[8] = "[superscript]param[/superscript]";
	$codes[9] = "[image]param[/image]";
	$codes[10] = "[code]param[/code]";
	$codes[11] = ":smile:";
	$codes[12] = ":sad:";
	
	$replw = array();
	$replw[0] = "<b>param1</b>";
	$replw[1] = "<i>param1</i>";
	$replw[2] = "<u>param1</u>";
	$replw[3] = "<a href=''param1'' rel=''nofollow''>param1</a>";
	$replw[4] = "<a href=''param1'' rel=''nofollow''>param2</a>";
	$replw[5] = "<a href=''param2'' class=''param1''>param2</a>";
	$replw[6] = "<s>param1</s>";
	$replw[7] = "<sub>param1</sub>";
	$replw[8] = "<sup>param1</sup>";
	$replw[9] = "<image src=''param1'' alt='''' />";
	$replw[10] = "<div class=''bb_code''>param1</div>";
	$replw[11] = "<image src=''img/smilies/smile.gif'' alt='''' />";
	$replw[12] = "<image src=''img/smilies/sad.gif'' alt='''' />";

	for ($x = 0; $x < count($codes); $x++) {
		$codes[$x] = preg_replace("/(\[|\]|\/)/","\\ $1",$codes[$x]);
		$codes[$x] = preg_replace("/\s/","",$codes[$x]);
		$codes[$x] = preg_replace(array("/\A/","/\z/"),array("/","/"),$codes[$x]);
		$codes[$x] = str_replace("param","(.*?)",$codes[$x]);
		$replw[$x] = str_replace("''","\"",$replw[$x]);
		$replw[$x] = str_replace("param","$",$replw[$x]);
	}
	$str = preg_replace($codes,$replw,$str);
	return $str;
}
This is a neat little function I made for my php A3 framework. Get rid of "public static" if you want to use this as a function. Normally it's inside my framework class.

Oh, and none of this is copied from anywhere. I designed this 2-days ago on my own. So taking it without credit, is strictly forbidden since my framework costs money.

------------------------------

As a test, I wrote this.

Framework Version
<?php
require("framework/a3.framework.php");
$str = ":smile::smile:BOLD[b]BOLD[/b] Hello [i][b]Hello[/b][/i]";
echo a3::bbcode($str);
?>

This version
<?php
// Put code above here right here (of course without "public static")
$str = ":smile::smile:BOLD[b]BOLD[/b] Hello [i][b]Hello[/b][/i]";
echo bbcode($str);
?>

I like posting code crap here. Eat it up! Rate it. Byte me.

Only problem I see, is stacking noparse will break noparse.

Edit: 
Oh, I just found out that it also breaks Jelsoft's bb code system. How wonderful, I win! That means that apparently no one else has really come up with any other means of pulling that off. The way I did it is probably fairly similar to this boards way of doing it.


Outcome
:smile::smile:BOLD[b]BOLD[/b] Hello [i][b]Hello[/b][/i]
 
Work List
疲れていますから 寝むってありますね。 むずかしいです。 また、ケーキ屋で ケーキを食べていました。

I've considered being a translator, but I dunno. It feels like a lot of work. If someone gets angry then I have to deal with it, you know? I'd rather just relax.

 
Speed Test
 
Favorite Anime/Manga
#01 Clannad ~After Story~
#02 Trigun {Maximum}
#03 Koi Kaze
#04 Berserk
#05 Outlaw Star
#06 Slayers
#07 Desert Punk
#08 Spirited Away
#09 Fullmetal Alchemist
#10 Shakugan no Shana
#11 Death Note
#12 FLCL
#13 Tokyo Magnitude 8.0
#14 Toradora
#15 Gunslinger Girl

 
Anime List

Last edited by Goodlookinguy; 2009-05-16 at 01:30 AM.
Old
Profile PM WWW Search
Goodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to beGoodlookinguy seldom sees opportunities until they cease to be
 
 
Goodlookinguy
 
 

Bookmarks

Tags
fun, randomness, spam

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 142 (0 members and 142 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:40 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.