Log in

View Full Version : BB Code Enhancements - Livestream BBCode


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}&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: 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&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: 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.

Nano_
05-31-2010, 07:22 PM
1.1
!Fixed the "All HTML attributes should be enclosed within double quotes." error

1.2
+ !Player now works on 4.1.4.
+ For "All HTML attributes should be enclosed within double quotes." error, please see this post (https://vborg.vbsupport.ru/showpost.php?p=2240050&postcount=21).

Daniel_HBK
06-01-2010, 02:47 AM
nice Mod , thanks!

jdelator
06-03-2010, 10:21 PM
Thanks

your24hourstore
06-03-2010, 11:01 PM
will it play my new video?
http://hillbillygold.com/forums/media/m156-gulf-oil-spill

markwein
06-04-2010, 12:33 AM
installed. works fine.

vbgser
06-07-2010, 04:26 PM
i have installed the widget, but i dont see in the forum the livestream embed option

COL NIL SATIS
06-07-2010, 05:02 PM
Wow...this will be awesome for our site ...tagged

Nano_
06-07-2010, 09:32 PM
i have installed the widget, but i dont see in the forum the livestream embed option

Use bbcode .

Example [livestream=livebn]pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd
Will play my "Live!" Channel in foruns.

War.Frog
06-23-2010, 08:25 PM
I just get this error message all the time when I try to create the BB code:


The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

<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;autoPla y=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;autoPla y=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash"> </embed> </object> </div>

Nano_
06-25-2010, 09:55 AM
I just get this error message all the time when I try to create the BB code:


The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

<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;autoPla y=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;autoPla y=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash"> </embed> </object> </div>


Fixed.

XChemical
02-25-2011, 11:45 PM
is there a new version of the code as i know they change the thing and now it dont work

motorola
04-23-2011, 06:26 PM
Not working in vBulletin 4.1.0 PL2

Sean James
04-26-2011, 02:20 PM
Cant get this to work with 4.1.3 either :(

Nano_
05-12-2011, 01:24 PM
I'll see this week.

Sean James
05-12-2011, 01:30 PM
Awesome news!

Special Pages
05-12-2011, 05:43 PM
This should be in the Template edits section. :D

Stefan118
06-04-2011, 09:56 PM
Nope, still not working in 4.1.3

Deriggs007
07-24-2011, 07:51 PM
Please update this, Dev

Thanks :)

bosanci28
08-02-2011, 08:26 PM
not working in 4.1.5
:(

Nano_
08-30-2011, 05:33 PM
Ok, if i fix "All HTML attributes should be enclosed within double quotes", player don't work. If i don't fix this, this alert continues appear, but the code works.
So, i don't will fix this error.

And i add another code if you have only one fixed channel.

Sorry for delay, btw.
I start in a new work and have college. :(

home9000
09-29-2011, 08:35 PM
Does it work for 3.8 ?

Nano_
10-14-2011, 05:35 PM
Does it work for 3.8 ?

I don't know. I dont have any 3.x top test, sorry. :(