Offering Ads Dependent on Visitor Type?

There are systems that do something similar, particularly for Example 2. What Would Seth Godin Do, for example, stores a cookie in the user’s browser that tracks the number of times they’ve visited the site. If they’re a new visitor (have visited less than 5 times), it displays a message suggesting they subscribe to the … Read more

Facebook Like Button On Individual Comments

You should add the list of comments within the comments.php file the following code: <iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(post_permalink() . ‘#comment-‘ . comment_ID()); ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”></iframe> And then customize the display rules in the stylesheet. Hope that helps. 😉

Creating a modal dialog without jQuery

The WordPress admin area uses Thickbox, which is still a jQuery plugin (jQuery is used all over the admin area). You need to enqueue the script and style (add_thickbox() does this for you), and then all links that have class thickbox will be converted. You need to add some URL parameters too, for example the … Read more

Advanced Integration – WordPress + YOURLS

I would probably go about this way: The plugin has a function called: wp_ozh_yourls_send_tweet($tweet); as you can see it accepts the tweet message and posts it to twitter, also it has another function called: wp_ozh_yourls_geturl( $post_id ); which accepts a post id and returns a shorturl as string. so after knowing that I would use … Read more