Archive for the ‘WordPress’ Category

idea for a wordpress plugin: copy linked images to server

Tuesday, September 5th, 2006

Colorful kid

It’s nice to have services such as Flickr where I can upload an image, then click a button to create an entry on my blog displaying and linking to the image. Unfortunately, there may come a time with I close my Flickr account or Flickr closes up shop. In that case my blog archives will have a bunch of broken images.

I’d like to have a Wordpress plugin that, nightly, copies all linked images to my server, and updates the blog entry so it displays the local image. That would ensure that even if I switched services my previous blog entries would remain intact. Perhaps the plugin should allow you to specify a whitelist of domains from which images should be copied, and it should probably write the original image URL in a comment.

Unfortunately I probably don’t have time to create this plugin, so here’s hoping someone will take up the gauntlet.

Thanks to Garrett for pointing me toward this plugin: Post Filter, which is close to what I want.

Hiding my del.ici.ous links

Sunday, March 19th, 2006
Licking lips

I decided I didn’t want my del.ici.ous links fouling up my blog stream, so I hacked WordPress so it wouldn’t show posts tagged with mybookmarks unless you display the category page for that tag.

I still want to have post my daily bookmarks, because then I have an archive, plus it gives a little Google-juice to the bookmarked sites (and in the end that makes the web a better place, search-spammers notwithstanding).

After determining the Id of that category, here’s the code I added to skip it:

<?php if (in_category('57')) { continue; } ?>

Three things to change about the default Wordpress template

Wednesday, March 15th, 2006
  • links in article text are not underlined
  • text-align:justify
  • article archive pages lose the sidebar. every page of your blog is an entry point, so why eliminate the sidebar when someone enters via an individual article archive page.

Zee comments, zey are beck

Monday, March 13th, 2006

I finally upgrated WordPress, and since it handles comment spam so much better I activated comments again on this blog.

Unfortunately, I also had to ditch my old template, so until I get a chance to redesign the site you’ll be stuck looking at the default WordPress template.

To make up for this disgrace, here’s a funny graphic.

No more spam please

p.s. I love the new AJAX category/tag selector in WordPress 2!

He cupped her university of phoenix online universities

Sunday, March 12th, 2006

Within a few hours of re-activating the discussion boards here on BarelyFitz, I started getting spammers.

Spammers have determined that if they register for a message board account, they can leave a link to their webpage, and the link shows up on the message board user list. I’ll have to hack PHPBB to remove this back door for spammers.

I noticed the following interesting attempt: instead of leaving an obvious link to a spammer site, the link was something like the following:

This URL looks relatively innocent – after all it has the word “religious” in it! But if you follow the link, you get a page that uses JavaScript to immediately redirect you to the spammer’s site.

After a bit more digging into the redirect page I found a JavaScript program that does the redirecting (heavily obfuscated to prevent Google from discovering the true purpose of the script), plus a bunch of computer-generated text to geared to increase their search results, a sample of which follows:

I let some weight off her so I “How did it feel to have you dept of education student loans in your tea In about thirty best online university service canceable education loan had begun to caress her pussy kentucky higher education student loans The smoke from nearby. Stretched out sideways to a July So you can still cheer, quart in size dose You take it soaked panties slapping her dental continuing education on-line. “Shall we undress you or can over and told me she wanted to us dept education student loan tipped up invitingly at the nipples, forward to what was to come She. Online university courses canada, lot of tires in my days as a a little gulp He cupped her university of phoenix online universities, overcomes any resistance you.

Update 2006-03-14: This morning there were three message board spam posts, which I quickly eliminated when I saw them in my RSS feed. They wouldn’t have helped the spammer since the links were all marked as rel=”nofollow” after some changes I made to PHPBB. But I just don’t want to deal with it, so I changed the discussion boards to require registration before posting. Sigh… why do spammers have to ruin it for all of us.

It would be nice if PHPBB had the same “moderate once” system that WordPress uses.