Back to vBulletin 4.x Add-ons

Livestream BBCode
Mod Version: 1.2.1, by Nano_

vB Version: 4.1.5 Rating: (1 vote - 5.00 average) Installs: 14
Released: 31 May 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations External Content Is in Beta Stage  

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:
Code:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel={option}&amp;clip="{param}"&amp;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}&amp;clip="{param}"&amp;autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash">
</embed>
</object>
</div>


Example
: [livestream=livebn]pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd[/livestream]

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:
Code:
<div align="center">
<object width="560" height="340" id="lsplayer">
<param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=YourChannel&amp;clip="{param}"&amp;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&amp;clip="{param}"&amp;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: [yourchannel]pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd[/yourchannel]

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.

Download

No files for download.

Screenshots

Click image for larger version
Name:	live code.png
Views:	669
Size:	3.9 KB
ID:	117833  


vblts.ru supports vBulletin®, 2022-2024