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.

Sermon Number and Style

More
03 Sep 2014 18:39 #4814 by Ricardo
Hi, I am using joomla 1.5 in my church website. I am trying to format the sermons into a better looking layout, and adding sermon number into the display, I modified the layout but not sure how to do this in the code. Below is the modified default.php file. Thanks very much in advance. The link of the live website is:

Link :
ministeriosrayosdeluz.com/index.php?opti...riessermon&Itemid=70


default.php

<?php
defined('_JEXEC') or die('Restricted access');
?>
<div id="ss-sermons-container">
<h1 class="componentheading"><?php echo JText::_('Rayos de Luz - Sermones en Audio')?></h1>
<p />
<?php if ($this->rows){ ?>
<div class="Pages">
<div class="Paginator">
<?php echo $this->pagination->getResultsCounter(); ?><br />
<?php if ($this->pagination->getPagesCounter()) echo $this->pagination->getPagesCounter()."<br />"; ?>
<?php if ($this->pagination->getPagesLinks()) echo $this->pagination->getPagesLinks()."<br />"; ?>
</div>
</div>
<hr style="width: 100%; height: 2px;" />
<!-- Begin Data -->
<form action="http://<?php echo $_SERVER.$_SERVER ?>" method="post" id="adminForm" name="adminForm">
<?php
$count = NULL;
$callback = NULL;
if ($this->params->get('ga')) { $callback = "&callback=".$this->params->get('ga'); }
$model = &$this->getModel();
$linkbase = JURI::root()."components/com_sermonspeaker/media/player/";

$i = 0;


foreach($this->rows as $row) {


$sermons = &$model->getSermons($row->id); JText::_('Descargar Sermon Aqui') ?>
<div>
<?php if($row->avatar) { ?>
<img src="<?php echo SermonspeakerHelperSermonspeaker::makelink($row->avatar); ?>" style="float:right; margin-top:25px;">
<?php } ?>
</div>
<div style="margin-left:10%;">
<?php foreach($sermons as $sermon) { $this->assignRef('row',$row);
$count ++;?>
<h4 style="margin-left:-5%;"><?php echo $this->escape($sermon->sermon_title)?></h4>
<?php
if ($this->params->get('client_col_player')){
//Check if link targets to an external source
if (substr($sermon->sermon_path,0,7) == "http://"){
$lnk = $sermon->sermon_path;
} else {
$lnk = SermonspeakerHelperSermonspeaker::makelink($sermon->sermon_path);
}
SermonspeakerHelperSermonspeaker::insertPlayer($lnk, $sermon->sermon_time, $count, $sermon->sermon_title);?>
<div style="float:right; margin-top:12px; margin-right:85px"> <?php echo $sermon->notes; ?> </div> <?php
echo JText::_('Descargar Sermon Aqui').": <a title=\"".JText::_('Descargar Sermon Aqui')."\" href=\"".$lnk."\">".$this->escape($sermon->sermon_title)."</a>";
} ?>
<?php } ?>
</div>
<br style="clear:both;" />
<hr size="2" width="100%" />
<?php } ?>
<br />
<div class="Pages">
<div class="Paginator">
<?php echo $this->pagination->getListFooter(); ?><br />
</div>
</div>
</form>
<?php } else { ?>
<div class="no_entries"><?php echo JText::sprintf('COM_SERMONSPEAKER_NO_ENTRIES', JText::_('COM_SERMONSPEAKER_SERIES')); ?></div>
<?php } ?>
</div>

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 21:21 #4815 by Thomas Hunziker
I can't help you with this task as I really have no clue anymore how SermonSpeaker 3.x worked. I've canceled support for it long ago.

Instead of spending time trying to get that to work, you really should look into migrating your website to Joomla 3.3.
Joomla 1.5 is end of life since two years now. Joomla 2.5 will hit end of life date end of this year.

So please migrate to Joomla 3 before your site is hacked or worse.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 21:44 #4816 by Ricardo
Replied by Ricardo on topic Sermon Number and Style
Unfortunately that's not an option, as my whole website is using J 1.5.

Can you suggest how to bring the sermon number on the display?

Thanks.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 21:46 #4817 by Andrei Chernyshev
if i could add my 2 cents. I'd serously consider upgrading, there are videos on youtube on how to hack 1.5, and it is no longer supported by Joomla community.

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 22:03 #4818 by Ricardo
Replied by Ricardo on topic Sermon Number and Style
Thanks Andrei, I do understand your recommendations, but is not possible to migrate the website as it now, to a newer version, I will try modifying the code, is my understanding, it should be a way to show the number in the code....

Please Log in or Create an account to join the conversation.

More
03 Sep 2014 22:06 #4819 by Thomas Hunziker

Ricardo wrote: Unfortunately that's not an option, as my whole website is using J 1.5.

Can you suggest how to bring the sermon number on the display?

Thanks.

Of course your whole site is using 1.5. It doesn't work otherwise. I still think you should seriously consider migrating. Really :)

As said, I don't know anymore how SermonSpeaker 3 worked. It's quite a long time since I last used it and I would have to download it and read the code again to see how it worked. As stated in the top of this forum it's not something I do anymore. Sorry.

Please Log in or Create an account to join the conversation.

Time to create page: 0.312 seconds
Powered by Kunena Forum