Support for SermonSpeaker 3.x is canceled as it is for Joomla 1.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 4.x, which is better anyway.
The fix is to upgrade to SermonSpeaker 4.x, which is better anyway.
Vimeo
- Andrei Chernyshev
- Topic Author
- Offline
- Translator
Less
More
23 Jun 2011 17:31 #687
by Andrei Chernyshev
Vimeo was created by Andrei Chernyshev
i'm trying to modify sermon speaker to use vimeo player based on URL string but for some reason joomla strips iframe. can you help me out. the reason i'm using vimeo iframe is because it make their player mobile compatible, and current player does not support it.
Code:
<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.
- Thomas Hunziker
- Offline
- Administrator
23 Jun 2011 18:04 #688
by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Vimeo
I think SermonSpeaker 4.x should be mobile (read: Apple, nonFlash) compatible. It will fall back to HTML5 if no Flash is installed. But this only works for the default player, not the alternativ one.
I didn't work with Joomla and iframes so far. If Joomla is stripping them, I don't know where.
I only know that the editor strips it, and this can be enabled/disabled somewhere in the options, but I don't remember where.
I didn't work with Joomla and iframes so far. If Joomla is stripping them, I don't know where.
I only know that the editor strips it, and this can be enabled/disabled somewhere in the options, but I don't remember where.
Please Log in or Create an account to join the conversation.
- Andrei Chernyshev
- Topic Author
- Offline
- Translator
05 Jul 2011 21:21 #720
by Andrei Chernyshev
Replied by Andrei Chernyshev on topic Re: Vimeo
thank you got this figured out. had my quote order reversed.
Please Log in or Create an account to join the conversation.
09 Oct 2012 21:05 #2618
by Grigoriy
To use video Vimeo and Youtube add code bellow to file: com_sermonspeaker\views\sermon\tmpl\extnewline.php
and to popup.php
To see it in work visit our church site:
Greater Grace Church in Ukraine - Video message p.K.G.Stivens
Code:
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
and to popup.php
Code:
<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>
To see it in work visit our church site:
Greater Grace Church in Ukraine - Video message p.K.G.Stivens
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
10 Oct 2012 08:11 #2621
by Thomas Hunziker
Replied by Thomas Hunziker on topic Vimeo
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.
10 Oct 2012 10:15 #2624
by Grigoriy
Thanks. I know that, but it's for Joomla 2.5.x.
More users use Joomla 1.5.26 it help them.
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.
Thanks. I know that, but it's for Joomla 2.5.x.
More users use Joomla 1.5.26 it help them.
Please Log in or Create an account to join the conversation.
Time to create page: 0.103 seconds