Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHelp with some changing in Videolibrary templateHelp with some changing in Videolibrary template
Previous
 
Next
New Post
10/7/2006 2:53 PM
 

Hey

 

I've played with the repository module and its almost perfect!

I want the module to be used in my media gallery but instead of playing each file integrated, i want it to play externally as pop up.... so my users can play the file and same time browse the website...

 

So the question is:

is it possible to play the file in a separate window (pop up) maybe by some modifications?

Many thanks.

 
New Post
11/14/2006 4:28 PM
 
Please anyone?
 
New Post
11/27/2006 9:57 AM
 

The concept would be to define a template that would display some kind of thumbnail ( or link ) that users would click on to launch the player. You might try using the default template as a starter, since it's provides most of the functionality

1. Copy the 'default' folder from the /DesktopModules/Repository/Templates folder. Paste it to the same folder and rename the new folder to something like 'PopupVideo'

2. Edit the template.html file and look for the section of the template that displays the thumbnail. The default behavior is to display the full size image ( as specified by the [IMAGE] tag ) in a popup window when you click on it.

   <TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
    <A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>
    <br>
   </TD>

3. You want the media file ( the FILE that you uploaded ) to display when you click on the thumbnail, so change the [IMAGE] tag to [FILEURL] which will be the URL to the actual file. So it would look like this...
   <TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
    <A HREF="[FILEURL]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>
    <br>
   </TD>

4. Open the Repository Settings page and select your new 'PopupVideo' template.

That should do it. Clicking on the image thumbnail should open a new window ( popup window ) and display the media file. You can then 'tweak' the rest of the template.html file to do things like remove the DOWNLOAD, add some text below the image indicating that the user should click on the image to display the video, etc.

 
New Post
11/27/2006 3:22 PM
 

Hey again. This is awesome. I like Your idea

Thanks alot for your time, but i've tried it and somehow I cant get it work properly.

The problem comes when i click on the thumbnail, it does'nt open a new windows (popup) It just ask me to save the file or run it as same as when i download a file.

I did everything as you told me, but the only thing i actually edit in the template file was the tag "IMAGE" to "FILEURL" as you showed in your post.


did i miss something? I hope you can help.

Thanks alot.

 
New Post
11/30/2006 1:36 PM
 
Please can someone help here...

It looks like there is missing a code in steves suggestion. Maybe a simple window.open code.... but i no almost nothing where to place it.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryHelp with some changing in Videolibrary templateHelp with some changing in Videolibrary template


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out