Keyword

AllVideo Player in Modal Popup

  • Peter Grube
  • Peter Grube's Avatar Topic Author
  • Offline
  • Elite Member
More
12 years 5 months ago #65346 by Peter Grube
AllVideo Player in Modal Popup was created by Peter Grube
Hi everyone, I am trying to have the AllVideo plugin display in a popup modal, but dont know how, hoping some of the kind folk here can help me out.

Thx in advance Pete.

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

  • Peter Grube
  • Peter Grube's Avatar Topic Author
  • Offline
  • Elite Member
More
12 years 5 months ago #65347 by Peter Grube
Replied by Peter Grube on topic Re: AllVideo Player in Modal Popup
Well I succeeded so I thought I would share the method I used. I think there's a way to do the same using just JQUERY statements hopefully someone might add a better method, because it make it a lot easy to style you Item page and manage your page real estate.

It's quite simple to do I just put a div around the existing media code, and added a style display none tag on that div.
I then added an ID tag to <div class="itemVideoBlock" id="video_pop">

I then added the following Text Link Code where I wanted it to display
Attachments:

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

More
11 years 10 months ago - 11 years 10 months ago #65348 by Oscar
Replied by Oscar on topic Re: AllVideo Player in Modal Popup
Hello i have try your code an it works great, i can show videos in a modal way from the images of the articles in the category_items, the only problem i have is that the modal popup shows only the first video is loaded for all the articles and not the correspondent video for the each article, is there a way to clear the modal popup after is closed or before is open again?

this is the code i use

first i add id="video_pop" to the class="catItemVideoEmbedded" and to class="catItemVideo" in the 'catItemVideo'
Log in  or Create an account to join the conversation.

More
10 years 3 months ago #65349 by Filipe Madeira
Replied by Filipe Madeira on topic Re: AllVideo Player in Modal Popup
Hi there,

I'm looking for a solution to this also.

From category view, open video in popup, but just loads the first one.

How can I identify de video article to load each one?

Thanks!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #65350 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: AllVideo Player in Modal Popup
By using the links href attribute.
You should hide the div with display: none which contains the video and then use the href attribute to target that div.

In order to seperate that div and link you can use the item's id at the end of both the div's id and the link.

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

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

More
10 years 3 months ago #65351 by Filipe Madeira
Replied by Filipe Madeira on topic Re: AllVideo Player in Modal Popup
Hi Krikor,

I have this answer in stackoverflow in this post where I explain what I got:

stackoverflow.com/questions/24262324/load-several-you-tube-videos-as-pop-up

How will I use href attribute?

Thanks for your help, really appreciate!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #65352 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: AllVideo Player in Modal Popup
If I want to work with videos I prefer fancyapps.com/fancybox/

As you can see it has several examples with iframes and YouTube vids.

The href should be something like
<a href="#linkToVideo<?php echo $this->item->id; ?>" class="fancybox fancybox.iframe">..

The same logic applies to the video area as well.
<div id="#linkToVideo<?php echo $this->item->id; ?>">
// INSERT K2'S VIDEO HERE
</div>

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

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

More
10 years 3 months ago #65353 by Filipe Madeira
Replied by Filipe Madeira on topic Re: AllVideo Player in Modal Popup
Thanks very much for you Tip, I'll try today and send some feedback!

Thanks again.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #65354 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: AllVideo Player in Modal Popup
You 're welcome :)

Let me know how it went.

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

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

More
10 years 3 months ago #65355 by Filipe Madeira
Replied by Filipe Madeira on topic Re: AllVideo Player in Modal Popup
Hi there, Krikor

I'm trying but no success...

I can't understand the href...

I'm using Allvideos plugin by JoomlaWorks in K2.

I've entered Video ID in K2 Item -> Media -> Online Video Service, wich output just this in DataBase: {vimeo}96897504{/vimeo}

How would I get href for this automatically from DB to load when I press
Log in  or Create an account to join the conversation.