Photopress 1.1

February 1st, 2008 by isaac

Sorry for the lack of updates… I’ve been using this version with WP 2.3.2 and it seems to work well. I have no idea whether it works with older versions or not. It’s mostly a few bug fixes and one major change.

The major change is with the way the album template works. Based on a post at scott.sherrillmix.com, Photopress now uses one of your theme’s template files for the album. By default it uses page.php, but you can specify any template file in th options. I suggest copying page.php to photos.php or something like that and removing the “edit this page” code for a cleaner album appearance. If you were already using a custom template I think you can just specify that in the options instead of page.php.

The biggest ongoing problem seems to be with the album failing without a permalink refresh. Just update your permalinks and it should work again.

Download it: photopress-1.1.zip or photopress-1.1.tar.gz

Photopress 1.0.2

March 15th, 2007 by isaac

First of all, I made a lot of changes, in a lot of places, so there’s probably something broken. So, if it doesn’t work, revert to your old version. But what if you didn’t back up your old version?? In that case, head over to the familypress repository for the version you want. Complete with tarballs for your downloading pleasure! If you need an even earlier version that won’t work with WP 2.1+, those are still at wp-plugins.org.

I added support for Lightbox. I wasn’t able to get it working manually, but this plugin did the trick. Install the plugin, set the Use Album option to Lightbox, and it should work. If you’ve been using tags, all your previous images will automagically use Lightbox too. No Lightbox groups yet because I’m not sure how to make that work.

Based on some comments (yeah, I do read those now and then), I did some testing of non-English characters and found some serious brokenness. The suggestion to remove htmlentities2 was on the right track, but some escaping was still necessary to keep Javascript/TinyMCE happy. The combo of js_escape and attribute_escape seems to work right but those of you who regularly use funky characters should test it out and see if it’s really fixed.

Apparently edit_posts is a bad default capability to use because it’s normally for Editors, not Authors. I’ve set the default to publish_posts instead. If you’re seeing the “Ask the administrator to promote you.” message then you need to go admin and edit the options at Options:Photopress so the uploading capability is something your blogging user can do, such as publish_posts. Sorry for the confusion!

Download it: photopress.tar.gz or photopress.zip

Contactz 0.2

March 9th, 2007 by isaac

The blank lines thing should now be fixed. If you’ve been using it and you have a bunch of blank lines, going to Edit and updating should get rid of them. To fix it easily, I made first name a required field - any objections? It’s also using Capabilities now, instead of Levels, so you should visit Options to make sure you like the capability I chose.

Download it: contactz.zip

Photopress 1.0.1

March 8th, 2007 by isaac

Watermarking is back, but as a plugin now! I’m pretty surprised it works, and I think it’s going to be a great way to add features without cluttering up the options and whatnot . If you’re interested in writing your own sub-plugin, take a look at watermark.php.

I think I fixed the query_posts error.

There’s now an option to replace the built-in upload tool with the Photopress upload/browse tool. I don’t love how it works, but it does seem to work.

Download it: photopress.tar.gz or photopress.zip

Update: To clarify about compatibility, I’m currently using this version with WP 2.1.2. It probably works with 2.1, but I wouldn’t expect it to work with anything earlier than that.

Filez 0.5

March 1st, 2007 by isaac

I added a few features to make it more usable and configurable. You can now specify acceptable file extensions. I should probably do the MIME checking thing like in Photopress… It’s possible to change the visual editor icon if you’ve set the proper file/folder permissions - I included a couple of options. I switched over to using WP’s capabilities instead of the obsolete levels, but there’s no drop-down menu - you’ll have to check out the WP Codex if you want to see all the options. I left the Management page admin-only because I like it that way, but I can add an option to change that if there’s interest. I added the upload error handling stuff from Photopress. I’m using it now at my family blog, so there’ll probably be more changes once a few people try it out.

Here it is: filez.zip

Photopress 1.0

February 13th, 2007 by isaac

Please don’t take ‘1.0′ to mean I consider it to be perfect - I just ran out of 0.x space. This version does fix many bugs, including issues with editing categories. I know a bunch of you pointed out the problem, but when my mom noticed I had to fix it (no kidding).

The browse popup tool now has a drop-down menu for picking a page, which works much better with hundreds of images. In the process I fixed it so the filter choices are remembered, which makes a lot more sense.

Finally (I think), in the Mass Edit view the delete check boxes should be suppressed for images used in posts (if the right option is set). This makes it a lot easier to get rid of duplicates that aren’t used in posts. Oh yeah, there’s a new image for the visual editor icon. The old one is still there if you liked it better - poke around and you’ll find it.

Download: photopress.tar.gz or photopress.zip

Filez 0.4

February 12th, 2007 by isaac

This version of Filez should work with WP 2.1, using the same methods Photopress now uses. I’ll probably be making a few further improvements since I’m going to let some family members try it out - always a good way to find bugs and get ideas for improvements.

Download it: filez.zip

Photopress 0.9.7 (WP 2.1+ only)

February 2nd, 2007 by isaac

This version uses a new method to place buttons, this time stolen from the Anarchy Media Player Plugin. It’d be nice if the plugin API had an easy way to insert buttons - I guess maybe in 2.2 or 3.0…

