MyBB Community Forums
First PR1 Mod :p - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: First PR1 Mod :p (/thread-22764.html)

Pages: 1 2


First PR1 Mod :p - Dale Hay - 2005-04-13

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


RE: First PR1 Mod :p - Alan Crisp - 2005-04-13

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


RE: First PR1 Mod :p - Dale Hay - 2005-04-13

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


RE: First PR1 Mod :p - Da Dude - 2005-04-13

and its not different from RC4 version Smile


RE: First PR1 Mod :p - decswxaqz - 2005-04-14

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.


RE: First PR1 Mod :p - Alan Crisp - 2005-04-14

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


RE: First PR1 Mod :p - Smethead - 2005-04-14

How can we rate that MOD if we can't test it??


RE: First PR1 Mod :p - ELY_M - 2005-04-15

I think it will work on RC4 Smile

just try it on RC4 Smile


RE: First PR1 Mod :p - Smethead - 2005-04-15

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);



RE: First PR1 Mod :p - ELY_M - 2005-05-04

I wonder if this will work in firefox?