[BETA][BBCode] Wicked bbAudio and bbVideo

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!
Scam Warning
Locked
Wickedlad
Registered User
Posts: 40
Joined: Tue Jun 19, 2007 12:05 pm

[BETA][BBCode] Wicked bbAudio and bbVideo

Post by Wickedlad » Thu Oct 25, 2007 7:30 pm

MOD Title: Wicked bbAudio and bbVideo
MOD Description: This MOD will add two BBCodes, which integrate and play Windows Media files (wma, wmv, etc.) in user post.
MOD Version: 0.9 Beta 1
Target Version: 3.0.RC5

MOD Format: Inside
Installation Level: Easy
Installation Time: ~3 Minutes
MOD Download: Listed code below
Last Stable version: N/A

Author Notes:
  • Tested in IE6.0, IE7.0 and Firefox 2.0.
  • These work for Windows Media only.
MOD Screenshots:
Image
Image

bbAudio
[BBCode usage]

Code: Select all

[Audio]{URL}[/Audio]
[HTML replacement method 1]

Code: Select all

<div align="center">
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="320" height="64" data="{URL}">
<!-- type="application/x-mplayer2" -->
<!-- 	<param name="filename" value="{URL}" /> -->
	<param name="url" value="{URL}" />
	<param name="src" value="{URL}" />
	<param name="showcontrols" value="1" />
	<param name="showdisplay" value="0" />
	<param name="showstatusbar" value="1" />
	<param name="controller" value="1" />
	<param name="enablecontextmenu" value="0" />
	<param name="autosize" value="1" />
	<param name="autostart" value="0" />
	<param name="visible" value="1" />
	<param name="animationstart" value="0" />
	<param name="loop" value="0" />
	<param name="src" value="{URL}" />
	<embed type="video/x-ms-wmv" width="320" height="64" src="{URL}" url="{URL}" 
		autostart="0" 
		showcontrols="1" 
		showstatusbar="1" 
		controller="1" 
		enablecontextmenu="0">
	</embed>
</object>
</div>
[HTML replacement method 2]

Code: Select all

<div align="center">
<object type="video/x-ms-wmv" width="320" height="64" data="{URL}">
	<param name="url" value="{URL}" />
	<param name="src" value="{URL}" />
	<param name="showcontrols" value="1" />
	<param name="showdisplay" value="0" />
	<param name="showstatusbar" value="1" />
	<param name="controller" value="1" />
	<param name="enablecontextmenu" value="0" />
	<param name="autosize" value="1" />
	<param name="autostart" value="0" />
	<param name="visible" value="1" />
	<param name="animationstart" value="0" />
	<param name="loop" value="0" />
	<param name="src" value="{URL}" />
</object>
</div>
[Help line text]

Code: Select all

Audio: [Audio]http://url[/Audio]
[Example]

Code: Select all

[Audio]http://www.yourdomain.com/a.wma[/Audio]
bbVideo
[BBCode usage]

Code: Select all

[Video={NUMBER1},{NUMBER2}]{URL}[/Video]
[HTML replacement method 1]

Code: Select all

<div align="center">
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="{NUMBER1}" height="{NUMBER2}" data="{URL}">
<!-- type="application/x-mplayer2" -->
<!-- 	<param name="filename" value="{URL}" /> -->
	<param name="url" value="{URL}" />
	<param name="src" value="{URL}" />
	<param name="showcontrols" value="1" />
	<param name="showdisplay" value="0" />
	<param name="showstatusbar" value="1" />
	<param name="controller" value="1" />
	<param name="enablecontextmenu" value="0" />
	<param name="autosize" value="1" />
	<param name="autostart" value="0" />
	<param name="visible" value="1" />
	<param name="animationstart" value="0" />
	<param name="loop" value="0" />
	<param name="src" value="{URL}" />
	<embed type="video/x-ms-wmv" width="{NUMBER1}" height="{NUMBER2}" src="{URL}" url="{URL}" 
		autostart="0" 
		showcontrols="1" 
		showstatusbar="1" 
		controller="1" 
		enablecontextmenu="0">
	</embed>
</object>
</div>
[HTML replacement method 2]

Code: Select all

<div align="center">
<object type="video/x-ms-wmv" width="{NUMBER1}" height="{NUMBER2}" data="{URL}">
	<param name="url" value="{URL}" />
	<param name="src" value="{URL}" />
	<param name="showcontrols" value="1" />
	<param name="showdisplay" value="0" />
	<param name="showstatusbar" value="1" />
	<param name="controller" value="1" />
	<param name="enablecontextmenu" value="0" />
	<param name="autosize" value="1" />
	<param name="autostart" value="0" />
	<param name="visible" value="1" />
	<param name="animationstart" value="0" />
	<param name="loop" value="0" />
	<param name="src" value="{URL}" />
</object>
</div>
[Help line text]

Code: Select all

Video: [Video=width(320),height(285)]http://url[/Video]
[Example]

Code: Select all

[Video=320,285]http://www.yourdomain.com/a.wmv[/Video]

trevortv
Registered User
Posts: 2
Joined: Tue Sep 18, 2007 6:42 pm

Re: [BETA][BBCode] Wicked bbAudio and bbVideo

Post by trevortv » Wed Oct 31, 2007 9:25 pm

Would you tell me what file and where in the file I should put those codes ? Thanks

Wickedlad
Registered User
Posts: 40
Joined: Tue Jun 19, 2007 12:05 pm

Re: [BETA][BBCode] Wicked bbAudio and bbVideo

Post by Wickedlad » Thu Nov 01, 2007 2:30 pm

Go into your ACP and goto Posting -> BBCodes -> Add a new BBCode, then I think you can make it.

trevortv
Registered User
Posts: 2
Joined: Tue Sep 18, 2007 6:42 pm

Re: [BETA][BBCode] Wicked bbAudio and bbVideo

Post by trevortv » Thu Nov 01, 2007 8:16 pm

It works :lol: Thanks, Wickedlad

User avatar
alberto.barros
Registered User
Posts: 5
Joined: Wed May 14, 2008 3:48 pm

Re: [BETA][BBCode] Wicked bbAudio and bbVideo

Post by alberto.barros » Wed Sep 17, 2008 10:53 pm

Tanks for the MOD!! 8-)

Locked

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