Needed to do some fancy footwork with htaccess and rewriting urls for redirection. Found this tutorial on yourhtmlsource.com, which so far seems pretty simple to understand and helpful.
Needed to do some fancy footwork with htaccess and rewriting urls for redirection. Found this tutorial on yourhtmlsource.com, which so far seems pretty simple to understand and helpful.
Oh, this one was going to drive me NUTS! I had to use images as buttons in a form. That's easy enough:
<input type="image" SRC="blahButton.gif" ALT="blah" name="blah" id="blah" value="blah" />
Which works fine when simply submitting the form when there's ONE button. But on one page I had TWO buttons. The form would submit to itself, and then depending on which button was clicked, I would handle the form as appropriate. Worked fine in firefox – nothing happened in IE. I found this page in a search.
What I had been doing was simply (in php)
if (isset($_POST["blah"])) {
//do stuff
} else if (isset($_POST["blahblah"])) {
//do different stuff
}
What fixed the problem was changing that code to this:
if (isset($_POST["blah_x"])) {
//do stuff
} else if (isset($_POST["blahblah_x"])) {
//do different stuff
}
Now my form works…
(Yes, I'm still alive. You have no idea how insane my life is at this moment. Maybe sometime in the next few months, I'll break format and share some personal news so you can all be included in the insanity)
Saw this on weblogtoolscollection:
Each user level's capability explained. Very handy!
I've been pretty absent these days. Lots of big changes happening personally – but still wanted to join in the announcements of WordPress 1.5 officially hitting the street. YEE HA!!
Yes, one of these days I'll actually update and upgrade this blog… Really I will. (Ok, truth is I have ZERO free time these days… but I will do it!!)
I know this has been asked for some time. You can thank the snow storm we got here in the northeast, that made me stick around long enough to get it done.
I've updated my wpPaginate plugin to work with WP 1.5. I got a lot of inspiration from the Custom Posts Per Page plugin (and my plugin should work in conjunction with that one).
Current Version: v. .2.2
Last Updated: 1/25/04 9:30 PM EST
Read the rest of this entry »
One problem I recently ran into with Above The Fold, was that for category pages, I wanted to display ALL items in that category on the category page – but on the home page – I wanted to display just the last 8 added items.
I was going to start writing a hack or plugin to do this – but as it turns out – there's already one that does it:
Custom Posts Per Page
[thanks to Sam for the link]
I've been finding that A LOT of things I can ever think of to do with WordPress – 99.9% of the time – someone has already written a plugin or a hack to do it. It's really quite awesome
I've been a little absent around here lately, and part of the reason is that I've been working on a project that I can now formally announce here! I'm starting up a little side business. You see, I've always loved doing origami – from the time that I was a kid. I can't even remember when I started. And now I've decided to turn some of my creations into things I can share. Ok… sell. 😀 My little side business is called Above The Fold (AboveTheFold.org) and it's an online store for (at the moment) origami earrings, cards, and magnets. (More things will be coming).
(As for the .org – instead of the .com – the squatter "owner" of the .com is willing to sell it… for a mere $7K! heh. I'll be lucky if I sell 5 pairs of earrings this whole year!! LOL! I don't think it's in my budget!)
This may not seem very "scripty" related – but actually it is. When working on my ecommerce site, I briefly looked into some pre-made web-shops, but they were all a little "too big" for what I wanted to do. I wanted to add products easily. I wanted to have "add to cart" buttons automatically generated.. etc. etc. I thought I'd just start writing something on my own – but then realized that I could probably do A LOT of what I wanted with WordPress!! Not sure how many ecommerce sites are WordPress driven – but I did it quite easily. Now that it's up and running, I can see more "ecommerce" type "plugins" I can add – but for now, I'm busy making origami.
But I thought, for those interested, I might share some of my little tricks that make the site run. Many of them are take-offs on what I did for Christine with Pixelog.
Read the rest of this entry »
Well, it was only a matter of time – in fact I'm surprised it didn't happen sooner. If you're looking for a way to deal with that junk here's some good suggestions.
Here's a few steps you can do to protect against some of the spambots:
Master-SpamBot IP, deny this!
[found via weblogtoolscollection]
There's new bulletin board software in town…