EMFF 0.4 BBCode MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
7
88%
Very Good
0
No votes
Good
0
No votes
Fair
1
13%
Poor
0
No votes
 
Total votes: 8

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Sun Jul 22, 2007 5:58 pm

Hello,
test and try to understand the code!

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
azra
Registered User
Posts: 325
Joined: Thu Apr 12, 2007 8:06 pm

Re: EMFF 0.4 BBCode MOD

Post by azra » Sun Jul 29, 2007 10:37 pm

but can someone just tell me what file to do it in?
azra :D

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Sat Aug 04, 2007 6:14 pm


User avatar
azra
Registered User
Posts: 325
Joined: Thu Apr 12, 2007 8:06 pm

Re: EMFF 0.4 BBCode MOD

Post by azra » Mon Aug 06, 2007 2:03 am

Martin Truckenbrodt wrote:Hello,
http://www.phpbb.com/community/faq.php?mode=bbcode

Bye Martin
im really sorry :oops: but where on that page does it say which page to edit???
azra :D

User avatar
azra
Registered User
Posts: 325
Joined: Thu Apr 12, 2007 8:06 pm

Re: EMFF 0.4 BBCode MOD

Post by azra » Sat Dec 01, 2007 1:53 pm

Hi,

When I rollover the EMFF button, it doesnt show me a description underneath like the other ones do.
( [emff] url to mp3 file [/emff] ) how can I make it show that?

And how can I change it from [emff] and [/emff] to [mp3] and [/mp3]?
azra :D

xmguy
Registered User
Posts: 1
Joined: Mon Nov 26, 2007 2:41 am

Re: EMFF 0.4 BBCode MOD

Post by xmguy » Sun Dec 23, 2007 11:46 pm

I don't like that it can't be used in Firefox. :cry:

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Mon Dec 24, 2007 12:34 pm

Hello xmguy,
the Firefox Browser Add-On is installed and enabled?

Bye Martin
Last edited by Martin Truckenbrodt on Thu Dec 27, 2007 8:33 am, edited 2 times in total.
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Mon Dec 24, 2007 12:36 pm

azra wrote:Hi,

When I rollover the EMFF button, it doesnt show me a description underneath like the other ones do.
( [emff] url to mp3 file [/emff] ) how can I make it show that?

And how can I change it from [emff] and [/emff] to [mp3] and [/mp3]?
Hello,
please open the MOD install file in an editor and try to understand it. So you should be able to change it yourself.

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

Peter77sx
Registered User
Posts: 3253
Joined: Wed Nov 09, 2005 2:51 pm

Re: EMFF 0.4 BBCode MOD

Post by Peter77sx » Thu Dec 27, 2007 3:13 am

azra, you just have to replace every single instance of "emff" to "mp3" and it should work. Use something like notepad++ to help you search and replace keywords. ;)

skid5555
Registered User
Posts: 11
Joined: Mon Jan 22, 2007 6:20 pm

Re: EMFF 0.4 BBCode MOD

Post by skid5555 » Wed Jan 02, 2008 7:05 am

I'm not sure I should change every instance of emff to mp3 (or whatever). Does just one of the files change the actual button itself?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: EMFF 0.4 BBCode MOD

Post by RMcGirr83 » Wed Jan 02, 2008 5:58 pm

Here, try this..

