Sep
30
2007
--

Hacking Quicktags: All Links Are Not Created Equal

Okay, next up: the link quicktag. On Needcoffee, we have internal links and external links. Internal links are just plain old links. External links open in a new window. I know that irritates a few people, but I have no idea why. You close the window and you're where you came from. Seems like a no brainer to me.

Anyway. Same deal as before:

1. Go to /wp-includes/js/

2. Edit quicktags.js

3. Look for this code:

edButtons[edButtons.length] =
new edButton('ed_link'
,'link'
,''
,''
,'a'
); // special case

(more…)

Written by Widge in: Wordpress | Tags: , , , ,
Sep
29
2007
--

Hacking Quicktags: One Image Directory, Under Eris

Okay, so here's some fun. At Needcoffee, we pretty much draw from a single directory for images. But if you do the IMG quicktag by itself, all you get is it asking you for the full URL. That's no fun. How can you hardcode the img directory in there?

Simple.

1. Go to wp-includes/js/

2. Edit your quicktags.js

3. Look for this code (I've killed some tabs just to keep it from being too wide for the theme):

function edInsertImage(myField) {
	var myValue = prompt(quicktagsL10n.enterImageURL, 'http://');
	if (myValue) {
		myValue = '<img src="'
		+ myValue
		+ '" alt="' + prompt(quicktagsL10n.enterImageDescription, '')
		+ '" />';
		edInsertContent(myField, myValue);
	}
}

(more…)

Written by Widge in: Wordpress | Tags: , ,
Sep
27
2007
--

WordPress and the Illuminati

Seriously, think about it: WordPress 2.3. 2+3 = 5. Law of Fives.

I just saw realized this when I ran the Ultimate Tag Warrior converter:

Import Complete!

OK, so we lied about this being a 5-step program! You’re done!

Now wasn’t that easy?

Remember how AUM had cocaine added to it simply to allow for the Law of Fives?

Yeah. Law of Fives.

Hail Discordia.

Written by Widge in: Wordpress | Tags: , , , ,
Sep
25
2007
--

Customizing Tags in WordPress 2.3

Okay, folks. Seems to have worked…so far.

And because this is the first thing I wanted to be able to do: let's talk tags.

The UTW importer seems to work very well–although, come on, guys: UTW was a good plugin. Do you really have to refer to it as a "nasty habit"? Kinda tacky.

Anyway, it zapped my 500-some odd tags fairly quickly. There were four very odd errors where it appears tags didn't make the leap–some sort of database error–but I didn't take down the error. If I see it again, I will.

But here's the part that's a little wonky–and a little unnerving. There's nothing in the WordPress admin area to let you tinker with tags. They're just sort of there. I understand there's some plugins to help the tag admin thing, but as long as it works, I don't care.

I had to strip the UTW code out of my theme because it was causing errors (and of course, reactivating the UTW plugin caused a fatal error which WordPress mercifully put the kibosh on before it could do any damage). So how to get the tags back in?

Well, this post is a good start, and the followup's not bad, but what if you just want to say something witty and then list your tags in a comma-separated list? It's not obvious.

< ?php the_tags('Taggification: ', ', ' , ''); ?>

That's how I do the tags on this theme. And as for context of where it goes?

<div class="storycontent">
< ?php the_content(__('(more...)')); ?>
</div>
<br />< ?php the_tags('Taggification: ', ', ' , ''); ?>
<p>Filed under: < ?php the_category(' and') ?>
<br />Comments: < ?php comments_popup_link(__('None'), __('1 Comment'), __('% Comments')); ?></p>

Tinker with it till you get it to look like what you want.

I'm going to be changing themes anyway. This one just looks like a giant nasty kluge.

Written by Widge in: Wordpress | Tags: , , ,
Sep
25
2007
--

Upgrading to WordPress 2.3

If you see anything weird, that's probably why. Yes, this blog is the guinea pig. I'll let you know how it goes.

Written by Widge in: Wordpress | Tags:
Jun
01
2007
2

WordPress Changes Double Dashes to Single Dashes: Make It Stop

WordPress does about 90% of things well and in sane, sane fashion. The other 10% will make you want to gnaw a limb off a cute little kitten.

After putting up with the whole "–" becoming "-" for as long as I could, I finally snapped and tried to look around for a solution. I had fixed this at one point, in a previous version of WordPress, but for some reason they moved stuff around and the first time I tried to find it I couldn't.

I tried to find something that would take care of it for me, or at least the good word on how to make it go away, but the hits I found on Google weren't very helpful. There's nothing worse than "helpful assholes" who try to tell you that you should just get used to something and why would you ever want to do it That Way to begin with? It seems like every time somebody wants to change something formatting-wise in WordPress, some of these HAs show up and want to waste your time with trying to convince you instead of just telling you what the hell you need.

So here's what I needed, in case anybody else needs it:

(more…)

Written by Widge in: Wordpress | Tags: , , ,
Widge and a Night of the Living Dead poster from Belgium

This is me.

No, really.

I am a writer, poet, spoken word performer, actor, singer, improviser, content creation and idea machine, freelance iconoclast, and the internet's janitor that dispenses pop culture wisdom to the protagonist of your choice. I have seen too many movies, read too many comic books, and when the zombies finally come, I'm the one you want to call. I sure as hell won't answer the phone, but it's the thought that counts. I advise people on the net, websites and technology, because I know these things instead of having a life or sleeping.

If you like something I've done, donate to the Widge Wants to Kill His Day Job Fund. Or if you'd like to hire me for a job, my rates are terribly reasonable. We thank you.

Powered by WordPress. Theme: TheBuckmaker's Aerodrome.