Okay, before I finish procrastinating, I need to post just one more thing. What I’m going to say is actually pretty funny really.
As you may know, I use the WordPress blogging script. Because it’s an awesome open source script, anyone can pretty much contribute to it. So one day while setting up this script, I was searching for a way to display only one category on the front page. I found my solution the support forum posts and quickly implemented it. However, the current solution they had (which was also in the wiki) had a flaw in that it only displayed that one category in the administration edit function and archives.
Working with the current solution, I devised a filtering method to correct this problem:
if ((empty($_GET['cat']))&&(!preg_match(’/wp-admin/’, $_SERVER['REQUEST_URI']))) $cat = ‘1′; //Replace 1 with your category
I posted my solution to the board, and wandered off. Hours later, I figured out that it wasn’t the best solution. A user named Skippy pointed out that by just placing the hack in the index.php file, all of that my-hacks.php junk could be avoided. Therefore, I revised my method and went back to using the old solution but placed it only in index.php.
I updated the wiki to show other people a good method for showing just one category.
Anyway, today I went back to check on WordPress, and some other user created a wiki entry that had my old proposed solution to it. Supposedly, a couple of people thought it was good and used it. Oops ^^;;;. It’s not my fault! I’ll drop a post in the forum sometime telling them to correct their code ^^;.
Anyway, it was pretty cool to see some of my contributions on there.
The end.
5 Comments
Interesting, you use open source code for your web site but not for your own computer. Anyways I always like to picture it like this:
rm -rf
How do you know I’m not using linux? That’s open source so I’ve just trapped you in a corner. Oh, rm -rf is such a useful command….
“In my opinion, the Graphical User Interface of Linux sucks” which one would that be?
Oh, it does. I don’t refute that statement at all, and I’d bet you that many other *nix users would agree. The open source community writes excellent code, but contributors aren’t exactly getting paid to build aesthetically pleasing software. Big coporations such as Microsoft can afford to do this. Plus, they have to, considering the fact that they are trying to make Windows accessible to everyone.
Additionally, *nix was never meant for hard-core multimedia presentations (such as games). It’s meant to do work. In this case, rendering graphics, developing software, running webservers all work very well on *nix platforms. However, if you run gnome or kde and start dragging a window across your desktop, you’ll quickly notice the different between the gui for *nix and windows.
Don’t you agree?
Mike I do Agree with you on the games thing but if you wanted to play games a playstation can do it better at a fraction of the price. I’m not sure what version of linux you are using 2.4 I expect, or what version of KDE/Gnome you are using but I can tell you that on a fastish PC kde 3.2 has an exceptional gui. Personaly I belive that a gui shouldn’t be using more resources than you are, so I usually use fluxbox and would recommend it for anyone with an oldish PC, though it does take some getting used too.
Also use of linux 2.6 is all good and just on a side note xwine or winex or what every the hell it’s called can be used to play games under linux though it’s not as good as microshaft.