Categories
General

Fixing the missing Options thing

There’s a bug in WP 1.5 where only the Options page for the last-loaded plugin appears:

mosquito.wordpress.org/view.php?id=1196

Fixing it requires a slight modification to menu-header.php in the wp-admin folder. The bug is fixed in the latest WP in the repository though, You can get the latest WP with this command:

svn co http://svn.automattic.com/wordpress/trunk/

Or, you can download this copy of menu-header.php that I got today (rename it, of course):

menu-header.phps

If you use the ContactForm plugin, this will make its Options page ugly, with double menus. To fix that, edit options-contactform.php, deleting the lines at the top starting with “require” and “include”.

Categories
General

Photopress 0.4

After a flurry of bug fixes, it’s time for another release. As usual, please let me know if you run into any problems. Here are a few of the improvements and fixes:

  • An option to enable “failsafe” buttons which I’m told actually work with older browsers.
  • Fixed a few options-related problems. (thanks Randy!)
  • The album no longer uses alignment style from options, fixing weird category-wrapping issues.

Download photopress.zip or photopress.tar.gz.

You can always find the most recent version (and older versions too) at wp-plugins.org.

Categories
General

WP blog in a folder

Let’s say you don’t want your home page to be your weblog for some reason. You still want it to use the same style stuff as the rest of your blog though, and it’d be nice if you could manage your homepage as a WP Page. Here’s how to do it:

  1. Edit Options:Permalinks, adding the name of your blog folder to the front of the permalink code, something like this: /blog/%year%/%monthnum%/%day%/%postname%/
  2. Create your main page as a Page, noting its ID on the Manage screen.
  3. Install the Page to Front plugin, giving it your main page’s ID.
  4. Make a new template page like the Archives template, but with The Loop. Add this just above The Loop in your template: < ? php query_posts("showposts=10"); ?>
  5. Create a page that uses the new template, naming its post slug with the name of the folder you want your blog to be in.

Pretty complicated! There really should be a plugin that does all this…

Categories
General

Accidental Photopress feature

If you have a plugin installed that’ll allow PHP in a post or page to execute (such as Ezstatic), you can embed parts of the Photopress album right in a page or post. Just insert

< ?php pp_display_cat('CategoryName'); ?>

in the page or post, making sure to check the box enabling PHP execution. This will insert a list of linked thumbnails from whatever category you choose.

Categories
General

Gimp Template for the Default WP Theme

Makes it much easier to customize the default WordPress template. Just replace my ugly 760×200 layer with your own and export it from Gimp as a JPEG.

Download kubrickheader.zip.