Logo of SermonSpeaker Extension Claim

Login Form

× 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.

"control the player" jumps to top of page

More
6 years 1 month ago #2619 by Mark Landry
Hi,
I have a list of sermons with both the play icon and title set to control the player. When the icon is clicked, all works fine, but when the title is clicked, the player starts, but the page jumps to the top of the page. See here:

www.mentorleadershipteam.com/index.php?o...=sermons&Itemid=187#

Thanx for any help you can provide.

Mark

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

More
6 years 1 month ago #2622 by Thomas Hunziker
That's actually how HTML works.
The icon is not a real link, it's a picture with an onclick Javascript event. The title however is set up as a link which points to an undefined anchor (#) and also has the onclick event.
That's why the title link jumps to the top and the icon doesn't.

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
6 years 4 weeks ago #2632 by Thomas Hunziker
While working on the Joomla 3.0 layouts I found the solution for your problem.
If you look at the file

components/com_sermonspeaker/helpers/sermonspeaker.php

you can search for the following code:
$options['onclick'] = 'ss_play('.$i.')';
Change that to the following one:
$options['onclick'] = 'ss_play('.$i.');return false;';
and it should work.

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
6 years 4 weeks ago #2638 by Mark Landry
Thanx Thomas,
I had already disabled the link to the sermon, but if that causes any probs I'll give this a try.

Mark

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

Time to create page: 0.142 seconds
Powered by Kunena Forum