[stream] audio bbcode mod redevlopment

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Questions
Registered User
Posts: 705
Joined: Mon Sep 30, 2002 11:06 pm
Location: Cyberspace Learning: PHP & MySQL
Contact:

Post by Questions » Fri May 30, 2003 6:45 pm

@baselineace.....

it has't to go like this.....

[stream]http://www.mymusic.com/files/blank.mp3[/stream]
I will Install MODs to your forum, or install a fresh phpBB 2.0.10 to your host for reasonable prices.
Contact me via AIM @: Gam LDub


(Please note: I use paypal as my money transaction, so before you contact me to do any work to your site, make sure you have one. Thank you.)

Questions
Registered User
Posts: 705
Joined: Mon Sep 30, 2002 11:06 pm
Location: Cyberspace Learning: PHP & MySQL
Contact:

Re: [stream] audio bbcode mod redevlopment

Post by Questions » Fri May 30, 2003 7:02 pm

Davidls wrote: //[ stream ]and[ /stream ]



Instead of the [stream] having a space between the [ and the s take that away....so it should look like this

[stream] instead of [ stream ]

do the same through out this mod...

[/stream] instead of [ /stream ]


that might help some of you!!!
I will Install MODs to your forum, or install a fresh phpBB 2.0.10 to your host for reasonable prices.
Contact me via AIM @: Gam LDub


(Please note: I use paypal as my money transaction, so before you contact me to do any work to your site, make sure you have one. Thank you.)

baselineace
Registered User
Posts: 177
Joined: Sat Oct 05, 2002 2:46 pm
Contact:

Post by baselineace » Fri May 30, 2003 10:28 pm

I didn't put a space.

TommY2Hot4U
Registered User
Posts: 55
Joined: Sat Jul 20, 2002 8:41 pm
Contact:

Post by TommY2Hot4U » Sat May 31, 2003 2:32 am

in case whoever wanna use it for real audio use this code instead

Code: Select all

<OBJECT

 ID=video1

 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"

 HEIGHT=40 WIDTH=275>

<PARAM NAME="controls" VALUE="ControlPanel">

<PARAM NAME="console" VALUE="Clip1">

<PARAM NAME="autostart" VALUE="true">

<PARAM NAME="src" VALUE="{URL}">

<EMBED SRC="{url}" type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ControlPanel"

 HEIGHT=40 WIDTH=275 AUTOSTART=true>

</OBJECT>
e:) i got my board to work..thanks very much
TommY

Alienz
Registered User
Posts: 53
Joined: Thu Mar 13, 2003 12:16 am

Post by Alienz » Sat May 31, 2003 12:46 pm

I getting it work but I need to type the [stream] and [/stream] manually. How can I add a button that show the same as the URL and Img ?

User avatar
god49
Registered User
Posts: 186
Joined: Fri Nov 08, 2002 2:57 pm

Post by god49 » Sat May 31, 2003 1:29 pm

I have the code for that one:

Code: Select all

 open bbcode.php

find:

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);

after that add:

$bbcode_tpl['stream'] = str_replace('{URL}', '\\1', $bbcode_tpl['stream']); 

find:

// [email]user@domain.tld[/email] code..
	$patterns[] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
	$replacements[] = $bbcode_tpl['email'];

after that add:

//[ stream ]and[ /stream ]for streaming audio. 
   $patterns[6] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si"; 
   $replacements[6] = $bbcode_tpl['stream']; 

find:

// [img]image_url_here[/img] code..
	$text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);

after that add:

//[ stream]image_url_here[/stream ]code.. 
   $text = preg_replace("#\[stream\](([a-z]+?)://([^, \n\r]+))\[/stream\]#si", "[stream:$uid]\\1[/stream:$uid]", $text); 

open posting.php

find:

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

after that add:

'L_BBCODE_Z_HELP' => $lang['bbcode_z_help'], 


open bbcode.tpl

find:

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->

after that add:

<!-- BEGIN stream --><object id="wmp" width=300 height=70 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" 
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> 
<param name="FileName" value="{URL}"> 
<param name="ShowControls" value="1"> 
<param name="ShowDisplay" value="0"> 
<param name="ShowStatusBar" value="0"> 
<param name="AutoSize" value="1"> 
<param name="autoplay" value="0"> 
<embed type="application/x-mplayer2" 
pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" 
src="{URL}" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 autoplay=0 visible=1 animationatstart=0 transparentatstart=1 loop=0 height=70 width=300> 
</embed> 
</object><!-- END stream --> 

open posting body.tpl

find:

f_help = "{L_BBCODE_F_HELP}";

after that add:

z_help = "{L_BBCODE_Z_HELP}";

find:

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','');

in line find [/url]

after that add:

,'[stream]','[/stream]'

find:

<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>


after that add:

<td><span class="genmed">
<input type="button" class="button" accesskey="z" name="addbbcode22" value="Stream" style="width: 50px" onClick="bbstyle(18)" onMouseOver="helpline('z')" />
</span></td>


save and close all files[/code]

actually that is the entire code I use

Alienz
Registered User
Posts: 53
Joined: Thu Mar 13, 2003 12:16 am

Post by Alienz » Sat May 31, 2003 1:42 pm

Thanks god49

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Post by Wicher » Sat May 31, 2003 7:28 pm

He God,

thanks 2, i was looking for that also.

great.

Wicher.

checksum123
Registered User
Posts: 8
Joined: Sat Jun 07, 2003 6:54 am

Post by checksum123 » Sat Jun 07, 2003 6:58 am

Does anybody knows if the player is compatible with windows player series 9? Because i just upgraded to WMP 9 , and I dont see the player anymore in my posts.

WL
Registered User
Posts: 30
Joined: Wed Oct 30, 2002 10:15 am

Post by WL » Mon Jul 28, 2003 3:05 pm

checksum123 wrote: Does anybody knows if the player is compatible with windows player series 9? Because i just upgraded to WMP 9 , and I dont see the player anymore in my posts.
Yeah i would like to know the same

angus203
Registered User
Posts: 20
Joined: Sun Aug 03, 2003 4:44 am
Contact:

Post by angus203 » Wed Aug 06, 2003 6:27 am

how to do control width & height??
same flash mod

chrisobrien
Registered User
Posts: 15
Joined: Sun Jul 07, 2002 3:30 pm

Post by chrisobrien » Tue Sep 09, 2003 10:48 pm

installed this, the controls are there, it opens the file then it just doesnt play never mind stream any ideas ?

McLR
Registered User
Posts: 95
Joined: Thu Aug 21, 2003 12:51 pm

Post by McLR » Fri Sep 12, 2003 9:16 pm

i installed this on 2.0.6
works ok but the buttons on player is unavalible :?
only the volume avalible
:oops:
what i need to do ?

mister iks
Registered User
Posts: 30
Joined: Fri Oct 04, 2002 2:01 pm

Post by mister iks » Wed Oct 29, 2003 6:44 pm

Is quicktime movie streaming possible on this one?

:?:

kaos1984
Registered User
Posts: 314
Joined: Mon Jun 30, 2003 11:02 am

Post by kaos1984 » Thu Nov 20, 2003 12:24 pm

[quote="god49"]I have the code for that one:

Code: Select all

 open bbcode.php

find:

$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);

after that add:

$bbcode_tpl['stream'] = str_replace('{URL}', '\\1', $bbcode_tpl['stream']); 

find:



// [email]user@domain.tld[/email] code..
	$patterns[] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
	$replacements[] = $bbcode_tpl['email'];

after that add:

//[ stream ]and[ /stream ]for streaming audio. 
   $patterns[6] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si"; 
   $replacements[6] = $bbcode_tpl['stream']; 

find:

// [img]image_url_here[/img] code..
	$text = preg_replace("#\[img\]((ht|f)tp://)([^\r\n\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text);

after that add:

//[ stream]image_url_here[/stream ]code.. 
   $text = preg_replace("#\[stream\](([a-z]+?)://([^, \n\r]+))\[/stream\]#si", "[stream:$uid]\\1[/stream:$uid]", $text); 

open posting.php

find:

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],

after that add:

'L_BBCODE_Z_HELP' => $lang['bbcode_z_help'], 


open bbcode.tpl

find:

<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->

after that add:

<!-- BEGIN stream --><object id="wmp" width=300 height=70 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" 
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" 
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> 
<param name="FileName" value="{URL}"> 
<param name="ShowControls" value="1"> 
<param name="ShowDisplay" value="0"> 
<param name="ShowStatusBar" value="0"> 
<param name="AutoSize" value="1"> 
<param name="autoplay" value="0"> 
<embed type="application/x-mplayer2" 
pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" 
src="{URL}" name=MediaPlayer2 showcontrols=1 showdisplay=0 showstatusbar=1 autosize=1 autoplay=0 visible=1 animationatstart=0 transparentatstart=1 loop=0 height=70 width=300> 
</embed> 
</object><!-- END stream --> 

open posting body.tpl

find:

f_help = "{L_BBCODE_F_HELP}";

after that add:

z_help = "{L_BBCODE_Z_HELP}";

find:

bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','');

in line find [/url]

after that add:

,'[stream]','[/stream]'

find:

<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>


after that add:

[quote]<td><span class="genmed">
<input type="button" class="button" accesskey="z" name="addbbcode22" value="Stream" style="width: 50px" onClick="bbstyle(18)" onMouseOver="helpline('z')" />
</span></td>[/quote]

save and close all files[/code]

the bbstyle(18) is wrng

Locked

Return to “[2.0.x] MODs in Development”