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

Sexy CelebritiesMovie and Television NewsVideo Games News

Currently browsing the tag: WordPress

Site Updates Making Buzzfeed XHTML Compliant

One thing I find with Wordpress is that with each plugin you add, you have extra hours involved in making the code XHTML compliant. I still have yet to find a way around the YouTube video ad code problem that I mentioned in a previous post. Sigh. This time around I added a plugin to a few of my sites for Buzzfeed and sure enough…there were compliance issues.

First of all, the CSS styles for the images get located into the page code in the same place where Buzzfeed shows up. This causes a problem so I copied and pasted the styles into my own style sheet and then deleted that section from the template.php file located in the plugin folder. The next problem I ran into had to do with the item titles. If a Buzzfeed item was called “Jim’s Computer,” then the Alt tag for the image would go all screwy. This is because they used apostrophes all through the PHP plugin echo code.

Again you want to edit the same template.php file and look for the following section in the 3rd echo set:

You want to change this to the following and then don’t close the file yet. We won’t be done.

Notice I only changed the apostrophes to a \” on each side, but now it will work fine. If a feed item is “Jim’s Computer” then it won’t be a problem.

The final step is to find the “BuzzFeed” link at the top of this entire block of code and the “Add To Your Site” at the bottom. They forgot to add the closing anchor tags on these links which also screws up the compliance. Put them in right after the text I quoted above and then save the file and upload. Your site should be compliant now. Cheers!

Popularity of this post: 57%

Category Flagged: Site Updates
Comments Off

Currently browsing the tag: WordPress

Special Items WordPress 403 Login Error

Just last night I got some weird error trying to get into one of my sites. It was a WordPress 403 Error, except the page was telling me something about being a spammer and downloading tools to fix it. It said if I couldn’t fix the problem myself then I was to email the site admin and of course it gave me my own email address.

I was starting to think the worst and started searching Google to see who else this had happened to. I lucked out right away and found out that it was the Bad Behaviour Plugin that was a problem. To make a long story short, don’t panic, go to the link below and download the updated plugin, FTP to your server and you’ll be in.

Bad Behaviour 2.0.11 Fix

It explains more at the site of why this problem happened. I hope this helps if it’s happened to you.

Popularity of this post: 63%

Category Flagged: Special Items
Comments Off

Currently browsing the tag: WordPress

Site Updates YouTube AdSense is not valid XHTML

I haven’t updated here for some time now, but if you didn’t know…the whole network of blogs has more writers (4 of us now) and has taken off in leaps and bounds. I’ve been continually updating the tech behind the scenes and I’m really happy with things at the moment.

I have learned that in some lower versions of IE the site looks a teeny bit funky, but I’ve decided to not worry about it. Those lazy buggers need to update their browsers! This is 2007 after all.

I will eventually write more about what I’ve done with WordPress on this blog and I’ve been thinking of releasing my modified plugins I have, such as the video plugin that allows videos from YouTube, Google, iKlips, Live Leak, Daily Motion and more all in valid XHTMl format. It super easy to post a video using the plugin, believe me.

I will say that while I’ve always worked very hard to keep all my sites fully XHTML and CSS valid, the new Google YouTube AdSense playders break that validation and as far as I’ve found…it’s not fixable. They have a div id containing your personal player account number or whatever it is and that number contains an “=” sign. There is no way around it. You need it to make the player work and if you have it, your site can’t be valid. It’s a pain in the neck that I’ll live with for a while to see how things go.

Beyond that, all my sites are completely valid. Rewriting ad code from advertisers to be valid is a pain though. I wish more companies would consider those things and just do it in the first place.

Popularity of this post: 100%

Categories Flagged: Site Updates, Geekscribe, Flickscribe, Popscribe


Currently browsing the tag: WordPress

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

Category Flagged: Site Updates

Currently browsing the tag: WordPress

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

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