You Are Here: JARinteractive + Code + PhotoJAR + PhotoJAR: Base

PhotoJAR: Base - Download
Version: 1.0.3

PhotoJAR: Base provides the groundwork and shared code for other PhotoJAR plugins. Additionally, PhotoJAR: Base provides a number of enhancements to Wordpress gallery functionality:

  • Dynamic resizing and caching of thumbnails - changes to image sizes apply retroactively
  • Support for LightBox, ShadowBox, ThickBox, Lightview, etc.
  • Custom image sizes (beyond “thumbnail” and “medium”) - [gallery size=”150×200″]
  • Displays gallery of galleries (thumbnails of child galleries) - [gallery showchildren=true]
  • A “linkto” parameter for galleries and images (”viewer”, “default”, “full”, or “none”) - [gallery linkto=”viewer”]
  • A JPEG quality setting
  • A maximum size setting for full-size images
  • A default gallery columns setting
  • An [image] shortcode.

Settings

Javascript Viewer - This will set the viewer used when “viewer” is selected in other settings (such as “Link Gallery Images To”).

Link Single Images To - This setting will apply to all images inserted via an [image] shortcode that do not have a link specified.

Link Gallery Images To - This setting will apply to all gallery images that do not have a “linkto” specified.

Image Shortcode (recommended) - If this is enabled, the add media dialog will place an [image] shortcode in the editor in place of HTML. This provides a simple way to adjust settings and allows the image to be resized automatically if settings change.

Gallery Columns - This sets the default number of columns for a gallery.

Gallery Image Size - This sets the default size for images in the gallery. “thumbnail” and “medium” correspond to the settings in the “Miscellaneous” Wordpress settings.

Constrain Full Size Images - Sets the maximum size for “full” size images.

Shortcodes

See “Using the gallery shortcode” for an introduction to shortcodes.

Size - PhotoJAR adds the ability to specify a custom size in both [image] and [gallery] shortcodes in the format “widthxheight” - add “xcrop” if you want the image to be cropped to the exact dimensions. Examples: [image id=23 size="125x150"] or [gallery size="175x175xcrop"].

[gallery] attributes:
Note: I recommend that you upgrade to Wordpress 2.6. Do to a difference between Wordpress 2.5.1 and 2.6 the orderby attribute must be set for all galleries when using PhotoJAR with Wordpress 2.5.1. Most likely you will want to use orderby="menu_order, ID".

  • showchildren - set to “true” to display a thumbnail for each child page’s gallery.
  • size - “thumbnail” (default), “medium”, “full” or see description above for advanced usage.
  • linkto - Specifies what the images should link to: full size image (”full”), Javascript Viewer (”viewer”), or Wordpress’ default image page (”default”). If not present, the “Link Gallery Images To” setting will be used.
  • See “Using the gallery shortcode” for info on the standard attributes for the gallery shortcode.

[image] attributes:

  • id - The id of the image attachment.
  • size - “thumbnail” (default), “medium”, “full” or see description above for advanced usage.
  • title - The image title.
  • align - This corresponds to the setting in the “Add Media” dialog. “none”, “left” (default), “center”, or “right”
  • alt - sets the alt attribute of the <img> tag.
  • linkto - Specifies what the images should link to: full size image (”full”), Javascript Viewer (”viewer”), or Wordpress’ default image page (”default”). If not present, the “Link Gallery Images To” setting will be used.

Installation

Requires Wordpress 2.5.1 (2.6 or better recommended) and PHP 5 or greater.

  1. Download PhotoJAR: Base.
  2. Upload the `pj-base` folder to the `/wp-content/plugins/` directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Adjust settings under the ‘Settings -> PhotoJAR’ menu in Wordpress.
  5. Optional: Install a javascript viewer plugin (LightBox, ShadowBox JS, etc.).

Tom Johnson has written a nice guide to creating a gallery with PhotoJAR and LightBox.

