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

17 Fach, 53 Antworten

Mitwirkende Geber
Ungelesene Nachricht
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 Teilnehmer
9 Antworten
Yira

4 Fach, 50 Antworten

Geber
Ungelesene Nachricht
thx ! :)
eResnova

17 Fach, 875 Antworten

Mitwirkende
Ungelesene Nachricht
Good job Luis.
Ps: Check your mails :p
Zaekof

38 Fach, 883 Antworten

Mitwirkende Geber
Ungelesene Nachricht
GG mean
"N'arrêtez jamais d'apprendre" !
creativewild

17 Fach, 53 Antworten

Mitwirkende Geber
Ungelesene Nachricht
@eResnova - email replied :P
Zaekof

38 Fach, 883 Antworten

Mitwirkende Geber
Ungelesene Nachricht
you can add tchat in vidéo ?

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

17 Fach, 53 Antworten

Mitwirkende Geber
Ungelesene Nachricht
Videos don't have chat :)

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

38 Fach, 883 Antworten

Mitwirkende Geber
Ungelesene Nachricht
yeah ! ^^
"N'arrêtez jamais d'apprendre" !
creativewild

17 Fach, 53 Antworten

Mitwirkende Geber
Ungelesene Nachricht
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 Fach, 883 Antworten

Mitwirkende Geber
Ungelesene Nachricht
no it's good sorry bro ^^
"N'arrêtez jamais d'apprendre" !