MyBB Community Forums

Full Version: First PR1 Mod :p
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
He he! I claim the first PR1 mod :p

He he, open inc/functions_post.php and find (Approx Line 50):
"#\[align=(left|center|right|justify)\](.*?)\[/align\]#si");
Add replace it with:
"#\[align=(left|center|right|justify)\](.*?)\[/align\]#si",

					 // Dales Custom BB Codes :p
					 "#\[glow=(.*?)\](.*?)\[/glow\]#si",
					 "#\[shadow=(.*?)\](.*?)\[/shadow\]#si",
					 "#\[fliph\](.*?)\[/fliph\]#si",
					 "#\[flipv\](.*?)\[/flipv\]#si",
					 "#\[invert\](.*?)\[/invert\]#si",
					 "#\[xray\](.*?)\[/xray\]#si",
					 "#\[icq\](.*?)\[/icq\]#si",
					 "#\[window\](.*?)\[/window\]#si",
					 "#\[blur=(.*?)\](.*?)\[/blur\]#si",
					 "#\[swf\](.*?)\[/swf\]#si");
Now go down a few lines and find:
"<p align="$1">$2</p>");
And replace it with:
"<p align="$1">$2</p>",

					// Dales Custom BB Codes :p
					"<table style="filter:glow(color=$1, strength=4)">$2</table>",
					"<table style="filter:shadow(color=$1, direction=225)">$2</table>",
					"<table style="filter:flipH">$1</table>",
					"<table style="filter:flipV">$1</table>",
					"<table style="filter:invert">$1</table>",
					"<table style="filter:xray">$1</table>",
					"<a href="http://wwp.icq.com/scripts/search.dll?to=$1">$1<img src="http://wwp.icq.com/scripts/online.dll?icq=$1&img=5" border=0></a>",
					"<iframe name="window" style="border:0" width=600 height=400 src="$1"></iframe>",
					"<table style="filter:blur(Add=0, direction=45, strength=$1)">$2</table>",
					"<embed src=$1 width=400 height=300 type=application/x-shockwave-flash></embed>");

Save and upload!

Enjoy!

Demo
That's great Dale, it's just a shame that a lot of people here wont have access to PR1 yet. Toungue
musicalmidget Wrote:That's great Dale, it's just a shame that a lot of people here wont have access to PR1 yet. Toungue


True, oh well its a mod for BETA testers then :p
and its not different from RC4 version Smile
Da Dude Wrote:and its not different from RC4 version Smile

pwned? :d
Most mods that use their own files will not be effected much by gold I think. Only thing like making admin nav bar and permissions will change.
decswxaqz Wrote:Most mods that use their own files will not be effected much by gold I think.

That's correct. The expansion module system I'd been working on for RC4 works perfectly with Gold without any modifications, making my life a lot easier. :p
How can we rate that MOD if we can't test it??
I think it will work on RC4 Smile

just try it on RC4 Smile
No, the system has changed. In this new one for Gold the tags are above the replacement:
Dale Wrote:Now go down a few lines and find:

In RC4 (and earlier), the tags are next to the replacement, like
$message = preg_replace("#\[gallery=(.*?)\]#ei", "gallery("$1")", $message);
I wonder if this will work in firefox?

Pages: 1 2