Had a thought while scrolling to the bottom of a WordPress post with 250+ comments. Does having the add new comment form at the bottom…
Had a thought while scrolling to the bottom of a WordPress post with 250+ comments. Does having the add new comment form at the bottom…
Came across an odd error last week. And by odd, I mean that Googling for the error message only turned up one page. One of…
Needed a quick way to sort on version numbers, and PHP has a usort function that makes it pretty easy. You’ll need an array to…
Every now and then I like to link to Amazon products, along with an affiliate tag. Nothing spammy. But I figure if I’m going to…
Needed this bit of code to keep count of the total number of posts in a network enabled WordPress site. It pulls the list of…
Updating the available pre-release version of ProofBuddy was on my to do list last weekend. A few months ago I wrote a script that pulls…
Spent most of yesterday working on a script that interfaces with WordPress to update posts as it runs. It wasn’t a big part of the…
If you’ve written more than a couple of WordPress plugins odds are good you’ve copied and pasted the plugin sample readme.txt file into your project. Just sat down to start on my 7th plugin and figured there had to be a better way than Googling for the template, opening it, copying, and pasting.
NetBeans makes it pretty easy though by creating a template.
tl:dr Version
Problem is caused by a cookie. Quick fix is to park a different subdomain on top of your OpenX domain and use that subdomain to access admin.
Full Version
Last week I installed OpenX on my server to use for an upcoming project. After getting it installed and setup admin-side, I went and made sure the zones looked right on the project site. Chrome gave me an error that it was in a redirect loop.
It appears this is a very common problem with forum threads all around. The cause is that OpenX uses the same cookie name for both ad viewer tracking and admin logins, a cookie named OAID. Since OpenX is open source I could have dug through the code and either figured out why it was redirecting or changed the cookie name. But I wasn’t really up to that.
Closest thing I found online to a solution was to either clear cookies between using the admin side and checking the production site, or to use two different browsers. Neither a really good solution.
Came up with a better, and much easier, solution.
For an update to one of my web projects I went looking for a way to get the recent posts as JSON instead of using the RSS feed. I personally find JSON much easier to deal with than RSS, so that’s the route I wanted to take.