Nano_
05-30-2010, 10:00 PM
This BBCode allows embedded Livestream videos in your forums with HTML off.
Working Demo: http://live.egaming.com.br/
Instructions:
Go to your AdminCP > Custom BB Codes > Add New BB Code.
Title: Livestream BBCode
BB Code Tag Name: livestream
Replacement:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel={option}&clip="{param}"&autoPlay=false">
</param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel={option}&clip="{param}"&autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object>
</div>
Example: pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd
When vB says "All HTML attributes should be enclosed within double quotes.", just click in "Continue".
If you have a fixed channel, use this code:
Title: Livestream YourChannel BBCode
BB Code Tag Name: yourchannel
Replacement:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=YourChannel&clip="{param}"&autoPlay=false">
</param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel=YourChannel&clip="{param}"&autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object>
</div>Change YourChannel to your channel in LiveStream.
Example: pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd
Description: Use this BBCode to embed Livestream videos.
Use {option}: YES
Remove Tag If Empty: NO
Disable BB Code Within This BB Code: YES
Disable Smilies Within This BB Code: YES
Disable Word Wrapping Within This BB Code: YES
{option} is a channel name (livebn in example)
Text inside bbcode is a clipId url (pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd in example).
--
+ Know Bugs
- First click on center play open Livestream video at new tab/window.
+ Notes:
- Sorry for my poor english;
- I made this code because I needed it for my forums. I'm not a programmer.
Working Demo: http://live.egaming.com.br/
Instructions:
Go to your AdminCP > Custom BB Codes > Add New BB Code.
Title: Livestream BBCode
BB Code Tag Name: livestream
Replacement:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel={option}&clip="{param}"&autoPlay=false">
</param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel={option}&clip="{param}"&autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object>
</div>
Example: pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd
When vB says "All HTML attributes should be enclosed within double quotes.", just click in "Continue".
If you have a fixed channel, use this code:
Title: Livestream YourChannel BBCode
BB Code Tag Name: yourchannel
Replacement:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=YourChannel&clip="{param}"&autoPlay=false">
</param>
<param name="allowScriptAccess" value="always"></param>
<param name="allowFullScreen" value="true"></param>
<embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel=YourChannel&clip="{param}"&autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object>
</div>Change YourChannel to your channel in LiveStream.
Example: pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd
Description: Use this BBCode to embed Livestream videos.
Use {option}: YES
Remove Tag If Empty: NO
Disable BB Code Within This BB Code: YES
Disable Smilies Within This BB Code: YES
Disable Word Wrapping Within This BB Code: YES
{option} is a channel name (livebn in example)
Text inside bbcode is a clipId url (pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd in example).
--
+ Know Bugs
- First click on center play open Livestream video at new tab/window.
+ Notes:
- Sorry for my poor english;
- I made this code because I needed it for my forums. I'm not a programmer.