70 뷰
[Ready] - Twitch Video - BBCode integration
creativewild

17 과목, 53 개

참여자 기증자
읽지 않은 메시지
I will be posting shortly a bbcode integration to allow Twitch Video integration by using the following code

example: http://www.twitch.tv/heroislusitanos/v/5472563

from the url above we take the channel name, in this case heroislsuitanos and add as a tag parameter (twitchv=heroislusitanos).

Now we have the video ID (5472563) and the type of content that means video ( http://www.twitch.tv/heroislusitanos/v/5472563) so we put the together as v5472563 and add this within the bbcode tags. and that's it

http://www.twitch.tv/heroislusitanos/v/5472563
[twitchv=heroislusitanos]v5472563[/twitchv ]


EDIT:

1 - open the file text_editor.php located at [SITE_ROOT]/neofrag/libraries (example: /public_html/neofrag/libraries/text_editor.php)
2 - add the following line within the bbcode array ( it looks like this -> private $_bbcode = array (....)) :
'\[twitchv=(.*?)\](.*?)\[/twitchv\]' => '<object bgcolor="#000000" data="//www-cdn.jtvnw.net/swflibs/TwitchPlayer.swf" height="378" id="clip_embed_player_flash" type="application/x-shockwave-flash" width="100%"><param name="movie" value="//www-cdn.jtvnw.net/swflibs/TwitchPlayer.swf" /><param name="allowScriptAccess" value="always" /><param name="allowNetworking" value="all" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="channel=\1&start_volume=25&auto_play=false&videoId=\2&initial_time=0" /></object>',



DO NOT forget if you are adding the line at the end of the array, the previous line needs to end with a a comma( , )

LIVE DEMO
http://heroislusitanos.pt/
4 참가자
9 개
Yira

4 과목, 50 개

기증자
읽지 않은 메시지
thx ! :)
eResnova

17 과목, 875 개

참여자
읽지 않은 메시지
Good job Luis.
Ps: Check your mails :p
Zaekof

38 과목, 883 개

참여자 기증자
읽지 않은 메시지
GG mean
"N'arrêtez jamais d'apprendre" !
creativewild

17 과목, 53 개

참여자 기증자
읽지 않은 메시지
@eResnova - email replied :P
Zaekof

38 과목, 883 개

참여자 기증자
읽지 않은 메시지
you can add tchat in vidéo ?

"N'arrêtez jamais d'apprendre" !
creativewild

17 과목, 53 개

참여자 기증자
읽지 않은 메시지
Videos don't have chat :)

but i can make a Twitch chat widget for the sidebar
Zaekof

38 과목, 883 개

참여자 기증자
읽지 않은 메시지
yeah ! ^^
"N'arrêtez jamais d'apprendre" !
creativewild

17 과목, 53 개

참여자 기증자
읽지 않은 메시지
Zaekof - do you want something like this? - thats one is just a mockup using embed the embed chat into a iframe. also that one is responsive

DEMO: http://heroislusitanos.pt/
Zaekof

38 과목, 883 개

참여자 기증자
읽지 않은 메시지
no it's good sorry bro ^^
"N'arrêtez jamais d'apprendre" !