Thumb-in-Post Version 0.92

This is a minor update to the Thumb-in-post plug-in for WordPress. It’s a very minor update to the plug-in and corrects two small problems:

  • The code now validates as XHTML. If you are getting problems with validation using the plug-in, check that the tag inserted into your post is on a line by itself, with a blank line above and below it. This will ensure that <p> elements are properly inserted into the text by WordPress.
  • The plug-in now correctly applies class attributes to the <div> elements surrounding the image and caption.
  • Fixed the bug that causes the ‘Picture’ quicktag button to incorrectly insert the wp:pic custom tag

Download it here.

If you are using v0.9 or v0.91, all you should have to do is install the .php file.

3 Comments »

  1. Comment by Randyd — September 5, 2004 @ 5:08 pm

    A few more corrections to make it validate are:

    In the .php file, beginning with “thumb in post starts…
    find the code:

    //Now generate the html code to insert the image into the page

    // attach an id (from $attributeValue[‘DivId’]) to the divstart to give it a unique identity
    $divstart = $thumbinpostSettings[“ThumbDivStart”].’ ‘.$attributeValue[“DivClass”].'”
    id=”‘.$attributeValue[“DivId”].'” >’;

    Now make the change ‘.$attributeValue[“DivClass”].'” to read ‘.$attributeValue[“DivClass”].’

    Secondly: beginning with “Pic in Post starts here…
    find the code:

    //Now generate the html code to insert into the page

    // attach an id (from $attributeValue[‘DivId’]) to the divstart to give it a unique identity
    $divstart = $thumbinpostSettings[“PictureDivStart”].’ ‘.$attributeValue[“DivClass”].'” id=”‘.$attributeValue[“DivId”].'” >’;

    Make the change ‘.$attributeValue[“DivClass”].'” to read ‘.$attributeValue[“DivClass”].’

    You had an extra quotation mark in there. That’s it.

  2. Comment by stefan — October 17, 2004 @ 12:23 am

    What directory are these files supposed to be placed in?

    I’m guessing the php file goes in the plugins folder…but the cfg file? plugins folder too?

    Thanks! :)

  3. Comment by Ali — October 18, 2004 @ 5:29 pm

    Yep, in the plugins folder.

Leave a comment

Comments are spam filtered. Your e-mail address will not be displayed. Some HTML tags are allowed.

(required)

(required, but not displayed)