So recently I’ve been adding things to all the blogs as they come to mind, such as Flickscribe’s Top 5 movies from the weekend boxoffice or the quotes that are shown on all three sub-site’s home pages. I did a ton of minor changes as well.
I also cleaned up all the adsense code so that pages that don’t need to have ads (such as the contact form) don’t have them and incorporated a bit more adbrite stuff. We’ll see how it goes.
One big problem I ran into was regarding image uploading in Wordpress. Here is the problem I found:
1) make a post and load “image-person” and title it “image-person”
2) display it as a thumbnail with a link
3) publish that post
4) make a new post and load “image-dog” and title it “image-person”
5) publish post
What you will find is that if you go to the older post and click the thumbnail, you expect the image of “image-person”, but you get “image-dog” instead. This problem was most noticable on Popscribe now that I’m getting some images with the same name or title being uploaded.
I spent hours trying to figure out why the wrong post_ID was being sent to the attachment page or what the parent_ID or whatever in the database was saying. Instead, I found the answer was in the WordPress code itself and I’m sure the fix will be in the next update (2.0.1 is what I have now).
When an image is uploaded, it wasn’t checking that the attachment slugs (names) were unique, so it would load “image-person” and “image-dog”, yet the slug would be the title “image-person” for both files and WordPress would always pull the newer one in the attachment page.
The fix for this is here
It’s some code you can replace in the post.psp that will check the attachment slugs as a name check. Now you upload those same two files I mentioned before and you get “image-person” and “image-person-1″ so the attachment pages will work properly.
I’m just glad to have it fixed.
Popularity of this post: 52%