Subscribe via

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…

WPGB Troubleshooting: Greet Box Doesn’t Show Up

Is it me?
photo credit: id-iom

This post is one of my WP Greet Box Troubleshooting Guides series (more to come).

Symptom

You have installed WP Greet Box and found that your greeting messages do not show up.

Note that this troubleshooting guide should only be used for WP Greet Box with cache compatibility mode enabled.

Step 1: Check code embed

  1. Visit one of your post pages.
  2. Make sure there are no javascript error messages when you visit a post page.
  3. On your post page, do a browser View > Source on the page, then check if the following text are there:
    • wp-greet-box/css/wp-greet-box.css
    • id=”greet_block”
    • wp-greet-box/js/functions.js
    • wp-greet-box/js/onload.js

If all is there, then proceed to next step.

If wp-greet-box/css/wp-greet-box.css does not exists, it could mean that your theme does not make a call to the standard wp_head() function. You can fix this issue by manually inserting the follow between your <head> and </head> tags:

<link rel="stylesheet" href="/wp-content/plugins/wp-greet-box/css/wp-greet-box.css" type="text/css" />

If wp-greet-box/js/functions.js & wp-greet-box/js/onload.js does not exists, it could be that your theme does not make a call to the standard wp_footer() function. You can fix this issue by adding <?php wp_footer(); ?> into your theme’s footer.php or manually inserting the following towards the bottom of your HTML (near the </body> tag):

<script type="text/javascript" src="/wp-content/plugins/wp-greet-box/js/functions.js"></script>
<script type="text/javascript" src="/wp-content/plugins/wp-greet-box/js/onload.js"></script>

If any of these are not there, you might have not installed the plugin properly. Please read the readme.txt file and then retry the installation.
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…

Released WP Greet Box Version 4.0

I think this version of WP Greet Box is ground breaking enough to bump the version up to 4.0. To be honest, the reason version 4.0 came out so early is because I just found out 3 days ago (via Google Alerts) that I have a new competitor, Referrer Detector, written by Phan Van An. He seems like a really nice guy (he mentions my name repeatedly in the post), but he could have at least contacted me about co-authoring before forking the code :). With that said, I checked out Referrer Detector and decided to implement some of its wonderful changes in WP Greet Box and expand WP Greet Box to be able to work with WPMU (Thank you Andy Beard for your suggestion).

What’s new in this release?

Read on…

AJAX Force Comment Preview WordPress Plugin

This plugin is no longer supported/updated because of low demand for the plugin.

Today I would like to announce the release of ‘AJAX Force Comment Preview’ WordPress plugin. The plugin works like TextPattern’s built-in ‘force comment preview’ feature by forcing your commenters to preview their comments prior to submission. In addition this plugin is AJAX enabled so the user does not have to reload the page to preview his/her comment. Here are the key benefits of having this plugin enabled.

  1. Comments quality will increase as users will be forced to preview his/her comment before submitting it. Previewed comments are sent through WordPress’ various filters so that the user can see exactly how his/her comment will appear after it is submitted.
  2. Spambots will not be able post comments unless it actually tries to “preview” the comment. When a preview is requested, a nonce key is generated and returned along with the preview. This nonce key is then required to be sent back to the server during comment submission. So in order to submit a comment, the spambot would have to use javascript to request a comment preview prior to submitting the comment. Most spambots do not care to preview so this offers some level of spam protection.

You may find the download link below. As always, please feel free to share any comments, questions, and suggestions!
Read on…