<div class="ss-sermondetail-text ss-sermon-player">
<?php
$VimeoStringPos = substr_count($this->lnk, 'http://player.vimeo.com/video');
if( $VimeoStringPos >= 1 )
{
echo '<iframe src="' + $this->lnk + '" width="398" height="224" frameborder="0"></iframe>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
</div>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if ($this->params->get('client_col_player')){ ?>
<div class="ss-sermondetail-label"></div>
<div class="ss-sermondetail-text ss-sermon-player">
<?php $ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name); ?>
</div>
// my code start here:
<?php
$VimeoStringPos = substr_count($this->lnk, 'http://player.vimeo.com/video');
if( $VimeoStringPos >= 1 )
{
echo '<iframe src="'.$this->lnk.'" width="500" height="281" frameborder="0"></iframe>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
<?php
$YoutubeStringPos = substr_count($this->lnk, 'http://www.youtube.com/v/');
if( $YoutubeStringPos >= 1 )
{
echo '<object width="500" height="255"><param name="movie" value="'.$this->lnk.'" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'.$this->lnk.'"type="application/x-shockwave-flash" width="500" height="255" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
<?php
$YoutubeStringPos2 = substr_count($this->lnk, 'http://www.youtube.com/watch?v=');
function GetBetween($content,$start,$end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
$discountsum = GetBetween($this->lnk,"watch?v=","&");
$link1="http://www.youtube.com/v/";
$link2="?version=3&hl=ru_RU";
$oklink=$link1.$discountsum.$link2;
if( $YoutubeStringPos2 >= 1)
{
echo '<object width="500" height="255"><param name="movie" value="'.$oklink.'" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'.$oklink.'"type="application/x-shockwave-flash" width="500" height="255" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
// my code end
<?php } // if client_col_player
<div style="padding: 10px; text-align:center;">
<h3 class="contentheading"><?php echo $this->row->sermon_title; ?></h3>
<?php SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name); ?>
// my code start here:
<?php
$VimeoStringPos = substr_count($this->lnk, 'http://player.vimeo.com/video');
if( $VimeoStringPos >= 1 )
{
echo '<iframe src="'.$this->lnk.'" width="500" height="281" frameborder="0"></iframe>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
<?php
$YoutubeStringPos = substr_count($this->lnk, 'http://www.youtube.com/v/');
if( $YoutubeStringPos >= 1 )
{
echo '<object width="500" height="255"><param name="movie" value="'.$this->lnk.'" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'.$this->lnk.'"type="application/x-shockwave-flash" width="500" height="255" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
<?php
$YoutubeStringPos2 = substr_count($this->lnk, 'http://www.youtube.com/watch?v=');
function GetBetween($content,$start,$end){
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
$discountsum = GetBetween($this->lnk,"watch?v=","&");
$link1="http://www.youtube.com/v/";
$link2="?version=3&hl=ru_RU";
$oklink=$link1.$discountsum.$link2;
if( $YoutubeStringPos2 >= 1)
{
echo '<object width="500" height="255"><param name="movie" value="'.$oklink.'" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="'.$oklink.'"type="application/x-shockwave-flash" width="500" height="255" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
}
else
{
$ret = SermonspeakerHelperSermonspeaker::insertPlayer($this->lnk, $this->row->sermon_time, 1, $this->row->sermon_title, $this->speaker->name);
}
?>
// my code end
</div>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thomas Hunziker wrote: Just as a note: SermonSpeaker 4.x will automatically detect Vimeo videos and show the corresponding player. Youtube videos are supported with the JW Player.
Please Log in or Create an account to join the conversation.