Code: Select all

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
create a new folder called emff_mod into the phpBB root folder
Download EMFF 0.4 from http://sourceforge.net/project/showfiles.php?group_id=121753
Extract the swf files into the folder called emff_mod
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#
$EMBB_widths = array(''

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 array(''

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
,'50'

#
#-----[ FIND ]------------------------------------------
#
$EMBB_values = array(''

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$EMBB_values = array(''

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
,'MP3'

#
#-----[ FIND ]------------------------------------------
#
	$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#

	//Begin mp3 Mod
	$bbcode_tpl['mp3'] = str_replace('{URL}', '\\1', $bbcode_tpl['mp3']);
	//End mp3 Mod

#
#-----[ FIND ]------------------------------------------
#
	$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#

	//Begin MP3 Mod
	//[mp3 ]and[/mp3]code..
	$patterns[] = "#\[mp3:$uid\](.*?)\[/mp3:$uid\]#si";
	$replacements[] = $bbcode_tpl['mp3'];
	//End MP3 Mod

#
#-----[ FIND ]------------------------------------------
#
# Note, the find is much longer:
# 	$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);
#
	$text = preg_replace("#\[img\]((
#
#-----[ AFTER, ADD ]------------------------------------------
#

	//Begin MP3 Mod
	//[mp3]mp3_url_here[/mp3]
	$text = preg_replace("#\[mp3\](([a-z]+?)://([^, \n\r]+))\[\/mp3\]#si","[mp3:$uid\]\\1[/mp3:$uid]", $text);
	//End MP3 Mod

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the full line to look for is:
# $lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
$lang['bbcode_f_help'] =

#
#-----[ AFTER, ADD ]------------------------------------------
#

$lang['bbcode_help']['mp3'] = 'MP3: [mp3]url to mp3 file[/mp3] (alt+%s)';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</a><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------
#

<!-- BEGIN mp3 -->
<object data="emff_mod/emff_standard.swf" type="application/x-shockwave-flash" width="110" height="34" align="top">
	<param name="movie" value="emff_mod/emff_standard.swf" />
	<param name="FlashVars" value="src={URL}" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#ECECEC" />
</object>
<!-- END mp3 -->

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'[url]','[/url]'

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
,'[mp3]','[/mp3]'

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
BTW, Martin you have an error in your mod install...this

Code: Select all

	//Begin EMFF Mod
	//[emff ]and[/emff]code.. 
	$patterns[] = "#\[emff:$uid\](.*?)\[/emff:$uid\]#si"; 
	$replacements[] = $bbcode_tpl[emff];
	//End EMFF Mod
should be this
//Begin EMFF Mod
//[emff ]and[/emff]code..
$patterns[] = "#\[emff:$uid\](.*?)\[/emff:$uid\]#si";
$replacements[] = $bbcode_tpl['emff'];
//End EMFF Mod
Please to note the red part ;)
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Peter77sx
Registered User
Posts: 3253
Joined: Wed Nov 09, 2005 2:51 pm

Re: EMFF 0.4 BBCode MOD

Post by Peter77sx » Wed Jan 02, 2008 7:48 pm

What RMcGirr83 posted should be fine enough. I changed every instance of "emff" to "mp3" because I am stubrron that way. :)
skid5555 wrote:I'm not sure I should change every instance of emff to mp3 (or whatever). Does just one of the files change the actual button itself?

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Wed Jan 02, 2008 8:13 pm

RMcGirr83 wrote:
//Begin EMFF Mod
//[emff ]and[/emff]code..
$patterns[] = "#\[emff:$uid\](.*?)\[/emff:$uid\]#si";
$replacements[] = $bbcode_tpl['emff'];
//End EMFF Mod
Please to note the red part ;)
Hello,
thank's for the feedback. But I will nocht update the MOD cause Olympus is final. :)

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: EMFF 0.4 BBCode MOD

Post by RMcGirr83 » Wed Jan 02, 2008 8:37 pm

Martin Truckenbrodt wrote:
RMcGirr83 wrote:
//Begin EMFF Mod
//[emff ]and[/emff]code..
$patterns[] = "#\[emff:$uid\](.*?)\[/emff:$uid\]#si";
$replacements[] = $bbcode_tpl['emff'];
//End EMFF Mod
Please to note the red part ;)
Hello,
thank's for the feedback. But I will nocht update the MOD cause Olympus is final. :)

Bye Martin
What does Olympus (phpbb v 3) have to do with a phpbb v 2 mod?

If you won't update it, then perhaps you will allow me to take over this mod and I will.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: EMFF 0.4 BBCode MOD

Post by Martin Truckenbrodt » Thu Jan 03, 2008 3:38 pm

Hello RMcGirr83,
this MOD is validated. So I think the code should be okay in phpBB2 standards. So I'm not sure whther the single slashes are really needed.
I won't make minor updates for phpBB2 MODs. phpBB3 final is final. So now i'm working on phpBB3 MODs.
If you're sure the single quotes are really needed so I will make a update.

I've done a phpBB3 version of this MOD: http://martin-truckenbrodt.com/cgi/phpB ... m.php?f=11

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!

Post Reply

Return to “[2.0.x] MOD Database Releases”