WP-GreyBox
Jun 11th, 2007 by Jared Schwager
This is my second WordPress plugin. It automatically adds the GreyBox lightbox to your blog. I have chosen GreyBox over Lightbox 2.0 because GreyBox has much more functionality. It allows you to have lightboxes for images, as well as web pages and even videos. This plugin will also automatically group all the images in a single post into a gallery.
Update:
I am no longer updating this plugin! I am now focusing my efforts on my new WP-Lytebox plugin.
Download v1.1.1 (only tested on WordPress 2.2 and above)
Installation instructions
- Unzip the file and upload the contents to the /wp-content/plugins/ directory on your web server.
- Activate the plugin from your WordPress admin panel.
- That’s all there is to it! Now GreyBox will be enabled on every thumbnail in your posts that is linked to the full-size version.
Changelog
- 1.1.1 - further CSS optimization as well as other code optimization
- 1.1 - optimization to CSS, updated plugin description
- 1.0 - initial release
Related posts
- No related posts

[…] 今天介紹一個Wordpress Plugin:GreyBox。 […]
[…] You can download WP-GreyBox plugin from here. […]
[…] The script can be found here: orangoo.com/labs/GreyBox/ - I however opted for the plugin that can be found here: grupenet.com/ […]
Hi Jared,
Thanks for a great plugin but being a newbee for this sort of thing I need to ask you a very unintelligent question.
How can I embed flv into GreyBox. Or can I?
Yoichi, FLV videos are only playable from within a video player made with flash. So once you have a flash video player you can direct Greybox to that.
Note that my plugin will not automatically insert the code for opening videos and websites. You can look at the source code of this post to get an idea of how to use it.
Jared,
Thanks for your quick response and sorry to bother you again.
Where should I put the flvplayer.swf? In the wp-greybox folder?
And how can I direct greybox to the flvplayer?
Please bare with these beginner’s question.
Thanks in advance for your help.
Yoichi
Thanks, great plugin! Replaced the wp-lightbox2 after a first test, because it generates galleries from a posts pics with no further hassle!
Great, thanks again,
Thomas
[…] WP-GreyBox | Grupenet […]
Hi i have uploaded and activated the plugin but nothing happens my thumbnails still just link to the file in a new window what am i doing wrong? im running wp 2.2 by the way
thanx a lot
Tim
Tim, the plugin will not work if your images are linked to open in new windows. Remove the target=”_blank” from each image link and it should work.
Hello Jared Thankyou for replying, sorry the images arent doesnt open in a new window the thumbs just link to the file no target tag but still nothing happens, this is how the code looks when i insert a thumbnail in a post
<a href="http://www.stylingby.dk/enter/wp-content/deb_steve_orangeflower2.jpg" rel="lightbox[pics30]" title="deb_steve_orangeflower2.jpg"><img src="http://www.stylingby.dk/enter/wp-content/deb_steve_orangeflower2.thumbnail.jpg" alt="deb_steve_orangeflower2.jpg" class="imageframe imgalignleft" height="138" width="138" /></a>You need to remove the rel=”lightbox[picsXX]”. My plugin automatically inserts the rel tag.
Hey Jared-
Just uploaded your plgun for my site, I see it on my Mac in both Safari and Firefox. But I have people complaining that they can’t see it in IE 6.0. Any suggestions?
[…] Visit […]
Great plugin and so easy to install and use. I much prefer this to lightbox and I use it with the Flexible upload plugin. Took me 5 minutes to get both up and running.
A nice feature would be an admin panel to allow some form of configuration such as image size, where the titles appear and so on.
I currently use it to show the pictures of our rooms and will start to use it for the images in our news blog posts
In an earlier post it is said that you can direct Greybox to flash video. I am using the flash media player provided by most hosting provider. It requires a JS script. How do I direct Greybox to use this player.
The Wiki for the player is located at: http://wiki.dreamhost.com/Flash_Media_Player
The Code for the player is as follows:
Get the Flash Player to see this player.
var FO = { movie:”https://media.dreamhost.com/mediaplayer.swf”,width:”320″,height:”240″,majorversion:”7″,build:”0″,bgcolor:”#FFFFFF”,
flashvars:”file=https://media.dreamhost.com/sample.flv&showdigits=true&autostart=false” };
UFO.create(FO,”sample.flv”);
I am not sure what I have to do to direct GreyBox to use this code and how I keep the player from appearing on the page. I would prefer to have text link to the greybox that uses the player.
Thank You,
CO
Hi,
just uploaded the plugin to my WP-Blog. But how can I group pictures to an Gallery? Sorry; I am a totally Newbie too use WP-Plugins.
Caffeine Overload, I don’t know much about the flash player you’re using even after looking at the page you linked to. It seems as if you need to use Javascript on the page to display the video. In that case, you may need to create seperate pages with the video code in them and then link to them that way. If you’re still having trouble, why not try the documentation for GreyBox.
Klaus, the pictures are automatically grouped for each post you make. If you were to include two thumbnails of pictures linking to their full-size ones in one post on your blog, the plugin will automatically group those pictures for that post. The only feature grouping photos gives you is the next and previous buttons. Hope that helps!
I loaded up the plugin but when the image is clicked, it simply opens in a new window. I am using flexible upload with the “grey box plug-in” option.
you can see the post here: http://www.craigmolway.com/blog/208/sand-box-page/
I figured it out. I needed to use the “greybox” attribute in flexible upload and not “grey box plug-in”
great plugin. thanks for the hard work!
[…] WP-GreyBox […]
Hi
Just wanted to say thanks for the plugin, works like a charm
[…] WP-GreyBox | Grupenet […]
[…] bende yeni arayışlara girdim ve karşıma GreyBox’ın wordpress eklentisi yapılmış versiyonu (WP-GreyBox) çıktı Denedim ve sorun çıkartmadı. GreyBox’ın aslını şuradan wordpress eklentisini […]
Hi all, I seen there is no more support from plug-in developer for this plugin yet maybe somebody can help me.I know in Greybox I can also launch URL’s and like to do so with an Google mao, is there anything to configure for that?? Thanks for any pointers. And yes,…. that’s an fly-by-night thing, I just got the Team Baja Quest Racing asked me to do there page and the site and the Baja Race is in 2 days….. so: Please help!!
This is the map I like to display with that plugin:
http://www.puro-off-road.com/map/baja.html