Logo of SermonSpeaker Extension Claim

Login Form

× 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
4 years 10 months ago - 4 years 10 months ago #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
<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):
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: 4 years 10 months ago by Ian Shere.

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

More
4 years 10 months ago #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.

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

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

More
4 years 10 months ago - 4 years 10 months ago #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: 4 years 10 months ago by Ian Shere.

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

More
4 years 10 months ago #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

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.
Attachments:

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

More
4 years 10 months ago #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.103 seconds
Powered by Kunena Forum