Subscribe via

How to Troubleshoot WP Minify

WP Minify is supposed to work out of the box for many cases. That being said, there will always be plugins that conflict with WP Minify because of the nature of this plugin. In this post, I will show you how to troubleshoot these issues for yourself before you have to hit the plugin support forum.

How does WP Minify Work?

When activated, the plugin does the following:

  1. WP Minify intercepts theme rendering at the get_header WordPress hook and puts everything that is echoed/outputted from the PHP code into an output buffer.
  2. WP Minify then intercepts theme rendering again at the get_footer WordPress hook to stop the output buffer.
  3. The plugin then evaluates the page content to extract all JavaScripts and stylesheets out.
  4. The minified version of these JavaScripts and stylesheets are then re-injected into the content.
  5. The page content is echoed/outputted as normal.

Read on…

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.

Tutorial: Get WP Minify to Process Your JS and CSS Files

This tutorial only applies to WP Minify pre-2.0.

You should use this tutorial if you still notice some Javascript and CSS files not being processed by WP Minify after activating the plugin.

Problem

WP Minify only sees scripts and styles enqueued via the wp_enqueue_script() and wp_enqueue_style() function. So if your theme or plugin does not use these functions for printing Javascript or CSS references, then WP Minify will not include them into the Minifying process.
Read on…

WP Minify WordPress Plugin

I have previously reviewed the Minify PHP application and found that the only drawback it had for a WordPress user was that it was semi-tedious to integrate with WordPress. Because of that I would like to release the ‘WP Minify’ WordPress plugin that will integrate Minify into WordPress for you and help you improve your site load time.

Description

This plugin helps you easily integrate the Minify engine into your WordPress blog. Once enabled, this plugin will combine and compress JS and CSS files to improve page load time. Read on…

How to Make WP Greet Box Work on Non-WordPress Pages

I had to
photo credit: miss604

A few people have asked me how to make WP Greet Box work with non-WordPress pages.  Luckily there is a way to easily do this and I will show you how in this tutorial:

Requirement

You must have WordPress installed with WP Greet Box plugin enabled.

JavaScript Modification

You will have to make a copy of “http://example.com/wp-content/plugins/wp-greet-box/js/js-mode.js”, modify it, and place it somewhere accessible by your non-WordPress page. As an example, I will place a copy of the file at “http://example.com/non-wordpress-platform/js-mode.js”. Now open “non-wordpress-platform/js-mode.js” and modify the line:

url: "index.php",

to point to your blog WordPress blog index.php.

url: "/index.php",

For example, if your blog is installed under “http://example.com/blog/”, you would change the code to:

url: "/blog/index.php",

JavaScript Placement

There are a few Javascript files that you need to reference to do this. Make sure you drop the following Javascript references into your non-WordPress page:
Read on…

SezWho is Now JS-Kit (What now?)

SezWho logoEarlier this month, SezWho announced that they have been acquired by JS-Kit.  I have previously written a post praising SezWho for the great work that they’ve been doing.  I must admit that since then SezWho has been dropping the ball on development, allowing other competitors like Disqus and Intense Debate to shine.  Nevertheless, I am quite sad to see them get devoured and rebranded into JS-Kit because they had such great potential.

What to do now?

Before JS-Kit supplied a clear upgrade path from SezWho, I’ve experimented with Disqus and Intense Debate.  They both have comparable features, but here are a few different things that make me prefer each service over the other:

Read on…

Plugin Review: “Top 10”

cell
photo credit: David Locke1

Ajay D’Souza has done it again and brought fellow WordPress users another much needed plugin called Top 10. This plugin counts daily/total visits per post and displays the most popular posts based on the number of views. Now you might just smirk and say that this is just another popular post plugin, but if you continue reading, I will go over how this plugin is different from many other popular posts plugins.

What’s special about Top 10?

Read on…

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…

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…