Tag Archives: wordpress

WordPress Plugin – My Page Order

My Page Order allows you to set the order of your pages with an easy to use drag and drop interface. Adds a widget with additional options for easy installation on widgetized themes.

Download here: My Page Order – WordPress.org Plugin Directory

Want to make a donation?

Plugin Info

My Page Order was released in 2006 and has been compatible with every version of WordPress from 1.5 to 2.8.5. It went through a lot of changes, but the effort needed to keep it backwards compatible was quite burdensome. As of version 2.8.6 of the plugin, it will only support WP 2.8 or above.

With the break in compatibility I’m able to take advantage of the new Widget API. It makes adding support for multiple widget instances a snap. Rewriting the widget code also allowed me to add widget options for nearly every single parameter normally available to the wp_list_pages template function. If you were being held back by the lack of options on the built in Pages widget then definitely check that out.

If you’d like to say thank you or make a donation please visit my Gifts and Donations page.

All of the old comments were moved to this page: My Page Order – Archived

Looking for fast, reliable and affordable web hosting? Try StableHost.

Read my StableHost review with the latest coupons

Gifts and Donations

I first published my WordPress plugins back in 2006 and in that time they’ve been downloaded hundreds of thousands times by people all over the world. I’ve exchanged thousands of emails with people running into problems or just saying thank you. I enjoy making myself available to help others, but it can be tough to find the motivation and time to keep it up.

If you find my plugins useful and wanted to say thank you, there are a couple things you could do:

Amazon Gift Card

I love Amazon and a gift card doesn’t have any fees like PayPal. Send me a gift card at froman118@gmail.com. Leave a comment here or include your email in the gift card note so I can say thank you.

Donation

Make a small donation through Paypal. Just a couple dollars is more than enough to make my day and I’m blown away whenever I receive a donation.

Web Hosting Referral

I host with the excellent company StableHost. They offer very fast hosting at competitive prices and I can’t recommend them highly enough.

Read my StableHost review with the latest coupons

If you aren’t able to do either of the above, post a comment and say thank you. I like to hear from the people who are using my plugins.

Contributors List

Show AdSense to Google Search visitors in WordPress

I put AdSense ads on my WordPress plugin pages since the donation button wasn’t exactly raking in the dough. I inserted my AdSense code straight into these pages’ content. Looking through some of my stats I noticed a few of my posts got lots of hits from Google Search that would be good for ads. I didn’t want to show ads to my friends and normal readers so I went looking for a simple solution.

I borrowed some of the code used in this post, http://www.scratch99.com/2008/01/shylock-adsense-plugin-hack-to-avoid-adsense-smart-pricing/. One template function checks the referrer, if it returns true then you display your AdSense code in your post template, single.php in my case. This goes in your functions.php:

function scratch99_fromasearchengine(){
$ref = $_SERVER['HTTP_REFERER'];
$SE = array('/search?', 'images.google.', 'web.info.com', 'search.', 'del.icio.us/search', 'soso.com', '/search/', '.yahoo.');
foreach ($SE as $source) {
if (strpos($ref,$source)!==false) return true;
}
return false;
}

and this goes in your post template where you want the ads to be displayed:

<?php if (function_exists('scratch99_fromasearchengine')) {
if (scratch99_fromasearchengine()) { ?>
INSERT YOUR ADSENSE CODE HERE
<?php } } ?>

And that’s it. Visitors coming in from Google and some other search engines will have whatever ad you want displayed. There are plugins that will do this all for you, but this is simple enough to build straight into your theme. The only downside is if you are using caching, but odds are only your older posts are going to be getting hits from Google. If a page happened to get cached with the AdSense code inserted then everyone will see the ads. Not really a big deal to me, but just something to be aware of.

Blog CSS makeover

Did a little work on my blog’s theme to bring it up to speed with WordPress 2.7. Been using the same theme with a few modifications since WP 1.5 so it was time for a little refresh. List of changes:

  • New font and font sizes.
  • Reset all padding and margins. This made it easy to get consistent spacing across the entire site using margins only.
  • New comments output with gravatar support. Using the new wp_list_comments function with a custom callback to separate trackbacks.
  • Moved header text down so the tails of the Y’s go into the background of the main column, that’s the extent of my creativity.
  • Category and tag pages only show excerpts now.
  • Edited robots.txt and sitemap.xml to avoid Google indexing duplicate content on archive pages.
  • Increased total container width to 895px, my stats show only about 1.2% of people who visit my blog are on 800 x 600 so there’s no point in designing for them anymore.
  • Added code to show Google AdSense to visitors coming straight from a Google search. Did that about a month ago, I’ve made $7 in  February so far.