WP Flash Titles Plugin 2.0

Date: 22nd April 2008 at 3:02 pm | Filed under: development, flash, plugins, wordpress | Author: Sam Burdge

This WordPress plugin allows you to display your post titles in any font, colour and size you want using Flash. It will also retain your original html styling of your titles and display that to users who don't have Flash installed. It is fully customisable via the Options tab in wordpress. It is search engine friendly and easy to implement.

Update:

Version 2.0 includes 2 basic changes.

  1. The way the options are saved has been changed to address the problems some users were having with this.
  2. More pre-installed fonts.

Example:

I am happy with my WordPress theme as it is, so I have set up this example page for you to see the Flash Titles in action: WP Flash Titles Example Page

Installation:

  1. Upload the wp_flash_titles folder to your wp-content/plugins folder.
  2. Activate the plugin from the Plugins page.

Usage:

  1. Go to Options -> WP Flash Titles to choose your font, size and colour scheme for your titles.
  2. You need to modify your template file slightly. First you need to locate the code that relates to the post title. This will typically be something like:
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark">
    <?php the_title(); ?>
    </a>
    </h3>
  3. You then need to add two lines of code. First paste this line in directly before the page title code:
    <?php if(function_exists('wp_flash_titles')){wp_flash_titles($post->ID,'start')} ?>
  4. Then this line directly after:
    <?php if(function_exists('wp_flash_titles')){wp_flash_titles($post->ID,'end')} ?>
  5. To embed any font you want you must have Flash CS3. Open the source file 'wp_flash_title.fla' which is located in the 'Source' folder of the plugin. In flash simply change the font of the text area to any font you wish. Do a 'Save As' and then publish the swf. Once you have created the swf you must upload it to the folder: wp-content/plugins/wp_flash_titles/flash
    It will now appear in the list of fonts in the Options -> WP Flash Titles page!!

Download Plugin:


