vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Livestream BBCode (https://vborg.vbsupport.ru/showthread.php?t=243671)

Nano_ 05-30-2010 10:00 PM

Livestream BBCode
 
1 Attachment(s)
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.

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.

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/medi...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

Quote:

Originally Posted by vbgser (Post 2049989)
i have installed the widget, but i dont see in the forum the livestream embed option

Use bbcode [livestream].

Example [livestream=livebn]pla_af1b7a0f-cd90-4d22-81c0-e36535665ebd[/livestream]
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.

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>


All times are GMT. The time now is 11:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01025 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete