Recent Topics

1 Jun 16, 2007 05:27    

My b2evolution Version: 1.10.2

Really hoping someone can help me out here.

I've had huge problems trying to get certain plugins to work recently, but the Video Plug that comes with 1.10.2 works great!!! :p

My problem now is that I also need it to include video from http://www.teachertube.com/

If ayone can help out with telling me what I have to add to the _videoplug.plugin.php file I would be VERY grateful.

Thanks. Tassie :p

2 Nov 23, 2007 12:44

hi Tassie,
I don't know if you still need to include teachertube videos or if you get it yourself, anyway here is to do it (for you or other people).

Open plugins/videoplug_plugin/_videoplug.plugin.php and find:

// Youtube:
		$content = preg_replace( '¤\[video:youtube:(.+?)]¤', '<div class="videoblock"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/\\1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></div>', $content );

Just after that, add:

// TeacherTube::
		$content = preg_replace( '¤\[video:teacher:(.+?)]¤', '<div class="videoblock"><embed style="width:425px; height:350px;" type="application/x-shockwave-flash" allowfullscreen="true" src="http://www.teachertube.com/skin-p/flvplayer.swf" flashvars="&file=http://www.teachertube.com/flvideo/11694.flv&image=http://www.teachertube.com/thumb/11694.jpg&location=http://www.teachertube.com/skin-p/flvplayer.swf&logo=http://www.teachertube.com/images/greylogo.swf&frontcolor=0xffffff&backcolor=0x000000&lightcolor=0xFF0000&autostart=false&volume=80&overstretch=fit&linkfromdisplay=true&link=http://www.teachertube.com/view_video.php?viewkey=//1"></embed></div>', $content );

Then, find

echo '<input type="button" id="video_youtube" title="'.T_('Insert Youtube video').'" class="quicktags" onclick="videotag(\'youtube\');" value="'.T_('YouTube').'" />';

and after it add:

echo '<input type="button" id="video_teacher" title="'.T_('Insert TeacherTube video').'" class="quicktags" onclick="videotag(\'teacher\');" value="'.T_('TeacherTube').'" />';

That's it!!.
When tou clic on the TeacherTube button in the writing screen to add the video, you'll just have to enter the $HTTP_GET_VALUE['viewkey'] (the only get param in the URL).
Hope it helps you.

ps: you could also enter the languages values, if you want so.
see you

3 Oct 07, 2008 00:32

Hi,

Sorry to drag up an old thread. But, did anyone get this to work? I was wondering how I would set it up so I could just enter in the ID and embed the TeacherTube video.

It does embed, but it's a video of "Ask a ninja" explaining podcasts.

Thanks.


Form is loading...