Support for SermonSpeaker 4.x is canceled as it is for Joomla 2.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 5.x and Joomla 3.x, which is better anyway.

Swapping additional file button to below audio/vid

More
12 Nov 2013 21:34 - 12 Nov 2013 21:38 #4063 by Ian Shere
Currently the buttons are:

Additional File (used for PDF of sermon notes)
Listen
Watch

The client wants it to be:

Listen
Watch
Add File

I'm using Columns-New, so thought that /com_sermonspeaker/views/sermons/tmpl/columns-new.php would be the file to edit. I found the code
Code:
<a href="<?php echo $link; ?>" class="addfile" target="_blank" title="<?php echo JText::_('COM_SERMONSPEAKER_ADDFILE_HOOVER'); ?>"> <img src="<?php echo $file; ?>" alt="" /> <?php echo $item->addfileDesc; ?> </a>

on lines 191-193 and simply cut that out of above the other 2 buttons and placed it below it like this (starting at line 219):
Code:
Watch </a> <?php endif; ?> .....placed code here.... </div> <div class="column-detail" onclick="ss_play('<?php echo $i; ?>')">

Obviously, it didn't work!! :unsure:

Can someone show me what I need to do - I'm sure it's very simple! Thanks.
Last edit: 12 Nov 2013 21:38 by Ian Shere.

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

More
12 Nov 2013 23:23 #4064 by Thomas Hunziker
Is "columns-new" a layout shipped with SermonSpeaker? Because I don't remeber that one. That doesn't mean it isn't, it's just my memory that is bad :)

I'd say, moving the whole block for the addfile around should work fine. As long as the logic for $link and $file is done before it.

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

More
12 Nov 2013 23:30 - 12 Nov 2013 23:31 #4065 by Ian Shere
LOL!! You just jogged my memory Thomas! Ha! Columns-new is MY hack and paste of the original Columns layout - DOH me for forgetting - been a while since I worked on it! I haven't changed too much, and certainly didn't add anything - just fiddled some, so this file should be very close to the original.

I did the cut and paste as mentioned but don't understand PHP so not sure whether I got all the code I should have.

I've attached the 2 files - php and xml.
Attachments:
Last edit: 12 Nov 2013 23:31 by Ian Shere.

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

More
13 Nov 2013 07:45 #4067 by Thomas Hunziker
This explains it :)

Try if that works. PHP can be a bit tricky at times if you make syntax errors while moving stuff. It's an easy language to learn by the way. At least the basics :D

File Attachment:

File Name: columns-new.zip
File Size:4 KB
Attachments:

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

More
14 Nov 2013 00:20 #4082 by Ian Shere
Brilliant thank you Thomas - as usual! I'll go look at the code and see what you did. Not the best way to learn, but of some use.

Yes, I really want to get a much better grounding in PHP and CSS, but there always seems to be something else more pressing. I need to sort out the urgent and the important!! :P

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

Time to create page: 0.100 seconds
Powered by Kunena Forum