Archive for the 'software' Category

Botão “Ir” no Firefox 3

Pra sempre exibir o botão “Ir” (”Go button”) na barra de endereços do Firefox 3, adicionar no arquivo userChrome.css a linha abaixo:

#go-button { visibility: visible !important; }

Vi nessa página, onde tem outras dicas para quem não gostou de algumas das mudanças da nova versão do FF.

Post Image plugin updated to work with Wordpress >= 2.5

Post Image is a great Wordpress plugin that displays an image attached to a post without you having to add the <img> tag to the post content. It’s great to list the posts with a thumbnail on the site and display the full sized image in the post page.

The last version of Post Image wasn’t working because Wordpress 2.5 changed how thumbnails are named, so I made a small change in the code. It’s working great for me, but since I only tested on one site, it may contain bugs that will destroy your whole life. Please leave a comment if you find one.

If you wan’t to try it, download the modified version (1.2) clicking here. For a reference on how to use it, see the original page.

WordPress 2.3 vulnerability allows blogroll spam

After upgrading WP to 2.3 I wasn’t expecting find 100+ spam links in my blogroll today. It seems that the code of the link manager wasn’t checking if the user had the permission to manage links. The fixed file can be found here. You should replace the “link.php” of your 2.3 WordPress instalation with that code. I found the solution on this topic.

UPDATE: I found another 41 spam links today after the “link.php” fix. According to that forum post the fix should have worked, but it didn’t. While an official solution don’t come out, I’ll change the theme code so it display the blogroll with static HTML instead of grabing the links from the database.

UPDATE 2 (2007-11-22): no more spams here, don’t know why.

Random WordPress notes

* Ten spam links in the blogroll means that I should upgrade this Wordpress installation more frequently.

* WordPress now support tags. I used to use categories as tags. I’ll probably keep doing that.
UPDATE: just read on this post that if you use “tag” instead of “category” as the base word in the url of category pages (like I do here), you should use a different word as the base for urls of tag pages (you can change this on WP administration, under Options -> Permalinks). If you don’t do this, all /tag/* pages will generate a 404 error.

* I heard about wp-cache when I moved all my sites to Dreamhost, but never started using it. Last week I was trying to speed up the sites and realized that wp-cache is actually very good. Dreamhost isn’t the most fast server in the world (sometimes it’s the opposite), but caching WordPress just made the pages load VERY faster than usual and didn’t cause any problems as I was thinking it would.