Due to all the new files and folders, I suggest deleting your old Photopress folder (back it up first!), then installing the new files. Remember to keep your template and style files if you’ve edited them.

I’ve removed watermarking for now in order to clean up the code and interface a bit. I’m working on a plugin infrastructure so we can have features like watermarking without cluttering up the core plugin so much.

Some browser-specific notes:

Firefox 1.5-ish: The browser I use most often, so everything works properly for me there.

IE7: Seems to work fine. I have a half-broken laptop with XP for testing now so IE support should be better.

Opera: Inserting images in ‘Visual’ is broken in Opera. Inserting on the ‘Code’ side of the editor works though, so I guess that’s a workaround. Or you can use PP’s tags feature - that works on both sides.

Photopress 0.9.7 downloads: photopress-0.9.7.zip or photopress-0.9.7.tar.gz

Photopress 0.9.6

January 13th, 2007 by isaac

In an effort to fulfill a New Year’s resolution, I’ve (hopefully) squashed some bugs and bundled together a release of Photopress. This version works for me with WP 2.0.6. I did have one problem, which I think was related to changing hosts, not Photopress: the collation on one of the tables was different from the other one, breaking the queries. Some clicking around in phpMyAdmin fixed it.

Download it and give it a try (but I’m sure I don’t need to tell you to keep your old files if they’re working for you): photopress.zip or photopress.tar.gz.

Photopress 0.9.5

April 25th, 2006 by isaac

This is just a quick bugfix release, which should solve some of the major problems with the previous one.

  • Fixed a couple of SQL problems noted by a few people, namely the LEFT JOIN thing but also a weird thing where the default ORDER BY was missing.
  • Fixed a Javascript problem that was keeping the insert buttons on the Browse popup from working. Basically, I’d forgotten to update the Browse JavaScript when I updated the Upload part.

Download Photopress 0.9.5: photopress.zip OR photopress.tar.gz.

Photopress 0.9.4

March 3rd, 2006 by isaac

Sorry this release took so long. I should probably call it 1.0 RC1 or something, but it seems way too buggy for that right now.

New features and fixes:

  • The main change in this version is a new categories table, which required a bunch of changes all over the place.
  • Uses buttonsnap to add a pretty button to the RTE’s toolbar. This can be disabled if desired.
  • A watermarking function contributed by Marcus. It worked in my quick test, but more testing is likely in order.
  • The album layout now uses a styled unordered list instead of a table, ala Plogger. If you’ve customized your template you’ll need to do it again, but it should be much easier now.

Unfixed bug: My uncle, a regular source of odd test cases, found a bug in the resizing function. A large but well-compressed JPEG can cause a fatal error in the resizing function due to excessive memory usage. A fatal error leaves no way (as far as I can tell) to display a message or delete the offending image. This is very lame. I’m working on a way to check how much memory an image will use before attempting to resize it, and cancel the upload gracefully.

Download Photopress 0.9.4: photopress.zip OR photopress.tar.gz.

If this version sounds too buggy for your tastes right now, 0.9.2 is still available: photopress-092.zip OR photopress-092.tar.gz. Note that it’s possible to track down even older versions over at wp-plugins.org.

Get photopress.pot if you’d like to translate Photopress. There are a couple of translations available here.

Dasher 0.2

February 2nd, 2006 by isaac

Dasher is a simple Dashboard replacement. It should now work with both WP 2-ish and 1.5-ish. Dasher 0.2 will display two types of content - PHP files (blocks) and RSS feeds - in place of the former Dashboard. See the included blocks for some examples.

Download dasher.zip.

Filez 0.3

January 27th, 2006 by isaac

This version uses Owen Winkler’s Buttonsnap library to add a pretty button to the WP 2 RTE toolbar. If you don’t like the button image, it should be easy enough to make a replacement - see filez.png. It remains backwards-compatible with WP 1.5.2. The popup tool has nicer buttons and better filename conflict handling. Lots of changes, so if you find something broken please let me know.

Download Filez 0.3: filez.zip.

Filez 0.2

January 21st, 2006 by isaac

This version should work with both WP 1.5.2 and 2.0. Otherwise, I added an option to insert HTML instead of tags. I may have had options-saving broken at some point, but it seems fixed now.

Download Filez 0.2: filez.zip.

Photopress 0.9.2 (updated again)

January 19th, 2006 by isaac

It should work with both WP 1.5.2 and 2.0, but I could break support for 1.5.2 any time. If you’re upgrading from an earlier version of Photopress, make sure to de-activate and re-activate to update the database table (or use the Install DB tool).

New features and fixes:

  • Display of non-English characters was broken but I think it’s fixed now.
  • Per-category sort setting for the album. See Edit Categories in Manage:Photopress.
  • A ‘close window’ link in image popups. This required big changes to the popup code, so please report any errors you see.
  • Mass Resize should be smarter now (thanks Roge and kele). For mass importing, you can now drop a bunch of images in the photos folder, then run Mass Resize followed by Import Photos. I guess the Import Photos tool could just run Mass Resize as part of the process - anyone have an opinion?

