Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Open Video in Lightbox after pressing read more

  • maverickmu
  • maverickmu's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 month ago #43692 by maverickmu
Hello,
is it possible to open a youtube video in a lightbox with the read more button? Somebody knows if this works?!
If not this would be a must have feature.
Thanks for any reply.

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

More
13 years 1 month ago #43693 by Katia
FPSS at the moment, can only displayes images!
However, you may link a slide to a page with a video provider if you want.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • maverickmu
  • maverickmu's Avatar Topic Author
  • Offline
  • New Member
More
13 years 1 month ago #43694 by maverickmu
Hello Katia,
i don't want to show FPPS a video - I want to show a video after pressing the "read more" button!
Prefered in a lightbox. So I think its just a link thing...
Thanks for the answer!

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

More
13 years 1 month ago #43695 by Mike Hermary
Replied by Mike Hermary on topic Re: Open Video in Lightbox after pressing read more
Hello maverickmu,

Not sure if you found a solution to your problem, but I just recently implemented a feature similar to what you are looking for. My solution involves no code hacks and it utilizes the URL and tagline parameter fields for each slide. You will need to find a lightbox solution that is activated by an anchor class, ID, or rel attribute. I am using jQuery Fancybox and it integrates quite easily. Add the link of your video (.flv, .swf or equivalent) to the URL parameter field and the class, ID, or rel identifier to the tagline parameter field. Next open the default.php file for the slideshow template you are using and add
<?php echo $slide->tagline; ?>
to the class, ID, or rel attribute of the readmore anchor tag. I would suggest using the rel attribute as it allows you to combine multiple slides into a single video gallery jQuery function. The readmore anchor tag should look like this
<a<?php echo $slide->target; ?> href="<?php echo $slide->link; ?>" class="fpssReadMore" title="<?php echo JText::_('FPSS_MOD_READ_MORE_ABOUT'); ?> <?php echo $slide->altTitle; ?>" rel="<?php echo $slide->tagline; ?>" ><?php echo $slide->title; ?></a>
After you have added this code, make sure you add the rel attribute name to the jQuery function that activates the lightbox. Here is what my function looks like including the jQuery noconflict function
var $fancy = jQuery.noConflict();
$fancy(document).ready(function() {
	$fancy("a[rel=vid_group]").fancybox({
		'padding'			: 0,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
});
This function should be placed in your templates index.php file.

I hope this helps you out.

Mike

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

More
12 years 9 months ago #43696 by lebellegardien
Replied by lebellegardien on topic Re: Open Video in Lightbox after pressing read more
hello, I tried your code to add into my index.php file but I have this error : parse error unexpected t_var on line

here is my whole code :

<?php
if (class_exists('T3Template')) {
$tmpl = T3Template::getInstance($this);
$tmpl->render();
return;
} else {
//Need to install or enable JAT3 Plugin
echo JText::_('Missing jat3 framework plugin');
}

error_reporting(0);

var $fancy = jQuery.noConflict();
$fancy(document).ready(function() {
    $fancy("a[rel=vid_group]").fancybox({
        'padding' : 0,
        'autoScale' : false,
        'transitionIn' : 'none',
        'transitionOut' : 'none'
    });
});


it's not php closed ?> because it's a framework template and use another files after

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


Powered by Kunena Forum