Friday, September 3, 2010

timthumb.php returns a 404 Error in WordPress

May 20, 2010 by Josh Highland  
Filed under linux, php, wordpress

timthumb.php returns a 404 Error in WordPress

timthumb is a great little php script that helps create thumbnail images (http://code.google.com/p/timthumb). I’ve used it before, but recently I purchased a wordpress theme that used it, and it wasn’t working. I would get a 404 error when I tired to access the directly via a url like this: theDomain.com/wp-content/themes/theTheme/scripts/timthumb.php?src=/wp-content/uploads/2010/05/moose1.jpg&h=207&w=237&zc=1&q=80 After some digging around in [...]

Removing trailing comas with PHP

November 2, 2009 by Josh Highland  
Filed under php, tutorials

Removing trailing comas with PHP

Dealing with trailing comas in lists is common problem for developers. I found the best way to handle this situation in PHP is with the following regular expression. $string = eregi_replace(’,$’, ”, $string); Before: string = “2, 6, 9,” After: string = “2, 6, 9″ Only the trailing coma will be stripped. If no coma [...]

Create WordPress Thumbnails Automatically

September 29, 2009 by Josh Highland  
Filed under php, tutorials, wordpress

Create WordPress Thumbnails Automatically

WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as meta-data. This meta-data can be used by theme authors to do some pretty cool things. The theme I am currently using allows for a custom field named “thumb”. If you create the “thumb” [...]

phpBB admin password manual reset

phpBB admin password manual reset

Today I ran into a situation where I had forgotten the password to my development instance of phpBB 3. I was stuck in a situation were I needed to reset the password. I had full admin access to the database, so changing it there wouldn’t be the problem. The real problem is that phpBB uses [...]

Modifying MimboPro to Add Paged Navigation To Category Pages

December 8, 2008 by Josh Highland  
Filed under hacks, internet, php, tutorials, web 2.0, wordpress

Modifying MimboPro to Add Paged Navigation To Category Pages

Recently I have been doing a lot of work with WordPress. I love WordPress. one of the things I like most about WordPress is the plugins and themes. I recently bought a copy of the MimboPro theme. Mimbo is clean and very professional. More of a CMS theme then a blogging theme, prefect for what [...]

WordPress 2.7 is almost here!

December 3, 2008 by Josh Highland  
Filed under php, web 2.0

WordPress 2.7 is almost here!

OMG OMG OMG! WordPress 2.7 is almost here. Here is a long list of the changes that are going to be in the latest release. I have been a huge wordpress fan for some years now. Its always treated me well. Its treated me so well that I have decided to move my main website, [...]

How I do layouts and views in CodeIgniter

November 9, 2008 by Josh Highland  
Filed under php, software, tutorials

How I do layouts and views in CodeIgniter

I have been a loyal fan of the kick-ass php framework, codeIgniter, for some time now. A while back I made a post on how to improve the view handling of codeIgniter. I would like to retract that post. Through the comments on that post I found out about an undocumented parameter (as of version [...]

php sprintf + sql like

July 6, 2008 by Josh Highland  
Filed under MySQL, php, tutorials

php sprintf + sql like

Sometimes I do my best programming when I’m tired. Don’t ask me why, I just do. It’s a skill I picked up in college. Being tired and producing good code wasn’t the case last night. I was trying to use the sprintf PHP function with a SQL “Like” statement. I made some dumb mistakes that [...]

Improving CodeIgniters View Handling

April 29, 2008 by Josh Highland  
Filed under php, tutorials

Improving CodeIgniters View Handling

If you have ever worked with an MVC framework for web developent, you know that the “V” stands for “view”. At work, I program in coldfusion, and use the coldbox framework, and I love it. At home, I write PHP code, with the codeigniter framework. I love codeigniter, but I think that its biggest weakness [...]

LifeStreaming Is Simple As Pie

LifeStreaming Is Simple As Pie

Its not secret, I love social networking, I cant get enough of it. I also love programming and anything internet related. I’m not sure how I came across it, but a PHP based, Object Oriented RSS caching tool named SimplePie caught my attention. Previously I had been using a tool called Last RSS, but I [...]

Next Page »