Joomla Tutorials

Place Joomla Images and Videos in a Pop-up

April 8, 2010 | Written by Steve Burge

Joomla RokboxThis tutorial was requested by a Joomla training student in our forum. They wanted to make images and videos on their site more interesting by showing them in a pop-up.

Our advice was to try Rokbox from Rockettheme. This extension can place images, videos, audio files, flash files or even entire websites inside a pop-up. This plugin is also available for WordPress.

We're going to show you several ways to use Rokbox on your site:

Installing Rokbox

  1. Rokbox can be downloaded from the downloads section of Rockettheme.com.
  2. Download both the "Content" and the "System" plugins. If you're using Joomla 1.5, download the top two files. They will be named:
    • Rokbox Content Plugin
    • Rokbox System Plugin
  3. In your Joomla site, go to Administrator >> Extensions >> Install / Uninstall and upload both.
  4. Go to Administrator >> Extensions >> Plugin Manager and enable both.

Testing Rokbox

The normal way of using Rokbox will only work inside articles. Try using this simple example as a test:

{rokbox}images/save.png{/rokbox}

That should place Joomla's save button inside a pop-up for you and also generate a thumbnail for you to click on.

If that doesn't work, you may have a problem with generating thumbnails automatically. You can then try one of these two options:

  • Use a text link: {rokbox title=|click here|}images/save.png{/rokbox}
  • Use your own image: {rokbox thumb=images/save.png}images/save.png{/rokbox}

Using Rokbox in Articles

There are lots of examples on the Rockettheme demo site: Rocketwerx.com. These are very simple examples to get you started:

  • Remote images: {rokbox}http://www.ostraining.com/logo.png{/rokbox}
  • Audio files: {rokbox}images/audio/example.mp3{/rokbox}
  • Flash files: {rokbox}images/flash/example.swf{/rokbox}
  • Youtube videos: {rokbox}http://www.youtube.com/watch?v=4BY40QvWQKE{/rokbox}
  • Another website: {rokbox}http://www.google.com{/rokbox}

Using Rokbox Outside of Articles

You can use Rokbox in your other extensions. The only thing you need to do is modify your links so that they contain rel="rokbox".

For example < a href="http://google.com" > becomes < a href="http://google.com" rel="rokbox" >  (I've added a space after each < and before each > so you can see the code)

We've used this technique inside many different extensions.

Configuring Rokbox

There are three places where you can configure options for Rokbox:

1) Inside Extensions >> Plugin Manager >> Content - RokBox

Here you can change the settings for the thumbnails that Rokbox generates automatically:

Roxbox Content Plugin

2) Inside Extensions >> Plugin Manager >> System - RokBox

Here you can select from several different themes for Rokbox. The default is "Light" which provides a white background, but there are others:

Roxbox System Plugin

If you enable "Legacy Parameters", you'll also get a much wider range of options. Full documentation on those is available on the Rocketwerx site.

3) For Individual Pop-Ups

We saw some examples earlier. Here are some ways you can modify individual pop-ups:

  • Set files sizes: {rokbox size=|400 100|} ... this will show an image, flash or video file as 400px wide and 100 high.
  • Set website sizes: {rokbox size=|65% 80%|} ... this will show a website as 65% of it's normal width and 80% of it's height.
  • Custom thumbnail: {rokbox thumb=|images/example.jpg|} ... so you don't have to use the one automatically generated by Rokbox.
  • Custom title: {rokbox title=|This is a cool image|} ... this is what people will click on to see the pop-up, or if there's a thumbnail, this is what they will see if they hover their mouse over the thumbnail.


 

Comments 

 
# staycu 2010-09-04 09:29
Hello.
How can I setup the rokbox on my wordpress, because I activate it, i select the rokbox category from replicant settings, i insert in post the code

"[rokbox title="Audi RS8 :: Sample Caption for RS8 Image" size="561 350" thumb="http://demo.rockettheme.com/extensions/images/stories/demo/rokbox/rs8_thumb.jpg"]http://demo.rockettheme.com/extensions/images/stories/demo/rokbox/rs8.jpg[/rokbox]"

and when I want to preview the index page, the rokbox is active,but the image isn't in right, is under the text,in left side... how can I fix this ?

Thanks a lot
Reply | Reply with quote | Quote
 
 
# steve 2010-09-04 10:20
Hi Stacy

