[ Tag Archive ]
Simple Voting for WordPress with PHP and jQuery
I needed to create a simple way for site members to vote on a post and the few scripts I found didn’t really work how I needed them to. So I decided to whip something together myself. I developed a pretty basic script using PHP and jQuery to allow members who are signed in to click on a simple link to add their vote to a post.
Remove the WordPress Generator
WordPress automatically places a line of text between your <head> tags which states the version you currently have installed. I have read that it is there for statistical reasons which is all fine and dandy, but sometimes showing off which version of WP you are using lets hackers know exactly what vulnerabilities your site has.
For security reasons, I suggest removing the generator, and doing so only takes one line of code.
Creating a Mouseover Fade Effect with jQuery
My last little jQuery tutorial was an alternative to using CSS to create an image change on a mouseover. Now I want to take that one step further and add a fade effect. For my example, I am going to make a black and white image fade into a color image. To achieve this effect I am going to introduce the animate function. There are tons of possibilities in regards to jQuery’s animate function, but for this tutorial, I’m going to keep it simple by just using it to do one thing.
Creating a Secondary CSS Stylesheet for Internet Explorer
Don’t ask me why, but for some reason one of the biggest headaches in regards to web programming is cross browser compatibility. Who knows what goes on behind the scenes at Microsoft and Mozilla and why they can’t just agree on a certain standard to make it easier for the rest of us to work around their browsers.