76 Responses to “PhotoJAR: Base”

  1. Bernard Doddema Says:

    can you give me a brief rundown on how to install one of these javascript viewer plugins? for example, thickbox.

  2. JARinteractive Says:

    1. Download the ThickBox 3 plugin and place it in your plugin directory.
    2. Activate the plugin.
    3. In Settings->PhotoJAR select ThickBox in the “Link Images To” dropdown list.
    4. Click the “Update Options” button.
    5. Browse to your gallery and click on an image, it should be displayed via ThickBox.

  3. Tom Johnson Says:

    I love this plugin and wrote a post about it here. But I have a question. How can I use the gallery tag and also control the order of the images?

    For example, let’s say I add the gallery tag to a page and I want to pull images 5, 37, and 145 from my Media Gallery. Can I add some kind of code like gallery id=5,37,145 that will pull just those images into the gallery? Or does the gallery always pull all the images uploaded to that post into the post?

    I guess if the gallery tag can’t be configured, I would have to use the image tag, and stack them together such as image id=5, image=37, image=145, right? Thanks for your help.

    Tom

  4. JARinteractive Says:

    Tom, thank you for writing the fantastic how-to!

    To control the order of the images you need to set their “menu order.” I do this using the Reorder Gallery plugin. With Reorder Gallery, all you need to do is drag the images up or down in the gallery tab of the “Add Media” dialog box.

    To include or exclude specific images from the gallery you can try MF Gallery Shortcode. I have not tried this plugin, but it may solve the problem.

  5. RC Says:

    I just tried to install this and got this error:

    Plugin could not be activated because it triggered a fatal error

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/afs2105/public_html/wordpress/wp-content/plugins/pj-base/pj-image-resize.php on line 11

    Any idea what the problem is?

  6. JARinteractive Says:

    RC, what version of PHP are you using? This plugin requires PHP5, check with your web host to see if PHP5 is available.

  7. Tom Johnson Says:

    In the image tag, is there a way to pull in the caption? You have easy tags to the size or the linkto attributes, but what about the caption that appears below the image?

    Here’s what I’m trying to do. I have a grid of images (like an image table of contents) that each link to individual photo galleries. I want captions to appear below each image in the grid of images. Surprisingly, this is hard to do manually and I’d like to use the gallery or image tag, but I run into a problem. In the Add Image dialog box (Gallery tab), I change the Linked To URL to a custom URL, but the image doesn’t link to the customized URL. The Lightbox plugin overrides this or something and won’t take it to the right page. Any ideas on how to do this?

    I wish I could just do something like [image id=335 caption="Zen House"].

    Tom

  8. JARinteractive Says:

    There is currently no way to put a caption on an image. I will try to add that in an upcoming beta. I am already working on a feature that might fit your needs. In the gallery shortcode you will be able to add an attribute that will cause the gallery to display a thumbnail for each child page that contains a gallery.

  9. Kugelblitz Says:

    Hello
    I am using PhotoJAR: Base 1.0 beta-4 with Wordpress 2.6, ThickBox 3 Plugin 1.1 or Lightbox 2.7.5.
    But I have not succeeded to get the Light box to work. It opens the Images in the same window. Like on Tom Johnson page.
    What can I do?

  10. Jackie Says:

    I’ve installed PhotoJar and Lightbox2 and everything went pretty well (I had to disable Contact Form to get the add image to work). Now that it is all done and I followed the walkthru all I see in the Gallery are small grey rectangles. If I click on one of them Lightbox fires and the picture can be seen - you can even navigate and see them all. The problem is that in the post the pictures can’t be seen. Any Ideas?

  11. JARinteractive Says:

    Jackie,

    Check to see if there is a ‘cache’ directory located in the photojar-base plugin directory. Create the ‘cache’ directory if it does not exist.

  12. Jackie Says:

    Somehow that didn’t automagically get created. Creating the folder corrected the problem above.
    Now, above the gallery - once for each picture posted - this error is listed “Error Resizing Image: resize_path_invalid Original Image Path: “/var/www/vhosts/thebellsite.com/httpdocs/blog/wp-content/uploads/2008/07/2008-07-25_0001.jpg” Resize path invalid”
    It’s also with the image in the media library.

  13. Jacob Says:

    Hey guys, getting the same problem as RC here… running WP v2.6, PHP v5.2.5.

  14. JARinteractive Says:

    Please install the phpinfo plugin (http://wordpress.org/extend/plugins/phpinfo/) and verify your PHP version.

  15. jerry Says:

    Hi,

    Can you make it PHP4.3.11 ? PHP4 is still the minimal requirements for Wordpress hosting and that’s what my host has.

    I tried your plugin on my local install and loved it. I was of course disappointed when it failed on my online blog (hosted by Yahoo).

    Thx,
    Jérôme

  16. JARinteractive Says:

    Jerry, I’m sorry you are unable to run PhotoJAR on your Yahoo hosted site. PHP5 offers many improvements that I feel are worth taking advantage of. Official PHP4 support has been discontinued since the end of 2007, so most web hosts should have already moved to PHP5 (or at least offer it). I recommend that you contact Yahoo’s support and inquire about PHP5 support. There are also many other web hosts that provide PHP5 support with affordable plans (I use ICDsoft.com).

  17. Hector Says:

    Hi,

    wonderful plugin, thanks. Actually I saw what you did in:

    http://www.jarinteractive.com/weblog/

    And that’s sort of what I want to do, I explain myself:

    I want a single photo to be showed… but then when I click on it, I’m taken to a gallery with the PhotoJAR/LightBox effect. Pretty much what you have done in:
    http://www.jarinteractive.com/weblog/

    First question: Could you please give me some idea on how you did that?
    Second question: I noticed that when I click on each post, I’m taken to the post itself, where it shows the “grid of pictures”, which is precisely what I do not want… is it possible to avoid the grid?

    Thanks in advance
    Héctor

  18. Sean Gaffney Says:

    Hey! I’m loving this plugin, but have a quick question. Is there any way I can change the behavior of “Link Images To” on a per-gallery basis? I want to be able to use the Lightbox on some galleries, and I’d like other galleries to use the default WP behavior.

    Thanks so much for putting together a great plugin!

  19. JARinteractive Says:

    Hector, I’m glad you like the plugin. Watch my blog for the release of PhotoJAR: Post Thumbnail. I hope to have the initial version ready in the next week or so. PhotoJAR: Post Thumbnailer is now available!

  20. JARinteractive Says:

    Sean, I like your suggestion. I will try to add that feature in the near future. Try Beta-5!

  21. Danny Says:

    I love the plugin, I just have 2 issues. First when I use [gallery showchildren="true"] it will only show thumbnails for 5 galleries. Secondly, and not as important there is a conflict between photojar and the cleaner gallery plugin. When I have cleaner gallery activated and use [gallery showchildren="true"] nothing shows up. Not too concerned about this one, but I’d love to get my first issue resolved.

    Thank You

    -Danny

  22. JARinteractive Says:

    Danny, try Beta-5 and let me know if you still have trouble. There should be no limit on the number of galleries displayed. Cleaner gallery uses a custom display method that conflicts with PhotoJAR, so unfortunately they do not work together at this point.

  23. Danny Says:

    I tried version 5 and still had the same problem. I even went so far as to create a fresh WordPress install and try it. I even tried disabling all other plugins and 2 different themes. 5 is still the max number it will show. Could it be because the 2 installs I’ve tried using it with were located in /blog and /main, and not on the root of my domain? Thank you for your continued support, and let me know if there is anything else I can do to help.
    -Danny

    P.S. I doubt that it matters, but my host is A Small Orange.

  24. JARinteractive Says:

    Danny, Thanks for reporting your issue. I did find the problem and have repaired it in Beta 6!

  25. Antonio Says:

    I downloaded the plugin and keep getting the following message:
    Warning: Invalid argument supplied for foreach() in /var/www/blog/wp-content/plugins/photojar-base/pj-gallery.php on line 30

    JAR version 1.0 beta 6
    WordPress 2.5.1
    Can you give me any information regarding this?

  26. JARinteractive Says:

    Antonio, I recommend that you upgrade to Wordpress 2.6. Do to a difference between Wordpress 2.5.1 and 2.6 the orderby attribute must be set for all galleries when using PhotoJAR with Wordpress 2.5.1. Most likely you will want to use orderby=”menu_order, ID”.

  27. Danny Says:

    Man you’re going to hate me… I’ve been using 2.6.1. I installed JAR version 1.0 beta 6, and the 5 thumbnail problem continued. I did the update, should I remove it completely and then reinstall it?

  28. JARinteractive Says:

    Hi Danny, it is you who should hate me. The change was mistakenly left out of the update. Beta 7 should fix it for real.

  29. Danny Says:

    Looks like that did the trick. Thank You for working with me, and in case I hadn’t already said so, THANK YOU for the great plug in.

  30. primeminister Says:

    Hi! Great plugin. Downloaded b7 and works great. Couple of questions though:

    - Is it possible to have a the max size that will be displayed in the viewer?
    - Is it possible to have a different page say ‘Photos’ and have the [gallery] tag in there and this is retrieving all active images from the database, independent of which posts they belong? I tried this and gave me an error: Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/photojar-base/pj-gallery.php on line 30

    Thanx!

  31. Mark Jones Says:

    Hi!

    This is a fantastic and simple plugin application … to me, it simply blows the doors off of NextGEN …

    Not sure what / where the NextGEN folks were / are going … but I do know they are not there yet! … they have developed a “mix” of mostly “does not work” though keep telling everyone it will in the future …

    AND, I love your “building block” concept in design …

    Keep it up … keep it simple … keep it with the intent of building upon and within the WP Media Library … give us some “blocks” to pick and choose from …

    I will be donating to this project for sure …

    Regards,

    Mark Jones

  32. Larry Levenson Says:

    I am running WP 2.6.1.

    PHP 4 is installed on the server, and PHP 5 is installed as CGI. Anything I can do to make PhotoJar Base use the CGI-complied version instead of the server-base version of PHP?

    Thanks in advance for help on this.
    Larry

  33. JARinteractive Says:

    Larry,

    On my webhost, I needed to add ‘AddHandler application/x-httpd-php5 .php’ to the .htaccess file in the wordpresss directory. If that does not work, I suggest contacting your webhost’s support.

  34. JARinteractive Says:

    Mark,

    Thank you for the kind words!

  35. JARinteractive Says:

    primeminister,

    PhotoJAR does not currently have either of those features. I will consider implementing them. Thanks.

  36. Danny Says:

    Have I told you how much I love this plugin? It has really changed things for me. I am using the [gallery showchildren="true" orderby="title"] shortcode to have all of my galleries thumbnailed on one page. I curently have 128 galleries and growing. Is the anyway to paginate (I think that’s the proper word) them so that 25 or show show up on a page with a next page link below them. As I’m typing this and reading it, it really sounds like a lot to ask for, so I understand if the answer is simply no.

    Thanks

    Danny

    BTW I am using it with Cleaner Gallery. I know before you had told me they were incompatible, but it looks like when you were fixing the code for me you made them compatable.

  37. JARinteractive Says:

    Danny, I’m glad the plugin is working so well for you. I do plan to add pagination, probably in version 1.1.

  38. TheMadProfessor Says:

    This is exactly the plugin I have been searching for. I have it working but with one question. Is there a setting somewhere that will resize the images so they show the correct size in the lightbox? Currenlty in my test I have some extremely large images and they are showing full size. Or do I need to resize them before I upload them? I thought there was something in here that did this.

    Thanks again for the best photo gallery plugin yet.

    The Mad Professor

  39. Gerri Says:

    Hi,

    I just wanted to activate your plugin, but I get the following error:

    Warning: main() [function.main]: open_basedir restriction in effect. File(/pj-image-resize.php) is not within the allowed path(s): (/var/www/vhosts/new-york-weblog.de/httpdocs:/tmp) in /var/www/vhosts/new-york-weblog.de/httpdocs/wp-content/plugins/photojar-base/pj-base.php on line 51

    Warning: main(pj-image-resize.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/new-york-weblog.de/httpdocs/wp-content/plugins/photojar-base/pj-base.php on line 51

    Warning: main() [function.include]: Failed opening ‘pj-image-resize.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/new-york-weblog.de/httpdocs/wp-content/plugins/photojar-base/pj-base.php on line 51

    Fatal error: Class ‘ImageResize’ not found in /var/www/vhosts/new-york-weblog.de/httpdocs/wp-content/plugins/photojar-base/pj-base.php on line 52

    My php-version is 5.0.4 and wordpress under 2.6.1

    Maybe you have any idea what might be the problem.

  40. JARinteractive Says:

    The Mad Professor,

    I have added an option to limit the dimensions of a “full” sized image to the PhotoJAR settings page. Download 1.0 RC-2 for the new option. Thanks for using PhotoJAR, I’m glad you are enjoying it!

  41. WordPress Plugin Releases for 08/21 | Credise Says:

    [...] PhotoJAR: Post Thumbnail displays a post thumbnail for posts with galleries. When paired with a JavaScript viewer, the full gallery can be displayed when the thumbnail is clicked. PhotoJAR: Post Thumbnail requires PhotoJAR: Base. [...]

  42. domainpubber Says:

    Hi,

    I had the plugin installed and working great on my site. Then I moved it from a shared server to a dedicated box and now I think I have a path issue but cannot figure out the solution. Any ideas what I need to change please?

    In wp-admin settings I have PhotoJAR Cache Path set to:

    /home/raftadm/public_html/wp-content/plugins/photojar-base/cache/

    But if you look at one of my galleries (http://www.raftertales.com/decorate/kids-room-decorating/boys-room-decorating-photo-gallery/)

    you get the error:

    Warning: getimagesize(/home/rafter/public_html/wp-content/uploads/boys-bedroom-aquarium1.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/raftadm/public_html/wp-content/plugins/photojar-base/pj-image-resize.php on line 77

    Error Resizing Image: error_loading_image
    Original Image Path: “/home/rafter/public_html/wp-content/uploads/boys-bedroom-aquarium1.jpg”
    File ‘/home/rafter/public_html/wp-content/uploads/boys-bedroom-aquarium1.jpg’ doesn’t exist?

  43. JARinteractive Says:

    Domainpubber,

    You will need to “import” the attachments from your old site using the Wordpress import feature, otherwise the Wordpress is not updated with the correct location for the original files. See http://adrianshort.co.uk/2008/04/01/46.

  44. domainpubber Says:

    Thanks for the reply! So, I’m doing that now but the captions then have to be re-entered. Wish there were a better way around this one but thanks for steering me in the right direction.

  45. AlexR Says:

    Hi,

    let me first express my appreciation of your work. This is some great plugin and I am happy I found it; this is just the way WP itself should handle images and galleries, with dynamic thumbnails, options and all. I started using PhotoJAR a few weeks ago from early betas and so far everything worked very good for my sites (using it at 3 sites at the moment). Now I have a feature suggestion - and a problem:

    Suggestion (I think you might have it in mind already, somebody surely already suggested it): pagination for the gallery with adjustible row count per page :-).

    Problem: After uploading images for some galleries flawlessly, suddenly PhotoJAR does not generate thumbnails any more at one of my sites. Image upload works without error, the original WP thumbs are generated in the uploads directory. The images are associated with the post correctly. However, PhotoJAR only displays empty zero-zize borders with no thumbnails in them. Links are ok - when I click on those small borders, the javascript viewer opens perfectly with the correct image and image set.

    After saving options again with cache clearing, thumbs for all article galleries that worked before have been recreated perfectly, but again all thumbs for all articels with images uploades AFTER the time the error first occured are missing.

    Do you have any idea where I might be looking to fix this problem?

    Thanks again for this great plugin, and keep going….. please !!!

  46. JARinteractive Says:

    I have been working with AlexR to resolve his issue today. It turns out that older versions of the image processing library used by PHP/Wordpress cannot handle embedded XMP metadata (produced by applications such as Adobe LightRoom). To avoid the problem, ensure that you export images without the XMP metadata.

  47. Roger Coathup Says:

    We are building a magazine website for a client, where they will want to reuse images in several posts.

    Is there any way to assign an image to multiple posts (including putting it in a gallery for the post) without having to reload the image separately for each post?

  48. JARinteractive Says:

    Roger,

    unfortunately it is not currently possible to associate an image with a post so that it shows in the gallery. I think the best way to accomplish this would be through a patch to the Wordpress core. I would love to see the feature implemented, but at this point I am unable to devote the time required for such an undertaking. I created a feature request on wordpress.org, go and put in your vote and add any comments you have.

    As I’m sure you are aware, it is possible to insert any single image from the media gallery into multiple posts.

  49. Roger Coathup Says:

    Thanks for the quick response!

    One other question… my client will be entering the stories (actually a team of their writers). Asking them to embed shortcodes (albeit simple) in the post may be a challenge. Do you have any plans for a toolbar button that inserts them for them?

  50. TheMadProfessor Says:

    Once again thank you for all the work on this.

    I am running into one issue. I have exported the images at a resolution of 800×600. I have set the constraints on the PhotoJar’s setting “Constrain Full Size Images” to 800×600 but the portrait ones are always to big and extend beyond the screens bottom and right. Plus the navigation arrows don’t show unless you mouse somewhere into the middle of the image. Is there something I am doing wrong here? It seemed like 640x 480 was a bit small for the images but is that my only choice to make it all fit or is there a conflict in sizing somewhere?

    Thanks

  51. meccano Says:

    Hi I installed your plugin as it seems like an excellent way to display a gallery however I’m running into a small problem.

    Whenever I put a gallery into a post the excerpt goes squiffy showing the first image of the gallery in full resolution on top of everything and completely wrecks the design of the site as seen here:
    http://www.forzaparma.com/page/2

    I must be doing something wrong is there a setting to stop it from showing up in the excerpt or is it a bug?

    Thanks hope you can help me!

  52. meccano Says:

    Sorry for the trouble I managed to fix it myself by editing the settings in the thumbnail viewer I am now wondering is it possible to turn off the image borders at all or is that something ingrained deep into wordpress?

  53. AlexR Says:

    Hello meccano,

    I accomplished the style change by patching the settings in default-theme.php (for the thumbnailer) and pj-gallery-shortcode.php (for the gallery) since I needed the change fast. But this is not the ideal way since you have to redo the changes with every photo jar update.

    Is there a possibility to customize this via “persistent” css?

  54. AlexR Says:

    Getting back to the thumbnail generation problem with some hosters for images containing metadata settings from - in my case - Adobe Lightroom export, there is a smart plugin to accomplish a metadata-free export from Lightroom (this can NOT be done with lightroom alone since there is no possibility to completely disabling the writing of at least some metadata in exportet jpg files): Jeffrey’s Friedl´s “Metadata Wrangler” Lightroom Plugin at http://regex.info/blog/lightroom-goodies/metadata-wrangler.

  55. JARinteractive Says:

    meccano & AlexR,

    to adjust the CSS for the galleries, follow the instructions here and then edit the CSS you see in the example. I am beginning work on a PhotoJAR: Themes plugin which will allow much more control over the display of galleries (You will not have to make use of hacks forever :) ).

    AlexR: Thanks for the Lightroom tip.

  56. JARinteractive Says:

    TheMadProfessor,

    I am guessing you are using the Lightbox plugin? LightBox adds a border and some padding around the edge of the window. You can try something between 800×600 and 640×480 - I am using 700×500 in my gallery.

    LightBox is responsible for the navigation arrows. You can modify the CSS for #stimuli_prevLink and #stimuli_nextLink in the lightbox CSS to make the navigation always visible.

  57. TheMadProfessor Says:

    I think I might have figured out one of the problems I was having. I was trying out the new Google Chrome browser and that may have been messing with some of my image galleries. And bye the way, the 700×500 resolution works much better.

    The current problem I am having is that I am trying to upload 1 image and it keeps putting in the full link. Not the [image] shortcode like the [gallery] shortcode that goes in.

    Any thoughts on why this is?

  58. JARinteractive Says:

    TheMadProfessor,

    Are you running version 1.0? Is “Image Shortcode” enabled under the PhotoJAR settings? If that isn’t the problem, try disabling your other plugins to see if there is a conflict.

  59. TheMadProfessor Says:

    I am running version 1.0. I have disabled every plugin and then reactivated just the two Photojar plugins and the Lightbox 2 plugin. The insert [image] shortcode is checked. Maybe it’s the steps I am doing.
    I click insert image. Then browse to the jpg file. Once the uploader crunches the file and opens the window with the information I check the Thumbnail check box on image size. Then Insert into Post.

    The Mad Professor

  60. TheMadProfessor Says:

    I have a future development question as well. I now have the iPhone and there is a Wordpress app that allows us to post from it. Is there a way to post the images from the iPhone so they show the same way as the through the backend. This would be a great feature for those blogging remotely.

    Thanks

  61. JARinteractive Says:

    TheMadProfessor,

    The iPhone client does not add uploaded images to the Media Gallery. I am not sure why, but I will see if this is possible through a plugin.

  62. Stefan Says:

    I’ve just upgrade my WP install to WordPress version 2.6.2.
    Now when I display a gallery on a page it shows the first row of images fine, but subsequent rows display further down the page (in line with the bottom of the Sidebar.

    Any ideas?

    Cheers

  63. Stefan Says:

    Never mind. I fixed it.
    Just changed the br style=”clear: both” to br style=”clear: left”

  64. Matt Says:

    Hi,

    So far I have been reading about setting up the cache properly and I still cannot get rid of the error:
    PhotoJAR Error: the PhotoJAR cache directory () is missing.

    I am using the default cache location and have also tried manually setting it.
    Any thoughts?
    Also would this be causing my gallery images to not be displayed as thumbnails?
    I have read everything about configuring but cannot get them as thumbnails for the life of me.
    Thanks!

  65. TheMadProfessor Says:

    Matt,
    I was having that same issue and I thought that by leaving it empty the default would be there automatically but it kept giving me the same error. I see that you said you entered it in manually. Make sure you have the correct string in there. I literally copied both the PhotoJAR Cache Path and the PhotoJAR Cache Url that showed in the Defaults below each and it worked like a charm. Now I went very vanilla on my site meaning I didn’t change directory structure or anything.

  66. TheMadProfessor Says:

    I am trying to remove the border around the thumbnail in that is created. I was hoping that was a shortcode like [Gallery border = "0"] but no. So is this something in Photojar or is this a Wordpress CSS thing?

    Thanks

  67. JARinteractive Says:

    For now use the instructions in my response to AlexR to adjust the CSS for galleries. For adjusting the CSS of the Post Thumbnail, edit the default-theme.php file under the pj-post-thumbnailer directory. Make sure you backup the file, as it will be overwritten when PhotoJAR: Post Thumbnail is updated (a location for custom templates is coming soon).

  68. TheMadProfessor Says:

    Excellent, worked like a charm.

    The Mad Professor

  69. Roger Coathup Says:

    Matt,

    I had to remove the first two parts of the folder hierarchy to get rid of the cache path error:

    PhotoJAR Error: the PhotoJAR cache directory () is missing.

    i.e.
    my default was ‘home/xyz/public_html/mysite/wp-content/plugins/photojar-base/cache/’

    I changed it to:

    ‘/public_html/mysite/wp-content/plugins/photojar-base/cache/’

    Hope that helps,
    Roger

  70. Roger Coathup Says:

    Matt,

    sorry, the error has now reappeared for me… so my previous post wasn’t the solution.

    Roger

  71. Roger Coathup Says:

    Matt,

    changing the permissions on the cache directory to 777 has got it working.

  72. WordPress Image Galleries — Give Your Photo Galleries a Lightbox/Slideshowesque Display | I'd Rather Be Writing - Tom Johnson Says:

    [...] The PhotoJAR plugin has a lot more power and control, with different tags and parameters. You can read more about it here. [...]

  73. Daiv Says:

    Hello, thanx for the plugin, works great,
    I see that with photoJar thumb that if I add the image tag to my post with a scale definition that the WP thumb nails will be recreated. I guess the new thumb goes into photojar/cache, it could go into the WP upload dir where the original is.

    Just a couple of suggestions/observations for you,

    If I put image tag into my post, I will loose the image if I disconnect your plugin. (this means that I’m married to the plugin) .

    I as others, have been looking for a solution to the WP thumb nail and medium image rebuild problem. Changing thumb size fails to rebuild earlier thumbs/med images. Possible feature of your plugin?

    Possible slideshow add on : Aeron Glemann’s mootool powered slideshow http://code.google.com/p/slideshow/

    I’ve been trying to get just the right combination of plugins to work well with images but which degrade silently, ie: deactivating the plugin reverts the post to WP default functionality.

    Your approach seams to be on the right track, congratulations and thanx again.

  74. Simon Says:

    Is there no failsafe way to get around the problem with /photojar-base/cache/ is missing.

    I have tried just about all the ideas posted above (except editing the code) and it still give me the error message.

  75. JARinteractive Says:

    Simon, if PhotoJAR is unable to create the cache directory you should create a directory for the cache (as of 1.0.3 the default location is /your/wordpress/path/wp-content/uploads/photojar/cache). Place the full path to the directory in the cache path setting and the URL for that directory in the cache URL setting.

  76. Daiv Says:

    Just a follow up on my above comment.
    Anyone needing to do thumb and mid size image rebuild there’s regenerate thumbnails plugin here, works great for images uploaded with WP >2.5 http://www.viper007bond.com/wordpress-plugins/regenerate-thumbnails/
    Also, still looking for a mootools 1.2 in page slideshow which will degrade gracefully.

Leave a Reply