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.

Video in icon display

  • Mark Crymble
  • Mark Crymble's Avatar Topic Author
  • Visitor
  • Visitor
27 Jan 2011 01:42 #125 by Mark Crymble
Video in icon display was created by Mark Crymble
Hi guys, I use sermonspeaker and absolutely love it. However I have a problem on the following sermon, as it uses a short video clip.

www.dunlucechristianfellowship.com/site/...us-means-to-me-caisi

I love the icon display format, but as you can see, it then covers the name of the speaker and so on. Is there any way around this?

Thanks, Mark

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

More
27 Jan 2011 07:22 #127 by Thomas Hunziker
Simple as it is, the icon layout was never intended to be used with videos.
You could play around with the CSS for it, but I'm not sure if it's possible.

I'm always looking for ways how to improve SermonSpeaker. But especially in the area of designing I just lack the skills. The icons layout then isn't my own work, it was submitted by a user and offered for general use and I think it's amazing. If someone is able to do something similar for a videofile, I'm more than happy to include it :)

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

  • Mark Crymble
  • Mark Crymble's Avatar Topic Author
  • Visitor
  • Visitor
27 Jan 2011 14:26 #129 by Mark Crymble
Replied by Mark Crymble on topic Re: Video in icon display
Thanks, it's not a big issue at the moment anyway as I only have one video. I have one other quick question, I want to remove the link to the sermon speaker (E.g Stephen Moore in this page and also in the archive layout.

I can't seem to remove it in the icon.php or css file. Any help would be appreciated.

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

More
27 Jan 2011 15:21 - 27 Jan 2011 15:22 #130 by Thomas Hunziker
It would be in the icon.php file for the sermon view (or in the default.php for the archive view). The whole command to display the speaker (and the tooltip for it) looks like this:
Code:
<?php echo SermonspeakerHelperSermonSpeaker::SpeakerTooltip($this->speaker->id, $this->speaker->pic, $this->speaker->name); ?>
If you delete this line, the speaker will be hidden. You probably have to delete the surrounding html tags as well to have the legend text hidden as well. The legend text itself looks like this:
Code:
<?php echo JText::_('COM_SERMONSPEAKER_SPEAKER'); ?>
In the archive view you would have to take care of the table headers as well or it messes up the table :)

In SermonSpeaker 4.0 this should be easier btw. I introduced a new parameter field where you can select each column for each view if it should show or not.
Last edit: 27 Jan 2011 15:22 by .

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

  • Mark Crymble
  • Mark Crymble's Avatar Topic Author
  • Visitor
  • Visitor
27 Jan 2011 16:51 #131 by Mark Crymble
Replied by Mark Crymble on topic Re: Video in icon display
Yeah, but I'd like to keep the Speaker's name but remove the link that opens up the speaker's bio (and the hover that shows a photo). Is this possible?

Thanks again

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

More
27 Jan 2011 17:36 #132 by Thomas Hunziker
This is actually even easier ;)
It depends a bit if you want to hide the speaker tooltip (and link) in all instances where it appears, like the sermons listing, archive, latest sermons of a speaker, detailpage, and so on or if you want to only hide it in selected views.
If you want to hide it generally, then you simply change the helperfunction found in /component/com_sermonspeaker/helpers/sermonspeaker.php. It's the first function found in there, named SpeakerTooltip. Looks like this:
Code:
function SpeakerTooltip($id, $pic, $name) { if ($pic == "") { // check if there is no picture and set nopict.jpg $pic = JURI::root().'components/com_sermonspeaker/images/nopict.jpg'; } elseif (substr($pic,0,7) != "http://"){ // check if the picture is locally and add the Root to it $pic = JURI::root().$pic; } $html = '<a class="modal" href="'.JRoute::_('index.php?view=speaker&layout=popup&id='.$id.'&tmpl=component').'" rel="{handler: \'iframe\', size: {x: 700, y: 500}}">'; $html .= JHTML::tooltip('<img src="'.$pic.'" alt="'.$name.'">',$name,'',$name).'</a>'; return $html; }

Change it to
Code:
function SpeakerTooltip($id, $pic, $name) { return $name; }
And it will only show the speakername without any links.

If you want to hide it only in selected views, you would have to change the line mentioned in the previous post to directly echo only the name, instead of calling the function. But you would have to do this for each view you want this.
The following user(s) said Thank You: Mark Crymble

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

Time to create page: 0.100 seconds
Powered by Kunena Forum