You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
  Thursday, 03 March 2022
  13 Replies
  1K Visits
Hello,
how do I make videos responsive in modal?
I have the plugin wf_responsive_widgets_1022 and full screen enabled but it doesn't work.
Take a look at this page: [url=https://www.virdminyons.cat/cercador/videos]
Click on the camera to see a video.

Thanks!
Jose

Joomla 3.10.6
JCE Editor 2.9.20
JCE MediaBox 2.1.3beta8
Responsive widgets 1.0.22
more than a month ago
·
#110488
I have the plugin wf_responsive_widgets_1022 and full screen enabled but it doesn't work.


As the videos are being opened in a modal window and not in article content, this plugin will have no effect.

JCE MediaBox 2.1.3beta8

Your videos aren't being opened in JCE MediaBox, which would make them responsive.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110512
Thanks!
Jose
more than a month ago
·
#110517
Hello!
Now I open the page in JCE Mediabox but it doesn't work and there is also the problem that the videos are not shown because in the .wf-mediabox-content-ajax iframe class there is the property visibility: hidden

Take a look at this page: Title

Thanks!
Jose
more than a month ago
·
#110518
If you want the videos to be responsive, you should create popups of the youtube video using the Youtube URL, not linking to a page containing the youtube video.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110520
Yes, but apart from the videos, there may be other content and that is why I show the article.
Would there be a way to apply the plugin in the modal?
It is not so important to show the videos in full screen, the problem is when they are shown on a mobile.

Jose
more than a month ago
·
#110533
Would there be a way to apply the plugin in the modal?


If you are referring to the Responsive Widgets plugin, it does not appear to be active or published on your site.

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110543
Hello,

The plugin is active.


Thanks!
Jose

mostra1.jpg
mostra2.jpg
mostra3.jpg
more than a month ago
·
#110546
Is the video on this page - https://www.virdminyons.cat/cercador/videos/video/4 - loaded in a Joomla Article Manager item, field or custom module?

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110547
hello,
in an editor type field in the database, in a component programmed by me and that has a view to show it in the frontend.

Thanks!
Jose mostra4.jpg
more than a month ago
·
#110548
The content needs to be processed through the onContentPrepare event to trigger the Responsive Widgets plugin, eg:


/* example from com_content component */
JPluginHelper::importPlugin('content');
JEventDispatcher::getInstance()->trigger('onContentPrepare', array ('com_content.article', &$item, &$item->params, $offset));

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110557
Hi!
I added these lines:


JPluginHelper::importPlugin('system');
$dispatcher = JEventDispatcher::getInstance();
if (!isset($this->item->text)) { $this->item->text = $this->item->arxiumultimedia; }
$dispatcher->trigger('onContentPrepare', array ('com_bdminyons.video', &$this->item, &$this->params, 0));
$this->item->arxiumultimedia = $this->item->text;


into the view.html.php file of the view and now the videos are responsive.
Do you think it is the right thing?

Thanks!

Jose
more than a month ago
·
#110559
Do you think it is the right thing?


Yes that looks fine to me, and if it's working then I guess it is OK! :D

Just because you're not paranoid doesn't mean everybody isn't out to get you.

more than a month ago
·
#110563
Thanks!
Jose
josemh marked this post as Resolved — 3 months ago
  • Page :
  • 1
There are no replies made for this post yet.
Be one of the first to reply to this post!