[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.
User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

[stream] audio bbcode mod redevlopment

Post by smithy_dll » Thu Aug 15, 2002 4:38 am

I have redeveloped the stream mod, I am still taking requests as to how the BBcode should best work, I am also contemplating about haveing it show video as well.

Well heres the latest

I have turned auto play off

Code: Select all

## EasyMod 0.0.6 compliant
#################################################################
## MOD Title: Streaming audio BBcode Mod
## MOD Author: davidls < davidls14@yahoo.com.au > (David Smith) http://www27.brinkster.com/bb2c
## MOD Description: adds a stream bbcode tag to your forum for the windows media player plugin
## the following file formats are supported with the wmp plugin: 
## wma, mp3, wav, midi, au, wax, asf, asx, wm, wmx, wmv, wvx, 
## avi, mpeg, mpg, mp2, mpe, m1v, mpv2, mp2v, mpa, m3u, mid, 
## rmi, ivf, aif, aifc, aiff, snd
## MOD Version: 2.0.2
## 
## Installation Level: easy
## Installation Time: 30 seconds (that's how long it took me)
## Files To Edit: bbcode.tpl, bbcode.php
## Included Files: n/a
## Generator: Mod Maker.net [alpha 1.0.957.14686]
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ 
#################################################################
##
## Author Notes: 
## This mod is ©2002 David Smith, All Rights Reserved
## Be sure to edit all templates you have loaded
## Does not show the video object, so you can load and listen to, but not
## view videos.
## This version has autoplay turned off, it can eaisly be turned back on in bbcode.tpl
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------
#
	$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#----[ AFTER, ADD ]-----------------------------------------
#
	//Begin Strean Mod Copyright David Smith 2002
	$bbcode_tpl['stream'] = str_replace('{URL}', '\\1', $bbcode_tpl['stream']);
#
#-----[ FIND ]------------------------------------------
#
	// [email]user@domain.tld[/email] code..
	$patterns[5] = "#\[email\]([a-z0-9\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
	$replacements[5] = $bbcode_tpl['email'];
#
#----[ AFTER, ADD ]-----------------------------------------
# Note: you may need to change array number if used with other BBcode mods
#
	//[ 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\](http(s)?://)([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+]+)\[/img\]#si", "[img:$uid]\\1\\3[/img:$uid]", $text);
#
#----[ AFTER, ADD ]-----------------------------------------
#
	//[ stream]image_url_here[/stream ]code..
	$text = preg_replace("#\[stream\](([a-z]+?)://([^, \n\r]+))\[/stream\]#si", "[stream:$uid]\\1[/stream:$uid]", $text);
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->

#
#----[ AFTER, 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="1"> 
<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 -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

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

Post by baselineace » Wed May 28, 2003 11:36 pm

THIS DOESNT WORK

How do I use it?

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

Post by god49 » Thu May 29, 2003 2:15 am

I re-wrote this several months ago and it already does video

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

Post by baselineace » Fri May 30, 2003 1:50 am

How do I use this?
I AM A DUMMY!!!!

Antony
Registered User
Posts: 529
Joined: Wed Feb 12, 2003 9:06 am

Post by Antony » Fri May 30, 2003 1:59 am

[stream]url[/stream]
I've Been Banned!

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

Post by TommY2Hot4U » Fri May 30, 2003 4:14 am

it doesn't work for real audio file (.ram) :(
TommY

User avatar
Lee85k
Registered User
Posts: 10
Joined: Sat Mar 29, 2003 10:18 pm
Location: London, UK

Post by Lee85k » Fri May 30, 2003 5:51 am

TommY2Hot4U wrote: it doesn't work for real audio file (.ram) :(
that would be because it plays with

Code: Select all

wmp
windows media player, you can always edit to to make it play with real media player :twisted: and great code Davidls just what i needed! :wink:
SMILE! it scares people...

User avatar
smithy_dll
Former Team Member
Posts: 7630
Joined: Tue Jan 08, 2002 6:27 am
Location: Australia
Name: Lachlan Smith
Contact:

Post by smithy_dll » Fri May 30, 2003 5:51 am

thats because it is using the Windows media plugin component, which last I heard won't play real files, that would require usage of a real plugin

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

Post by Questions » Fri May 30, 2003 6:31 am

could you script it up?
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 &amp; MySQL
Contact:

Post by Questions » Fri May 30, 2003 6:52 am

is there a way where you can put this into the attachment mod???

like if a user posted a .rm the file the user posted would play automatically instead of people having to download it....then play it....

can you make it stream on the site....

example: Please Click And See This

but im fine with the controls you provided....but do you know how to do that?or can you just tell me and i'll make the changes....thanks
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 12:11 pm

That's what I thought...

But this is how the post shows up:

[stream](domain name)[/stream]

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

Post by baselineace » Fri May 30, 2003 12:34 pm

I suppose it is not compatible with 2.0.4. That's okay...I found another mod.

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

Post by god49 » Fri May 30, 2003 12:44 pm

I have mine running on 2.0.4

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

Post by baselineace » Fri May 30, 2003 12:55 pm

For some reason mine comes up as [stream]domain[/stream] in the post!!
HELP!!!

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

Post by TommY2Hot4U » Fri May 30, 2003 3:13 pm

would you please show me how to get it to work with .ram file?

i installed and everything..just won't play my ram file heheh with windows media
TommY

Locked

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