Update: SHRIKEE noticed a bug so I did some testing and found a few more. Specifically, suppression of is_search on image pages in the album should now work properly. Inserted HTML code should be fixed. The image popup Javascript function should work again in Internet Explorer. Finally, I made a couple of changes to make the album prettier.

Update2: Stahn found a bug in pp_album_css.php, and suggested a better way to close the popup image windows. I noticed that the ‘Photos’ text for the buttons wasn’t translatable.

Download Photopress 0.9.2: photopress.zip OR photopress.tar.gz.

Get photopress.pot if you’d like to translate Photopress. There are a couple of translations available here.

I’m thinking about comments for images, but I’m not sure how to proceed. Maybe create a post for each uploaded image, placed in a hidden category?

As usual, let me know what’s broken or needs work. Thanks again for all the bug reports and feature ideas!

Up2rand 0.1

January 17th, 2006 by isaac

Up2rand is sort of a proof-of-concept, but probably actually useful too. It provides a template function that displays random images from those you’ve uploaded using the built-in uploader in WP2 (NOT Photopress). I haven’t tested it extensively, but it seems to work. Obviously, it only works with WP2.

Download Up2rand 0.1: up2rand.zip OR up2rand.tar.gz

Installation and use:

Put up2rand.php in your plugins folder and activate it. Insert up2rand() where you want random images in your template (usually somewhere in your sidebar.php). Without any options you’ll get one thumb, linked to the full image in a popup. To get something else, pass some options:

up2_rand($number_of_images, $before_each, $after_each, $link, $popup, $class);

$number_of_images - number of random images to get (reduced if you don’t have enough)
$before_each - what you’d like to put before each thumbnail (such as <li>)
$after_each - what you’d like to put after each thumbnail (such as </li> or <br />)
$link - whether to link the thumbnail or not (TRUE or FALSE)
$popup - whether to link to a popup or not (TRUE or FALSE)
$class - class to use for the image (you can insert a class in your theme’s style file and use it here)

Here’s an example that gets 2 random images, wrapped with <p></p> tags, linked normally (no popup), and using the ‘randimage’ class.

up2_rand(2,'<p>','</p>',TRUE,FALSE,'randimage');

Photopress 0.9

January 10th, 2006 by isaac

This version includes a few fixes, and a couple of new features. It should work with both WP 1.5.2 and 2.0. If you’re upgrading, make sure to de-activate and re-activate to update the database table.

New features and fixes:

  • Added a category slug field and code to use it - this should fix the permalink problems related to strange characters in category names.
  • The popup tool shouldn’t throw Javascript errors anymore. I also added code to suppress the Browse tab if the tool is launched from the Manage page.
  • There’s now some Javascript to change the Insert buttons a little to show users which images they’ve inserted.
  • The popup tool’s Browse tag has a dropdown category menu that will display images images in a single category.
  • The random image template function (pp_random_image_bare) can now display multiple random images. There are some details about it in the readme and the Photopress page.

Download Photopress 0.9: photopress.zip OR photopress.tar.gz

As usual, let me know what’s broken or needs work. Thanks again for all the bug reports and feature ideas!

Photopress 0.8.5

January 3rd, 2006 by isaac

This version is still mostly bug fixes, so I’m sticking with 0.8.x. It should work well with both WordPress 2.0 and 1.5.2.

New features and fixes:

  • Fixed a bad bug in the duplicate renaming function. Also added a maintenance function to clean up filenames if you’ve uploaded a few with bad names.
  • Fixed the bug Nonni found where ampersands in category names messed things up. Photopress should now handle ampersands in category names just fine.
  • Fixed a few problems with permalinks. They work differently in WP 2.0, so I’m handling it with some version-specific code, which sucks.

Download Photopress 0.8.5: photopress.zip OR photopress.tar.gz

As usual, let me know what’s broken or needs work. Thanks again for all the bug reports and feature ideas!

Fixing Photopress for WP 2.0

December 28th, 2005 by isaac

I’m working on getting Photopress to work well with WordPress 2.0, but it’s not quite there yet. If you’d like to try what I’ve done so far, download photopress-wp2.zip. Note that you’ll need to disable the rich text editor for image inserts to work right.

Update: I’ve replaced the above file with a new version that seems to work better. Image inserts should work under the rich text editor too now.

Photopress 0.8.4

December 21st, 2005 by isaac

Nothing too exciting in this version, but if you’re using index.php-based permalinks you’ll want it.

New features and fixes:

  • index.php-based permalinks should work now. Thanks to SHRIKEE for spotting and testing this fix.
  • Added a mass resize function. Thanks to Roge for the idea and code.
  • Added an image rotate function.

Download Photopress 0.8.4: photopress.zip OR photopress.tar.gz

Hans has made a Dutch translation: photopress-nl_NL.mo. Interested in translating Photopress into your language? Download photopress-0.8.4.pot.

What I’m doing next: I think I’ll add category slug and hide image fields to the DB table, plus the bits for working with them. This should lay the groundwork for eventually storing a category’s images in a category-slug-named subfolder of the photos folder. With a lot of images it gets crazy storing them all in the same folder.