26 Responses to “WP Flash Titles Plugin 2.0”

  • Comment by Printer
    Date: April 22nd, 2008 at 8:33 pm

    Hi, thanks for this great plugin. Unfortunatly I can’t seem to get it to work. I followed the instructions. But I can not see an example image inthe options page, and when I insert all the option values after update options the option boxes are empty again. Any idea how this can be? I’m onWP 2.5

  • Comment by Sam Burdge
    Date: April 22nd, 2008 at 10:34 pm

    Hi Printer,

    Sorry, it was my mistake…I hadn’t updated one of the plugin files correctly. Please download again and re-install and it should work.

    Sam

  • Comment by Printer
    Date: April 22nd, 2008 at 11:20 pm

    Ah, thanks! the optionpage is working now. I seem to run in to another problem now. when I refresh my site it goes blank(empty). the dashboard ist working though. i have this code in my ‘index’ now:
    ID,’start’)} ?><a href=”" rel=”bookmark” title=”Permanent Link to “>ID,’end’)} ?>
    this should be correct is it?

  • Comment by Printer
    Date: April 22nd, 2008 at 11:22 pm

    ow, i see the code did not displayed corect in my comment.

  • Comment by Sam Burdge
    Date: April 23rd, 2008 at 1:01 am

    The code should be something like:

    < ?php if(function_exists('wp_flash_titles'))
    {wp_flash_titles($post->ID,’start’)} ?>
    <a href=”< ?php the_permalink() ? rel="nofollow">” rel=”bookmark”>
    < ?php the_title(); ?>
    </a>
    < ?php if(function_exists('wp_flash_titles'))
    {wp_flash_titles($post->ID,’end’)} ?>

  • Comment by Stephen
    Date: April 24th, 2008 at 2:25 pm

    Hi,

    I am trying to use the plugin once again. The saving options problem seems to be fixed, thanks. BUT when I activate and try to use the plugin, only the first two posts on my home page get flash titles and all the others are completely missing. I have about 20 posts showing on my homepage btw.
    Any advice? Thanks!

  • Comment by Sam Burdge
    Date: April 24th, 2008 at 2:55 pm

    Hi Stephen

    It could be one of a few things causing this. Let’s start with the basics, have you tried emptying your browser’s cache and refreshing the page?
    Does this behaviour occur on all pages of your site (monthly archives, single category pages, etc) or just on the home page? Do the titles that aren’t appearing contain any special html characters (&#@!”‘, etc.)?

    Sam

  • Comment by Stephen
    Date: April 24th, 2008 at 3:40 pm

    Thanks for the reply. I see that it seems to be browser specific. In Safari it looks fine and in Firefox 3 beta I am having the problem of no titles after the first two.

  • Comment by brian
    Date: May 6th, 2008 at 8:59 pm

    Thanks for the plugin, it’s great!

    I was wondering… how to configure the plugin if you want the background to be transparent?

  • Comment by Sam Burdge
    Date: May 7th, 2008 at 3:05 pm

    Hi Brian
    I hadn’t thought to add an option for transparent…I’ll have to add that feature in the next release! For now you could use this workaround…

    change the line of the plugin’s code:
    so.write(”flash_title_’.$flash_title_id.’”);

    to:
    so.addParam(”wmode”,”transparent”);
    so.write(”flash_title_’.$flash_title_id.’”);

    Hope this works for you…
    Sam

  • Comment by Jayvee
    Date: May 7th, 2008 at 5:38 pm

    Hey, great plug-in but sadly it won’t work in my site. The options panel don’t show the fonts.

    How do I fix that? =(

  • Comment by Jayvee
    Date: May 7th, 2008 at 6:15 pm

    BTW I’m using WP 2.5.1

    Thanks.

  • Comment by Jayvee
    Date: May 10th, 2008 at 10:15 pm

    I already figured out the problem. I upgraded the swfobject.js file. Thanks for the plugin.

  • Comment by Mikester
    Date: May 12th, 2008 at 7:13 am

    I just couldn’t get it to work…… :-(

  • Comment by Stephen
    Date: May 23rd, 2008 at 2:45 am

    Hi, it is me again. Just wondering if you will be updating your plugin to work with the new Firefox? Thanks!

  • Comment by alectro
    Date: June 10th, 2008 at 8:27 pm

    Hi Sam, I followed the instructions but I cant see it working both on Index and Single.

    That’s the blog: http://www.laondagrafika.com/blog/

    Thanks!

  • Comment by alectro
    Date: June 10th, 2008 at 8:28 pm

    ID,’start’) ?>
    <a href=”" rel=”bookmark”>
    ID,’end’) ?>

    thats the code I put on that files.

  • Comment by Ryan Creighton
    Date: June 12th, 2008 at 12:59 am

    Hi! GREAT plugin idea! i desperately want to use it.

    The trouble is that when i install the plugin, i get this error message:

    Plugin could not be activated because it triggered a fatal error.

    When i go to the plugin page under Options, i see various errors like:

    WordPress database error: [Table 'untolden_wrdp1.wp_flashtitles' doesn't exist]

    There are numerous similar errors. i checked my database, and it looks like the tables that the plugin needs aren’t getting installed.

    Any suggestions? i’m running ver 2.2.2.

    THANKS!!

  • Comment by zulu
    Date: June 13th, 2008 at 7:13 pm

    Hi. Great plugin :) Got one problem: There’s a “free space” before the title, means title, date and post don’t begin at the same beginning *lol* know what I mean? Visit my site to check, I can also send a screenshot if wanted (I don’t know how long this plugin will be activated). How can I fix this? Thanks a lot!
    zulu

  • Comment by zulu
    Date: June 13th, 2008 at 7:25 pm

    It’s me again! Another problem: The flash titles don’t link to full post as they used to do before, so I uninstalled the plugin now. But screenshot is ready to send ;)

  • Comment by Come Creare Titoli in Flash su WordPress Usando Qualsiasi Font | kosmo blog
    Date: July 7th, 2008 at 9:24 am

    [...] WP Flash Title è questo il nome del plugin che permette tutto questo. [...]

  • Comment by Fernando
    Date: August 6th, 2008 at 9:10 pm

    Hi Sam! Contratulations for the plugin, I think is amazing!

    You know? Im using the default theme for wordpress, the original code says:

    < div class=”post” id=”post-” >
    < a href=”" rel=”bookmark” title=”Permanent Link to ” >

    But when i replace this code for:

    ID,’start’)} ?>
    <a href=”” rel=”bookmark”>

    ID,’end’)} ? >

    … then the theme no work. :(

    I dunno where Im mistake. Can you help me? Thank you so much and sorry for my english language, still is very poor. :)

  • Comment by Fernando
    Date: August 6th, 2008 at 9:29 pm

    Hi again Sam…. i found my mistake, i forgot write class=”storytitle” in the code… is ok now… thank you so much again… your plugin is cool

  • Comment by steve
    Date: September 12th, 2008 at 8:29 pm

    hey there,
    thanks for the great plug! but i have a little prob:
    I am usin the lightbox2 plug to view my pics. when the lightbox effekt is running, the titles are “flashing” through the background of lightbox and sometimes appearing on the images. I recognized that this happens with every flash content embedded on the page… so its not really an issue for you but you might know a little workaround for that.
    it could be something with the z-indexes i guess?

    steve

  • Comment by Ronan
    Date: November 5th, 2008 at 10:24 pm

    Thanks Sam,

    great plug in,

    how would you code this to use in the main navigation of K2. it would solve many problems!
    Thanks

    Ronan

  • Comment by burak
    Date: November 9th, 2008 at 12:17 pm

    Thanks for that great plugin. The code, that you gave as an answer for the transparenc stuff, does not work. so.addParam(”wmode”,”transparent”);
    so.write(”flash_title_’.$flash_title_id.’”);

    I need that transparency and a little donation is on the way. Thanks.

Leave a Comment

