Search
If you've got an idea or some
interesting news - let us know

Sexy CelebritiesMovie and Television NewsVideo Games News

Currently browsing the date: July, 2007

Site Updates How I like my WordPress

There’s been quite a lot of work behind the scenes and I have to say that I am really enjoying WordPress. Coming into it as a new user and complete novice, it was very easy to get up to speed and do the things I wanted to do.

At this point I have tested a great many plugins, but removed most of them after finding they didn’t function how I wanted. The other plugins work just great, although I’ve modified many of those in the core code for extra features I wanted to have.

For example, I’m now using the Share This plugin and while I found it to be excellent in comparison to Sociable (which I have too), it didn’t pop the links into new windows like I wanted. I tweaked the code of the plugin to now create a new window when links are clicked. I hate taking a user away from the main site.

I’ve also update much of the php to allow me to turn off various plugins and that feature will simply disappear from a page rather then cause an error with the site. I still have tiny things I’m adding or changing, but the core of things are just how I want them.

If anyone wants some info on how I’ve done something…drop me a line.

Cheers.

Popularity of this post: 62%

Category Flagged: Site Updates

Currently browsing the date: July, 2007

Site Updates Fixing a WordPress attachment upload problem and more

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: 49%

Category Flagged: Site Updates
Comments Off

Tags:



Add to Technorati Favorites



Page Validations: xhtml validation  css validation
Page Translation: Deutsch Espanol Francais Italiano Arabic Japanese Korean

All trademarks and copyrights on this page are owned by their respective owners.
Any comments are owned by the original poster.
Everything else copyright © 2005 - 2008 Wizard Words Blog Network

Close
E-mail It