Subscribe via

WLTC: How to Highlight Search Terms with jQuery

Highlighted Search ResultsIn this post, I would like to highlight a good tutorial I recently wrote on Weblog Tools Collection in case you guys have missed it.

The tutorial shows how you can easily hack your WordPress blog to highlight search terms using some jQuery magic.  I particularly like this method because it is an easy modification and jQuery will let you highlight any text within any HTML element no matter if the text is in the post title or in the post content area.

Read the full article here.

Weekend Links – Mar 21, 2009

Using jQuery to Easily Dofollow/Nofollow Links

This might be old news to you, but you should know that the Googlebot now follow links created by Javascript. I have seen evidence of this myself and was starting to get frustrated that I would have to reevaluate my site and patch any leaking link juice from Javascript links. Before I got to the point of full frustration, I realized that I can use this Googlebot “feature” to my advantage and use Javascript itself to easily correct this leaking link juice problem.
Read on…

Make Any Plugin Work with WP Super Cache

I notice that a lot of people visit my blog because they want to get WP-PostViews or Popularity Contest plugin to work with a WordPress cache plugin like WP Super Cache. In this post I will show you the general technique I use to make (almost) any plugin compatible with WP Super Cache.

Understanding WP Super Cache

As you all may know, WP Super Cache when fully enabled works by saving a copy of the generated HTML file and using .htaccess to redeliver that same static file upon repeated requests. The benefit of this is obviously the time saving from the absence of PHP execution and database queries. This “feature” also has the side effect of staticizing any parts of the page that needs to be dynamic, such as:

  1. Statistics tracking: This includes things like page view counting/displaying and visitor tracking. Some plugins that do this are WP Post Views and Popularity Contest.
  2. Dynamic visitor targeting: This includes things like showing different content depending on who your visitor is. Some plugins that do this are What Would Seth Godin Do and Who Sees Ads.

Read on…

Automatically Cycle/Rotate Fun With Sidebar Tabs

Tabbed WidgetOne of my favorite WordPress plugins that I use is Fun With Sidebar Tabs, coded by the awesome Andrew Rickmann. This plugin lets you easily tab your sidebar widgets so you can solve your sidebar cluttering issue.

The only addition I would want from such a wonderful plugin is the ability to cycle (or rotate) through the tabs automatically, so here it is. My implementation is just a simple jQuery javascript that should just plug-and-play[pray] with Fun With Sidebar Tabs.

I will also be submitting this to Andrew for possibly patching Fun With Sidebar Tabs. Stay tuned by subscribing to the RSS feed and I will let you know when the changes become official. For now, installation is easy as pie.
Read on…

Weekend Links – Jan 16, 2009

  • 45+ New jQuery Techniques For Good User Experience – by Noura Yehia. JavaScipt libraries have made huge leaps and bounds in helping developers write code and develop products …
  • Display custom url if comment authors url is blank – Here is a nifty trick for your comments.php template. If someone comes to your site and leaves a comment but doesn’t leave a url back to the…
  • Anti-AdBlock Plugin – Ty Bone, maker of the useful WP Greet Box Plugin, has just released Anti-AdBlock, a WordPress plugin that detects if the user is runn…
  • How To: Integrate Twitter into Your WordPress Blog – Although I personally am not a major Twitter user, I do see the value in the service and have made several attempts to use it more often. Fo…
  • How to: enlight searched text in search results – Open your search.php file and find the the_title() function. Replace it with the following:
    echo $title;
    Now, just before the modified line,…

Read on…

How to Discourage Visitors from Using AdBlock

How to disable AdBlockIf you are a new user and you use any form of advertisement blocking (e.g. AdBlock) on your browser, you would have been greeted with a neat little message saying “Doh! It appears that you are using AdBlock software…”.

The purpose of this post is to show you how to create such a message for your own website. I had this idea from a comment I found on one of my favorite blogs (Webmaster Source) regarding combating AdBlock.

Before I go on, let me say that I am not interested in discussing/debating the use and ethics of AdBlock software in depth in this post. I’m planning on writing a post with my research and data on the effects of discouraging AdBlock use in a later post, so let’s save that discussion for another time.   For now I would like you to evaluate the pros and cons of this mod and decide for yourself if you would like to install the mod or not.
Read on…

Released WP Greet Box Version 4.4

What’s new in this release?

In this release, I added more default greeting messages using my own set of social media icons. I also added the ability to specify multiple greeting messages per referrer by means of a wildcard (*) and a list operator (,).

The following new default greeting messages were added along with its own social media icons:
Read on…

Released WP Greet Box Version 4.3

What’s new in this release?

On this release, I added the ability to detect the visitor’s search keywords and use those keywords to display related posts for the visitor. *IMPORTANT* Upon upgrading, make sure you deactivate then reactivate the plugin. This will give you default settings for newly available options.

Currently this works for the main search engines and other search engines that adhere to a few standard rules of query structuring.

This is what your visitors will see if search keywords were detected in the referrer:
Greet Google Closed
Read on…

Released WP Greet Box Version 4.2

I received a lot of great feedback for versions 4.0-4.1.1, so I decided to incorporate some of those suggestions into version 4.2. I have also ran through my 25 test cases prior to releasing the code so hopefully, this release will go a lot smoother than version 4.0 release. *IMPORTANT* Upon upgrading, make sure you deactivate then reactivate the plugin. This will give you default settings for newly available options.

What’s new in this release?

Read on…