Try this for using Rokbox in WordPress: http://www.ostraining.com/newsletters/wordpress/using-rokbox-in-wordpress/
Reply | Reply with quote | Quote
 
 
# staycu 2010-09-05 02:44
Thank you man !
Best Regards !
Reply | Reply with quote | Quote
 
 
# Hugo Baronti 2010-10-04 20:41
the plugin is available for Joomla!!!!!
Reply | Reply with quote | Quote
 
 
# Diverso 2011-10-09 03:34
Hi,

doeas anyone know if it's possible and how to include a link inside the caption? I'm running joomla 1.5.22 with rokbox all I want is too have a link to live site inside the caption.
Reply | Reply with quote | Quote
 
 
# xaanaax 2010-10-11 01:52
Hi,
thanks for great tutorial. I've installed both files, enabled it but it doesn't work:( What can be wrong?
In the article I've got code:

{rokbox thumb=|images-new/sep/01s.jpg|}images-new/sep/01.jpg{/rokbox}{rokbox thumb=|images-new/sep/02s.jpg|}images-new/sep/02.jpg{/rokbox}{rokbox thumb=|images-new/sep/03s.jpg|}images-new/sep/03.jpg{/rokbox}{rokbox thumb=|images-new/sep/04s.jpg|}images-new/sep/04.jpg{/rokbox}

In page the thumbnails are visible but when I click on them nothing happens:(

Any ideas? Earlier I had joomla 1.5.14, I've updated it to the newest 1.5.20 but
it didn't make any difference...
http://msurowiecki.netau.net/index.php/inne/76-subedit-player-windows-7
Reply | Reply with quote | Quote
 
 
# pgm 2011-08-02 03:19
Heya,
I'm using rokbox in joomla to run a youtube video, but nothing displays. I use Safari 5.1. does anyone know if I need a plugin or a software update? I can run it in IE8 fine and a mate can run it on his Safari 5.1 on his IMAC.
Reply | Reply with quote | Quote
 
 
# dwisetiawan 2011-08-19 02:25
help me plise
I've tried using rokbox on-the-tourist-template joomla 1.5 but can not use.if the other types of templates can appears.
Reply | Reply with quote | Quote
 
 
# Micha 2011-09-19 10:21
Hi,
I wants to open a new site with the rokbox-plugin after a click on the submit-button in my html-form. But i have any idea for a solution.
Reply | Reply with quote | Quote
 
 
# ChrisS 2011-10-01 12:32
Great tutorial - Question?
I have tons of instructional videos on my joomla site.

Can I use these inside rokbox? or do I have to host at you tube?

Can I use other embed codes from other sites too or just you tube? Thanks tons Chris
Reply | Reply with quote | Quote
 
 
# Fabio Moretti 2011-10-02 19:48
Hello, can someone help me... i'm trying to display my "logo.png" in my own videos inside rokbox.
(I´m new in css editing!!!!!!!! )

I'm thinking edit "rokbox-style.css" to add some line like (??) "#rokbox-container{}"... but i do not know syntax...

Is this the right way???
Any Sugestions??

Thanks
Fabio
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-10-09 15:11
Hi and welcome, everyone!

Sorry for the inconvenience, but if you're a student at OSTraining, could you copy and paste this into the support forum so one of our support techs can look into it for you? All you have to do is log in at www.ostraining.com and click on Support Forum in the main menu.

It's hard for us to monitor support requests in the comments of blog posts, so if you're a student at OSTraining please use the support forum where we answer all questions within a business day.

Please see the support FAQ for more information:
www.ostraining.com/.../

Kind regards,
Nick
Reply | Reply with quote | Quote
 
 
# Ben Yip 2011-10-22 20:14
Hi,

Thanks for this great tutorial and I found Rokbox is one of the useful free tools in Joomla!

I am using Rokbox for sometimes, and now I need to use it to show a long and width table in jpg format.... I think the best way to show is set the jpg as pop-up image and size in "maximum" of the visitors' screen with the ratio. But I can't find any parameter or way to do so, anyone has idea? Thanks!!
Reply | Reply with quote | Quote
 
 
# iowawebco 2011-10-24 14:47
Hi and welcome, Ben!

Sorry for the inconvenience, but if you're a student at OSTraining, could you copy and paste this into the support forum so one of our support techs can look into it for you? All you have to do is log in at www.ostraining.com and click on Support Forum in the main menu. Here's the direct link too: www.ostraining.com/support-forum

Please see the support FAQ for more information:
http://www.ostraining.com/support-faq/

Kind regards,
Nick
Reply | Reply with quote | Quote
 

Add comment