Tag Archives: php

Email Comment Notification Issues

I don’t know how many other people who’ve upgraded to WordPress 2.3.1 are having this problem, but I’d noticed that none of my email comment notifications were coming in anymhttp://shamuswrites.com/wp-admin/post-new.php
Writeore. I sent a note about it to the wp-testers list, and found that the fix is pretty easy.

Go to wp-includes/pluggable.php and find and remove line 228:

$phpmailer->Sender = apply_filters( 'wp_mail_from', $from_email );

Save and re-upload the file, and you should be back in business. I’ve “submitted a new ticket”:http://trac.wordpress.org/ticket/5294#comment:1 for the issue, so hopefully the problem will be fixed in the next revision.

Server Migration

Well, I had my site moved from a PHP4 server to a PHP5 server so I could run a new application I’m interested in checking out. Trouble is, after the migration I discovered that I also need Apache2 installed, and this server only runs Apache 1.x.x. I’ve opened a new ticket to see what the chances are of getting Apache2. I don’t even know if Bluehost runs Apache2 on any of their shared servers. Hopefully, I’ll find something out soon. They’re usually pretty quick on the turn-around for open tickets, which is always nice.

Learning PHP

I’m sandboxing PHP today (not to be confused with playing with the “Sandbox”:http://plaintxt.org/themes/sandbox theme from the fine folks over at “plaintxt.org”:http://plaintxt.org), working on learning the code so that I can start coding the stuff from scratch, instead of just being able to hack other people’s work. I’ve been wanting to do this for awhile now, and well, I have quite a bit of free time on my hands these days, so this seems like as good a time as any to learn a new skill. I’ve got the PHP tutorial up in a tab, and I’m working through it step by step.

I’ve got at least a couple of plugins I’d like to write for WordPress, things that I haven’t seen anyone else put together yet. Trouble is, I don’t know enough yet to write these plugins myself. I plan to change that. And heck, maybe I’ll even be able to add my own weight to some of the WordPress development somewhere down the road.

Anyway, time’s a-wasting. Back to the tutorial. So far, I’m finding PHP coding to be pretty straightforward. But then again, I learned C Programming several years back. This really isn’t all that much different. It’s fun!

Bit by the Coding Bug

I’m getting my inner geek on – again. I spent the majority of my day today trying to figure out how to crosspost from WordPress to MySpace. I’d found a “hack that looked like it had potential”:http://noumenon.roderickrussell.com/wordpress-to-myspace-auto-crossposting that I messed with for quite a while, but so far I’ve had no success in getting it to run, despite having following the directions to the letter and checked everything over fifthlicate (and then some). I’m still waiting for a reply back on my comment to see if the hack’s author has any idea what’s blocking my attempts.

Ultimately, I gave up on that and started trying to find a way to put a light-weight Twitter badge on to my MySpace profile. I don’t like any of the badges that Twitter produces, so I looked around for other options. But of course, MySpace being the notoriously unfriendly environment that it is, there are no good solutions that are both functional and attractive on the page. So, I’ve given up on that option for the time being, as well.

In the meantime, I plan to learn a little more about the ins-and-outs of PHP coding tomorrow. I’ve got the MyDashboard plugin installed on this blog, but it doesn’t display quite as much information in the dashboard from some of my other behind-the-scenes plugins as I’m used to. So, my intent is to learn out to create a few gadgets that will tap into these plugins and put this information closer to my fingertips. If all goes well, I may even plan to create gadgets for a few other things that I’ve always wanted on the dashboard and never been able to find plugins for.

On that note, I’ve got a few of the plugin pages from the WordPress codex up in my browser. I really would like to get more involved with the development end of WordPress, but it is my sketchy knowledge of PHP that limits how much I can do. Since I have at least a two or three more weeks of down-time while I heal up from surgery, I hope to make some use of that time to learn a little more about how to write plugins for WordPress. I’ve come up with ideas in the past for things I’d love my WordPress installation to be able to do, things that, thus far, no one else has created plugins for. So, I hope to learn and add a few things to the WordPress community myself.

I’ve got other things to work on, as well. I still have plans to create a customized WordPress theme. I’d started work on a minimal theme last week, but that’s been on hiatus due to surgery last week. But now that I’m beginning to feel better and gain some more mobility again, I hope to get back to this project, as well, and try to finish it up. The skeleton I’d managed to build last week will probably undergo an overhaul, though, as I’ve changed my mind about some things in my mind about where I want to go with it. Heck, if I get _really_ ambitious, I might even tailor a new bbPress theme to go with it.

Code Geek

I am a WordPress god! Ok, not really, but I _am_ enjoying the fact that I can now manipulate a WP theme pretty easily. It’s true – the more you use CSS, the more you play around with web design, the better you get at it.

I host a number of different websites for myself and for friends on my shared account, and I’ve been helping a guy who maintains one of those sites tweak a WP theme to force it to behave. He’s done most of the actual template work, taking an existing one and hacking it pretty heavily to change it to a very different look and feel. I spent a couple of hours IMing with him last night adding additional tweaks to the theme – like adding a navbar at the top of the header, dropping the sidebar completely from the theme (since it’s going to be essentially a static CMS once everything’s in place), and changing a number of other small elements. It was fun to realize once all that was done that it was a lot easier now than it had been the first time I tried to change and manipulate a WP theme back a year or so ago. I’ve gotten a lot more comfortable both with how individual WordPress elements function as well as with CSS itself in being able to position and affect various things on the page.

From the first time I started teaching myself HMTL about 10 years ago until now, I’ve always enjoyed playing around with web page design. I’m pretty much self-taught, which is also why I don’t know nearly as much as I’d like to. I’m pretty well-versed in HTML and CSS now, and I know enough about PHP to be able to hack the code, though I don’t know enough PHP to write pages from scratch, much to my chagrin. But sometimes I don’t wonder if I shouldn’t go into the information technology business. I love playing with server-side utilities, I love hosting websites, and I love just building things out of code. It’s a hobby that I’m pretty passionate about. I’m just afraid that if I ever turned such into a business, I wouldn’t enjoy it as much.

I don’t know if I’ll ever actually step into the IT business – it would probably require me to find both the time and the money to pick up formal training to finish filling in the gaps of my coding knowledge, and that’s not something I’m sure I’ll ever be able to do. But the prospect of being able to go freelance sure is appealing to me. I’ve always wanted to be self-employed. There’s plenty of time, though, so it’s an option that I’ve not completely ruled out yet.

I’m starting to think, though, that it might be time for me to create another WordPress theme. Anyone have any suggestions for layout and features?

Tag Filters

I’ve a feature request for all you php ninjas out there, particularly those of you who develop plugins that do strange and wonderful things with tagging:

How about making the ability to tag posts in WordPress a little bit more powerful? For instance, I use “Ultimate Tag Warrior”:http://www.neato.co.nz/ultimate-tag-warrior/ to create a site index here, and it’s nice to be able to click on a particular tag and see all of the entries that fall under it.

Here’s the thing, though – I’d like to see it be possible to filter down still further into those entries. Instead of, for instance, being able to see the entries that fall under speculative fiction only, I’d like to be able to add more tag filters and see all the entries that have been tagged as _both_ speculative fiction and tv shows, or to be able to add still more filters so that I could see all entries that fall under speculative fiction, tv, shows, and heroes, if I wanted to get that specific. It would also be cool to be able to filter by an ‘OR’ command, so that I could sift through all my entries and see all posts that have been tagged as _either_ science fiction _or_ fantasy, for a larger list. I believe that this could easily be done using AJAX to add and remove tags at will. “bbPress”:http://bbpress.org already has something like this in place for individual posts, so I don’t think it would require much effort to modify that script slightly to make it do more and go further.

So, any javascript/php geeks out there looking for a new challenge to expand the functionality of some of useful tools to make them even _more_ useful?