WP 2.5 Gallery Lightbox Plugin

Date: 12th April 2008 at 10:17 pm | Filed under: plugins, scripts, wordpress | Author: Sam Burdge

This WordPress plugin adds the Lightbox feature to image links and to the new WordPress 2.5 gallery feature too. It uses the jQuery Lightbox Plugin by Benjamin Arthur Lupton to create the lightbox effect, and adds rel="lightbox" to image links in posts, pages and galleries as demonstrated in the example below:

Updates:

25/4/2008 - Minor update to version 1.1
- updated jquery version to 1.2.3 to fix IE7 bug.

28/4/2008 - Minor update to version 1.2
- added priority of 12 to add_filter to bring in line with 2.5.1 shortcode priority.
- moved style elements to the head of the page so that the gallery XHTML code validates! (<style> tags are not allowed in the body of the page)

29/4/2008 - No version update
- minor bug fix - changed the modifier of the first preg_replace statement to U (ungreedy)

2/5/2008
Minor update to version 1.3
- css bugfix for safari 3.1.1

Installation:

  1. Download the plugin using the link below and unzip it.
  2. Upload the folder 'wp_gallery_lightbox' to your 'wp-content/plugins' folder
  3. Activate the plugin from the plugins page

96 Responses to “WP 2.5 Gallery Lightbox Plugin”

  • Comment by allan
    Date: April 13th, 2008 at 6:57 pm

    The lightbox seems to break if you go to setting>misc and uncheck: Crop thumbnail to exact dimensions (normally thumbnails are proportional)

    Other than that it’s awesome.

  • Comment by John Staplehurst
    Date: April 13th, 2008 at 8:40 pm

    Works great, and props for getting this out!
    Two comments:
    1) does not cope if you change the thumbnail sizes away from the default 150px - any chance the dimensions can be picked up dynamically?
    2) Best way to remove the rather in-your-face attribution line from the top of the overlay screen?

    thanx, —john—

  • Comment by Sam Burdge
    Date: April 13th, 2008 at 8:52 pm

    Hi Allan

    Thanks. I wasn’t aware of that option, I will test it and update the plugin within the next few days so that it works with both options.

    Sam

  • Comment by Sam Burdge
    Date: April 13th, 2008 at 9:10 pm

    Hi John

    If you download it again and re-install you will see that the attribution line is gone. It was bothering me too!

    In a few days I will upload a new version that supports all thumbnail sizes.

    Sam

  • Comment by John Staplehurst
    Date: April 13th, 2008 at 9:46 pm

    Thanks !!!

  • Comment by Sam Burdge
    Date: April 14th, 2008 at 12:24 am

    Hi Allan & John

    The plugin is now updated to incorporate thumbs of any dimensions! Picking up the size dynamically wasn’t the problem, it was that wordpress adds the dimensions to the end of the filename of each thumbnail (image-150×150.jpg)

  • Comment by Martin Peine
    Date: April 14th, 2008 at 4:44 pm

    Hi,

    thanks for the great addon! But i noticed that it always uses the original size-version of an image for the thumbnail preview, if i use ‘ instead of ” in the links.

    The same happening to someone else?

  • Comment by Sam Burdge
    Date: April 14th, 2008 at 6:28 pm

    Hi Martin
    I could only make it work with either ‘ or ” in the links, so I opted for “. Maybe I’ll come up with a solution for this, but for now I guess you’ll have to use “.
    Sam

  • Comment by Martin Peine
    Date: April 14th, 2008 at 6:40 pm

    No problem, your plugin still helps me very much.

    But while setting up a new website i noticed something else. If there is a button with a link to another page, it shows the button in the lightbox, instead of going to the page.

    Difficult to explain, so i made a screenshot. As an example, it happens if i click in the RSS-button on the upper right:

    http://schrott.zukunftia.de/spark/lightbox_button.png

    The button links just to the RSS-feed in that case. Thanks in advance!

  • Comment by Jesse
    Date: April 15th, 2008 at 8:43 pm

    I am having a similar problem to Martin. I have a page that I am wanting to not use the lightbox plugin on and am manually inserting images with anchor links around them and for some reason the plugin is adding the lightbox tag. For example I have a video file I want to link to with a small preview image but for some reason lightbox is messing around and making the large version of the uploaded thumbnail image instead of actually linking to the video file. Any ideas why?

  • Comment by Sam Burdge
    Date: April 17th, 2008 at 2:17 pm

    Hi Martin and Jesse

    I will try to work out a solution to this problem and update the plugin within the next few days.

    Big thanks to all commenters for helping me to iron out these teething problems with the plugin!

    Sam

  • Comment by Pete
    Date: April 18th, 2008 at 4:18 am

    My post hasn’t been approved from before, I think it was because I included some html code in it to explain my problem.

    Anyway just to summarise it’s the same problem as both Martin and Jesse and also I still can’t use “widescreen” thumbnail sizes.

    Basically 150×150 or 120×120 or any equal sized thumbnails worked perfectly but 128×72 or the like makes it so the lightbox doesn’t work (it links to the thumbnail not the full size).

    Another problem I have is that the lightbox doesn’t position large images correctly, is there a way we can use thickbox or something instead?

    Basically some of the images I have are 3000pixels wide and the image is cut off on the screen for a while and then it clicks in place (takes awhile). Thickbox I think it was actually scaled down the image so that this wasn’t a problem.

  • Comment by John Staplehurst
    Date: April 19th, 2008 at 12:32 pm

    Hi Sam,
    Thanks for the plugin update. I’ve traced what I assume to be part of my problem (and it may be part of Pete’s too) to this statement in your plugin:

    $thestr2 = preg_replace(’/<a(.*?)href=(.*?)-([0-9][0-9][0-9])x([0-9][0-9][0-9])/i’,'<a$1href=$2′, $thestr);

    which is assuming a 3×3 digit thumbnail size. Since mine were 128×96, the replace failed. I have substituted this:

    $thestr2 = preg_replace(’/<a(.*?)href=(.*?)-(\d+)x(\d+)/i’,'<a$1href=$2′, $thestr);

    and it seems to do the trick. I’m no expert at PHP, but I couldn’t see any bad effects of of using the \d pattern here. You may know better!

    cheers, and thanks for the plugin!, —john—

  • Comment by Sam Burdge
    Date: April 20th, 2008 at 12:25 pm

    Hi John

    I had also identified that part as the problem and was thinking along the same lines as you. The \d+ should work fine. I will update the plugin accordingly and re-upload. Thanks for your feedback.

    Sam

  • Comment by chiwan
    Date: April 22nd, 2008 at 6:13 pm

    hi.

    a problem for me: after activating plugin, it tries to load the header image in a lightbox effect, which leads to freeze on a blank white frame.

    is there a way i can exclude the header image from being tagged for lightbox?

    thank you.

  • Comment by Sam Burdge
    Date: April 22nd, 2008 at 10:49 pm

    Hi Chiwan

    This problem (The same problem experienced by Martin & Jesse in previous comments) should now be solved. Please download again and re-install.

    The plugin should now only add lightbox to the gallery and to links that point to an image i.e. a href=”example.jpg”

    Sam

  • Comment by hj barraza
    Date: April 24th, 2008 at 4:28 am

    i tried it,

    but as soon as i activated it it directly showed up the lightbox trying to load an image and looped there.

    this in all pages…

  • Comment by Sam Burdge
    Date: April 24th, 2008 at 11:59 am

    Hi HJ Barraza
    It sounds like it’s clashing with javascript that is generated by another plugin. Do you use any plugin that uses either jQuery.js or any other lightbox effect built in?
    Sam

  • Comment by Jonathan
    Date: April 24th, 2008 at 1:59 pm

    This is the plugin that I have been looking for, but it uses the original image size uploaded by wp instead of the “medium” size. Is there a way to pick up this medium size dynamically? I realize it might be tough because we all my specify different sizes and if the image is vertical, it may mess up the dimensions.

  • Comment by Sam Burdge
    Date: April 24th, 2008 at 2:11 pm

    Hi Jonathan
    Unfortunately with the method I used it is not possible to choose between using the medium size or full size image. It had to work with either one or the other, and I chose the full size as I felt it was the most useful option.
    The best way around this is to resize your images before you upload them, you can set up an automated batch in Photoshop to save time on this.
    Sam

  • Comment by Jonathan
    Date: April 24th, 2008 at 3:22 pm

    That is what I thought Sam. Is there a way edit the code to use the medium size since I know how WP will resize them? I tend to like to have access to all the sizes of an image, so if I want to look at some detail, I can download the full size image, but generally stick with the medium sized images for quicker browsing.

    Perhaps in Lightbox, one could create a link to close light box and open the full sized image? Just thinking out loud.

  • Comment by Marcus King
    Date: April 25th, 2008 at 10:59 am

    Hi there

    This is a great plugin, however when I have an individual picture as opposed to a gallery the title is not displayed. Any thoughts anyone, the difference I noticed between the links made in 2.3 v 2.5 are the title=”something” is missing from the link tag

  • Comment by Sam Burdge
    Date: April 25th, 2008 at 11:31 am

    Hi Marcus

    I know this sounds obvious, but did the link have a title to begin with? alt=”something” is not the same. Also with this lightbox the title appears when you mouse-over the image.

    Sam

  • Comment by Jesse
    Date: April 25th, 2008 at 4:05 pm

    Hi Sam,
    Downloaded the latest version of the plugin but I am still experiencing the same problem as I was previously. It seems that the plugin in placing the rel=”lightbox-6″ code into the img tag in my particular case. The code ends up looking like:

    <a href=’http://example.com/blog/wp-content/uploads/2008/04/groundround-soundlogo-1.mov’ rel=”nofollow”></a>

    It seems as though the code is being placed, awkwardly in the img tag for some reason unknown to me. Any ideas on what might be causing this?

  • Comment by Sam Burdge
    Date: April 25th, 2008 at 4:34 pm

    Hi Jesse
    I dont see the img tag in your example code?? Also there is no rel=”lightbox” in the ‘a’ tag. If you want I can have a look at your page and maybe that will help me to spot the problem. Send me a comment with a link to the page. If you want to keep the page address private just say so in your comment and I won’t publish the comment on my site.
    Sam

  • Comment by Jesse
    Date: April 25th, 2008 at 8:49 pm

    Oops, looks like the HTML got stripped from that comment. Anyways the page in question is here. http://insightadvertising.com/blog/?page_id=6 The first 6 images link to a .mov file but the plugin is putting lightbox code into the image tag between the closing / and >.

  • Comment by Sam Burdge
    Date: April 26th, 2008 at 1:30 am

    Hi Jesse
    I had a look and I think I have detected the bug in the code that is causing the problem. I have made a minor change to the plugin’s code and re-uploaded it. You don’t need to do a full re-install, just replace the ‘wp_gallery_lightbox.php’ file with the new one. Let me know if it works.
    Sam

  • Comment by Ahmed
    Date: April 26th, 2008 at 11:10 am

    It interferes with the action of my Featured Content Gallery plugin .. Any solution ??

  • Comment by switch
    Date: April 26th, 2008 at 1:49 pm

    When I insert images into my post plugin works fine. But it doesn’t work with gallery. Here is my example: http://www.stn.agh.edu.pl/archives/73 (gallery is at the end of the post). What have I done wrong?

  • Comment by michae
    Date: April 27th, 2008 at 5:07 am

    Hi Sam,
    I just upgraded to wp 2.5.1 and your great plugin stopped working, I tried to find out why and did not find a reason - do you have a clue?

  • Comment by Sam Burdge
    Date: April 27th, 2008 at 12:58 pm

    Hi Ahmed
    I’m not familiar with that particular plugin, in what way does it interfere? I’m guessing that the Featured Content Gallery plugin has the code ‘add_filter(’the_content’, ‘function_name’, X)’ where function_name is the plugins function and X is a number. If so try removing the ‘, X’ from the filter and see if that works.
    Sam

  • Comment by Sam Burdge
    Date: April 27th, 2008 at 1:00 pm

    Hi Michae
    I haven’t made the upgrade to 2.5.1 yet, but will be doing so this week. At that point I will run some tests and get back to you.
    Sam

  • Comment by Sam Burdge
    Date: April 27th, 2008 at 1:35 pm

    Hi Switch
    This may be the same issue michae is experiencing with 2.5.1. I will have more info / updated version of the plugin within the next few days.
    Sam

  • Comment by Sam Burdge
    Date: April 27th, 2008 at 7:46 pm

    Hi Michae & Switch
    Here’s a quick fix to make the plugin work with 2.5.1:

    in ‘wp_gallery_lightbox.php’ change the line:
    add_filter(’the_content’, ‘gallery_lightbox’);
    to:
    add_filter(’the_content’, ‘gallery_lightbox’,12);

    This fix may stop the plugin from working in 2.5 - and also may cause clashes with other plugins which also add filters to ‘the_content’ - so, for this reason, an updated 2.5 / 2.5.1 compatible version of the plugin will not be released just yet…sorry
    Sam

  • Comment by hj barraza
    Date: April 28th, 2008 at 2:30 am

    @Sam
    My template is using Mofx and some other lightbox, i didnt saw it before. i’ll try to hack it… any recomendation is appreciated
    : )

  • Comment by michael
    Date: April 28th, 2008 at 7:26 am

    Hi Sam,
    thanks for the hint, it works again!

  • Comment by Sam Burdge
    Date: April 28th, 2008 at 11:07 am

    Hi Michael
    Glad it works again! I’ve made an updated version of the plugin based on that change - and one other important change which moves the css that the gallery inserts into the post up to the head of the page where it should be. So I would recommend a re-install…
    Sam

  • Comment by Sam Burdge
    Date: April 28th, 2008 at 11:13 am

    Hi HJ Barraza
    It’s the other lightbox from your template which is causing it to bug. You can probably fix this by removing the link to the plugin’s lightbox script and just using the one that comes with your theme. To do this you can comment out the following line of the plugin’s code:
    add_action(’wp_print_scripts’,'wp_lightbox_js’);
    like this:
    //add_action(’wp_print_scripts’,'wp_lightbox_js’);
    Hopefully that will work for you. If not then you could edit your template’s Header file and remove the call to the lightbox js from there.
    Sam

  • Comment by Bárbara
    Date: April 28th, 2008 at 1:56 pm

    It’s possible that plugin work only in “medium” images, so the thumbs redirect for the gallery page.

  • Comment by Sam Burdge
    Date: April 28th, 2008 at 2:06 pm

    Hi Bárbara
    Do you mean so the thumbs link to the medium version of the image? Or so that only medium images link to the lightbox, while thumbs link to the wordpress attachment page?
    Sam

  • Comment by switch
    Date: April 28th, 2008 at 3:46 pm

    Hi Sam
    Version 1.2 works geat! Tanks!

  • Comment by Jesse
    Date: April 28th, 2008 at 6:47 pm

    So does version 1.2 only work in WP2.5?

  • Comment by Jesse
    Date: April 28th, 2008 at 6:48 pm

    errrrrr. I meant 2.5.1 :)

  • Comment by Sam Burdge
    Date: April 28th, 2008 at 7:00 pm

    Hi Jesse
    It should now work in both…but I think most people will be upgrading to 2.5.1 pretty soon as 2.5 has security flaws.

    Version 1.2 of the plugin also moves the style tags generated by the gallery to the head of the page so that the page validates…worth upgrading I think
    Sam

  • Comment by Jesse
    Date: April 29th, 2008 at 3:47 pm

    Ok I have another strange issue that cropped up. The gallery code works fine. But on pages that I have small thumbnail images linking to either a video file or an external website I have the problem that only the odd numbered images in a sequence work properly whereas all the even numbered images have rel=”lightbox” tags attached to them and clicking them brings up the lightbox loading wheel and gets stuck there. Very strange indeed. Page in question: http://insightadvertising.com/blog/?page_id=6 images 1,3,5 etc work fine, images 2,4,6 etc dont. o_O

  • Comment by Sam Burdge
    Date: April 29th, 2008 at 9:17 pm

    Hi Jesse
    I have fixed this bug, hopefully it’s the last! I’ve re-uploaded the plugin. You only need to replace the ‘wp_gallery_lightbox.php’ file this time.
    Sam

  • Comment by Jesse
    Date: April 30th, 2008 at 5:43 pm

    Thank you! It’s working wonderfully. :)

  • Comment by FruityOaty
    Date: May 1st, 2008 at 5:15 am

    I updated to WP 2.5.1… and it stopped working.

    I updated to plugin version after your April 29 comment (bug fix for WP 2.5.1)… still not working.

    I commented out (as suggested) //add_action(’wp_print_scripts’,’wp_lightbox_js’);

    … and still not working. :(

    Too bad, it was the only lightbox plugin (I tried 5) that I found that worked idiot-proof with K2 theme… well, until I updated to WP 2.5.1. I don’t know what to do now… I’m kinda low on the tech-know-how. :)

  • Comment by FruityOaty
    Date: May 1st, 2008 at 6:20 am

    Oh wow… I didn’t notice this before in IE 7.0.5730.13! Tested, OK in Firefox 2.0.0.14.

    Upload load of home page, nothing else shows up on my home page except a loading “lighbox” (that’s all). It just spins and spins, but nothing loads in that lightbox image… only in IE 7.

    And an IE script error pops up:
    Line: 3939
    Char: 9
    Error: Object doesn’t support this property or method
    Code: 0

    Wow… OK, I had to deactivate the plugin. Everything’s but to normal. I didn’t realized no one could access my site via IE 7 with the plugin activated.

  • Comment by FruityOaty
    Date: May 1st, 2008 at 6:22 am

    Typo… I meant… “Upon load of home page”…
    Basically, when my home page loads, nothing else appears except the lighbox effect, even though no picture was clicked on. Weird.

  • Comment by Sam Burdge
    Date: May 1st, 2008 at 11:18 am

    Hi FruityOaty
    The plugin is certainly working with 2.5.1 as my site is running 2.5.1 and it works for me. If you view my site in IE7 you will see that it is also working.
    The most plausible explanation for the plugin not working for you is that it is clashing with other javascript generated by another plugin or by your theme.
    The first thing you could try is a fresh install of the plugin (de-activate the plugin, remove it from your plugins folder, download the latest version and install again, as if from scratch).

    Instead of commenting out the line:
    add_action(’wp_print_scripts’,’wp_lightbox_js’);

    You could try removing the line:
    <script type=”text/javascript”
    src=”‘.get_bloginfo(’url’).’/wp-content/plugins/wp_gallery_lightbox/jquery_lightbox/js/jquery-1.2.3.pack.js”>
    </script>

    This may work if your theme, or a plugin you are using, already includes the jquery script.

    I hope this helps…Let me know
    Sam

  • Comment by Jesse
    Date: May 1st, 2008 at 2:23 pm

    Ran into another snafu on the page I previously linked. The very last image is still getting a rel=”lightbox” tag applied to it. I can get around this issue by adding a blank 1×1 gif with an anchor link around it to trick the plugin to applying the rel=”lightbox” tag to that but it is an issue with the plugin that I thought I would bring to your attention.

  • Comment by FruityOaty
    Date: May 2nd, 2008 at 3:08 am

    Hi, thanks for the answer! Deactivated my plugins… and it turns out it’s incompatible with this WP plugin called “Collapsible Elements” (which I definitely must keep)… http://deuced.net/collapsible-elements/

    Oh, well… I guess I have to say goodbye to your excellent Lightbox plugin. :(

  • Comment by Sam Burdge
    Date: May 2nd, 2008 at 10:33 am

    Hi FruityOaty
    Did you try removing the line of code I suggested before? I had a look at the collapsible elements plugin, but couldn’t see any obvious problem that would cause it to clash…

  • Comment by FruityOaty
    Date: May 2nd, 2008 at 9:40 pm

    Hi, yes, I did remove line - same problem. Anyway, everytime I activate only Collapsible Elements with your Lightbox plugin, my blog goes wonky. I isolated incident to these 2 (by turning off all my plugins and testing one by one).

    Anyway, last night I found another Lightbox plugin that doesn’t clash with Collapsible Elements plugin. No problems together. Works fine together. I have Lightbox again. Yey.

    Thanks for the reply. :).

    To be fair, I think the K2 theme (what I’m using) is probably at fault because K2 theme seems to hate a lot of plugins I’ve tested.

    Thanks anyway for your prompt reply. :)

  • Comment by FruityOaty
    Date: May 2nd, 2008 at 10:00 pm

    I forgot to mention this (re: your new update today version 1.3) … BTW, when I click “upgrade automatically” (in WordPress 2.51), your installer deletes old folder but writes this to plugins folder: wp-25-gallery-lightbox-plugin/wp_gallery_lightbox

    … instead of just wp_gallery_lightbox. Hence, it doesn’t show up in Plugins screen.

  • Comment by FruityOaty
    Date: May 3rd, 2008 at 8:05 pm

    Sorry, last comment (I hope). Just wanted to inform you that the author of Collapsible Elements responded to my issue inquiry and confirmed there is a clash between the plugins.

    http://deuced.net/collapsible-elements/#comment-7234 (COMMENT #54)

    Long reply, but here’s a clip:
    “when both plugins are activated the “Gallery Lightbox” inserts it’s Javascript files twice, the second one where “Collapsible Elements” sits in HEAD section.”

    Honestly… a bit technical for me… so I’m still in the process of trying to understand the reply.

    Anyway, that’s all. :)

  • Comment by bill
    Date: May 3rd, 2008 at 10:49 pm

    Thanks for providing such a great plugin.
    I have a question when I use WP’s automatic update funtion to update this plugin,it does not works after upgrade.I checked it and found WP downloading a file named “wp_25_gallery_lightbox” and unzipped it under the file folder “plugin”.Only after I moved the folder “wp_gallery_lightbox” to the folder “plugin”,this plugin can works again.
    Please check the reason!

  • Comment by Sam Burdge
    Date: May 4th, 2008 at 11:27 am

    Hi FruityOaty
    I had a read of his reply to you, and also tried his solution. It didn’t work for me either, if I get a chance I will study the code for his plugin in more depth and try to get them to work side by side…as for the auto update problem I am aware of it and in the process of trying to get it solved (it’s to do with how the plugin is listed by wordpress)
    Sam

  • Comment by Sam Burdge
    Date: May 4th, 2008 at 11:30 am

    Hi Bill
    Glad you like the plugin. I am in the process of solving the auto update problem…sorry for the inconvenience…
    Sam

  • Comment by Kei
    Date: May 4th, 2008 at 12:22 pm

    hi sam, it’ll be great if you could help me take a look at what’s wrong? i tried your plugin but it ain’t working out well. appreciate it =)

  • Comment by Pat
    Date: May 4th, 2008 at 5:00 pm

    hi, is there a way to open images in lightbox with just a text link (means: no thumbnails)?

  • Comment by mauro
    Date: May 4th, 2008 at 6:29 pm

    I just upgraded to your plugin 1.3 and wordpress 2.5.1.

    The gallery function of worpress does not seem to work with your plugin. Or at least not for me. Any known issue at the moment that might prevent the plugin to work correctly?

  • Comment by Sam Burdge
    Date: May 5th, 2008 at 10:10 am

    Hi Kei
    It may be because you are using ‘ in your links instead of ” (see comment by Martin Peine above). It may also be to do with your permalink structure. Try switching to ” in the links and let me know if it still doesn’t work.
    Sam

  • Comment by Sam Burdge
    Date: May 5th, 2008 at 10:11 am

    Hi Pat
    Just add rel=”lightbox” to the link like:
    <a href=”example.jpg” rel=”lightbox”

    Sam

  • Comment by Sam Burdge
    Date: May 5th, 2008 at 10:13 am

    Hi Mauro
    Did you ‘auto upgrade’ the plugin? I am trying to solve a problem with that at the moment…If so try downloading the plugin from this page and install manually…
    Sam

  • Comment by mauro
    Date: May 5th, 2008 at 9:58 pm

    No autoupgrade, the plugin is correctly installed and visible. It simply does not work with the [gallery] functionality as it should. No errors output, it looks like it has never been installed.

  • Comment by Jeffrey
    Date: May 8th, 2008 at 11:35 am

    Hi Sam
    I’m using your plugin 1.3 and wordpress 2.5.1. Everything is working fine except that the titles all show as “untitled”. Is there something I’m missing out on?
    Thank you in advance.

  • Comment by Nathan
    Date: May 8th, 2008 at 4:38 pm

    Dear Sam,
    I’m having a similar problem as Mauro, the gallery function of wordpress does not work with your plugin…However I’m using 2.5.

    Any suggestions / updates?

  • Comment by mauro
    Date: May 8th, 2008 at 4:39 pm

    Found the solution:

    In wp-includes/post-template.php, line 390 looks like so:

    return “$link_text“;

    Replace this line with the following:

    //mafro lightbox mod
    list($url, $w, $h) = wp_get_attachment_image_src($id, “full”, $icon);

    return “$link_text“;

  • Comment by mauro
    Date: May 12th, 2008 at 4:49 pm

    I fixed the problem but I cannot move from picture to picture while in lightbox mode. The link to ‘next’ does not show at all in the picture.

  • Comment by Mats
    Date: May 13th, 2008 at 12:55 pm

    Hi !

    Does this plugin automatically add the tags necessary for the lightbox plugin to work with all my “old” posts aswell. I was using the lightbox plugin before upgrading to 2.5 and now 2.5.1 and it was working fine.

    I can´t get your plugin to work and I can´t figure out what the problem is…

    Any pointers would me much appreciated…

  • Comment by Michael Romero
    Date: May 24th, 2008 at 7:01 am

    I am trying to use this plugin on a page that has a gallery and it’s inserting the js declarations in the header fine, but it’s not adding in the rel=lightbox tags to any of the gallery’s a href tags. I’m using v1.3 on WP 2.5.1 with the K2 theme.

  • Comment by Freebies-Wordpress Addons-WP 2.5 Gallery Lightbox Plugin 1.3 | Hyper Tech Ninja: Freeware and Technology For All!
    Date: May 31st, 2008 at 8:02 pm

    [...] [Plugin Page] Share This Popularity: 1% [...]

  • Comment by Website Design
    Date: June 3rd, 2008 at 3:23 pm

    It’s gorgeous. Very nice.

  • Comment by mores
    Date: June 10th, 2008 at 4:29 pm

    I’m using a function in my template’s functions.php file that uses
    wp_get_attachment_link
    to display a post’s attached image.

    THis plugin does not add the necessary rel=… code I’d need to make the image lightboxeable :(

    any ideas?

  • Comment by WordPress 2.5.1 and Lightbox - Viloria.net
    Date: June 19th, 2008 at 5:48 am

    [...] found that code adjustment in a comment made by Mauro in WP 2.5 Gallery Lightbox Plugin. Similar to Mauro, I wasn’t able to solve the picture-to-picture issue with that [...]

  • Comment by Soh
    Date: June 28th, 2008 at 1:59 pm

    I paste the rel=”lightbox”, cannot… what happen??
    Try for long time…sad sad sad….

  • Comment by Serpentarius
    Date: July 1st, 2008 at 10:14 am

    i’m using the lastest jQuery core (1.2.6) in my template… i’ve remove the line
    . in ff2, ff3, opera works out fine but Safari keep crashing everytime i click the gallery… can you help me with that? btw i’m using mac

  • Comment by eft0
    Date: July 1st, 2008 at 5:29 pm

    Hey Sam, nice Job, but a question, it work with [gallery] ? Just work with post images, but not when I write in a post [gallery] (every thumb link to a page, i want the ling to lightbox)

  • Comment by will
    Date: July 6th, 2008 at 2:39 pm

    Great Plugin

    Question:

    I have photos low down in my side bar, when selected, since page is scrolled down a bit, the “close” option doesn’t appear. Which could be confusing.

    Is there a way to integrate the “close” with the photo (an “x” in the corner or whatever

    cheers

  • Comment by Nick Prignano
    Date: July 31st, 2008 at 1:04 am

    Doesn’t work for me on WP 2.6. The plugin is working because I see the js files and css included, as well as the rel tag added to the image link… but when i click the thumbnail i get redirected to the full image itself… no lightbox. Please advise.

  • Comment by steve
    Date: August 13th, 2008 at 3:34 pm

    agreed on 2.6 breaking the plugin. same symptoms.

  • Comment by aads
    Date: August 21st, 2008 at 11:31 am

    You are the boss .
    =-=-=-=-=-=-=-=-=-
    thank you very very Much

  • Comment by J Furbish
    Date: September 4th, 2008 at 7:05 am

    Is there a way to get this to display not only the caption, but also the description of the image?

    Other than that I love it!

  • Comment by Richard
    Date: September 6th, 2008 at 11:20 am

    Can you deatil how to convert this to using mootools