- Posts: 2
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Frontpage Slideshow
- Open Video in Lightbox after pressing read more
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.
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
- Topic Author
- Offline
- New Member
Less
More
13 years 1 month ago #43692
by maverickmu
Open Video in Lightbox after pressing read more was created 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.
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.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
13 years 1 month ago #43693
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: Open Video in Lightbox after pressing read more
FPSS at the moment, can only displayes images!
However, you may link a slide to a page with a video provider if you want.
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
13 years 1 month ago #43694
by maverickmu
Replied by maverickmu on topic Re: Open Video in Lightbox after pressing read more
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!
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.
- Mike Hermary
- Offline
- New Member
Less
More
- Posts: 14
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 addto 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 thisAfter 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 functionThis function should be placed in your templates index.php file.
I hope this helps you out.
Mike
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; ?>
<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>
var $fancy = jQuery.noConflict();
$fancy(document).ready(function() {
$fancy("a[rel=vid_group]").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
I hope this helps you out.
Mike
Please Log in or Create an account to join the conversation.
- lebellegardien
- Offline
- New Member
Less
More
- Posts: 3
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
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.
- Forum
- Commercial Joomla Extensions & Templates
- Frontpage Slideshow
- Open Video in Lightbox after pressing read more