Love The Way I Work

Tag archive

Wordpress - page 3

The “Digg Effect” at

in Blogging/Wordpress by

What is the “Digg Effect”?

The “Digg effect” definition from Wiki is the term given to the phenomenon of a popular website linking to a smaller site, causing the smaller site to slow down or even temporarily close due to the increased traffic.

This Tuesday my Ultimate Ubuntu Dapper Look Like OSX got dugg. This resulted in over 30,304 page loads and 16,000 unique visitors in less than 5 days. Here are some a visual analysis of the “Digg effect”.

My article at

My Article at

It all started when my article was pushed up to the the front page. I’ve submitted some of my other articles to digg at the same day without much success, and this one seemed no different. Perhaps this article got a little attention from diggers 🙂

Pageloads and Unique Visitors

Pageloads and Unique Visitors

The summary from the Bar Graph above (taken from statcounter):
Pageloads: 30,361 pages.
Unique Visitors: 16,526 visitors.

Feedburner Statistic

Feedburner Statistic

The most Feed Readers and Aggregators using Firefox Live Bookmarks (523).

Visitor Stats

Visitor Stats

The graph above taken from Performancing Metrics.

Traffic Rank

My traffic ranking on Alexa: 115,994 (up 6,320,202).

How to survive from the “Digg Effect” for WordPress

There are some tips to survive from the “Digg Effect” for WordPress:

  1. Coral P2P Web Cache.
    The Coral caching system does not rewrite embedded links to pages or images, so is useful only for sites using relative links to images or other pages. Additionally, Coral will only serve content from the original site up to 24 hours after it becomes unreachable -source Wiki.
  2. DuggMirror.
    Suffering sites may be able to mitigate the “Digg Effect” by temporarily redirecting requests for the targeted pages to one of these mirrors -source Wiki.
  3. WP-Cache 2.0.
    A very-easy-to-install-and-use plugin. By creating cached pages, it reduce the php code parsed by the web server, and also eliminate the query to mysql database. Both speeds up the page load dramatically -source


Diggers seem like a nice bunch they don’t do much damage! 😀 Happy dugg and gud lak!

Google Related Links for WordPress

in Article/Blogging/Google/Wordpress by

You can add dynamic content for your WordPress with Google Related Links unit. With Google Related links you always have fresh content.

Google Related Links don?t give you revenue directly but you can use them to keep your site fresh and interesting. This unit would be alternative trick beside show RSS feed on your WordPress 😉 You can choose many options here:

  • Size: Leaderboard, Banner, Medium Rectangle, and Small Rectangle.
  • Link type: Searches, News, Videos, and Web Pages.
  • Colors: Light Blue, Dark Blue, White, Yellow, Grey, Pink, or Green.
  • Finally, get your code

Adding Google Related Links to WordPress

  • Open wp-content/themes//index.php
  • You may place it in single.php, post.php or page.php also. You may place it inside theloop.php 🙂
  • Add Google Related Links code where you’d like the Google Related Links unit to appear.
  • Well done!
Google Related Links


Explorer Destroyer on WordPress

in Blogging/Tutorial/Wordpress by

Explorer Destroyer is javascript that sits above your regular html on a webpage. When an IE user visits the site, the script will display a block of HTML encouraging them to switch to Firefox.

You already want people to switch to Firefox. Now’s the time to get serious about it. Google is paying $1 for each new Firefox user you refer.

This is pretty amazing. Now you can advance your ideals, save people from popups and spyware hell, and make some serious money. Millions of people have heard about Firefox and are ready to switch–all they need is a friendly push.

That’s where these scripts come in. They’re specially formulated to give just the right push, maximizing souls-saved and dollars-for-you.

I just installed this script on this blog and I want to figure how this script work, giving me more money of course 😉

How to install this script into WordPress?

  1. You need a Google AdSense account to make referral money for each user switched.
  2. Download Explorer Destroyer and unzip the file.
  3. Pick which level you want to install and open the html file for that level in an html or text editor. See for demos of each level.
  4. Grab the file for the front page of your site and open it in an html or text editor. You should save a copy of the original file in case something goes wrong.
  5. Copy the entire contents of the script file and paste it into your HTML. Where you paste it is crucial. The easiest way to do this is to copy the contents of the script file, select the <BODY> tag in your current page and paste the script over it. That will replace your BODY tag with the correct BODY tag for the script and will place all the script contents where they need to be. In WordPress, you should paste your script into header.php file or you should search where the <BODY> tag exist.
  6. Insert your Adsense referral code into your html. In each of the three levels there’s a section of code that displays the ‘Get Firefox’ button. This code is also how Google tracks your referrals. You need to replace this code with the code for a button from your own Adsense account. To find where your Adsense button should go, look for the grey comment text that says:
    and ends with
    <-- --> 

    To get your own referral button, login to Adsense and click on the ‘Referrals’ tab. Then click on the ‘Firefox’ tab and copy the code for one of the buttons. We suggest using the medium-size square buttons.

  7. Optional: customize the html. You can make any changes you’d like to the HTML that displays when IE users come to your site. Adding a personal message from you is a great way to convince your readers to switch. I recommend to edit the default message because I not sure the default message is acceptable by Google’s policies. Correct me if I wrong 😉

    Click the button on the right to download Firefox.

    My custom personal message is:

    I see you’re using Internet Explorer. I highly recommend Firefox for best view of my site. Try Firefox, you’ll like it better.

    • Firefox blocks pop-up windows.
    • It stops viruses and spyware.
    • It’s better for web designers and developers.
    • Features like tabbed browsing make reading webpages easier.

    – my firefox referral button here –

    But fell free to make your own message or use the default one 😉

  8. Well done! You should test it. Visit the page in Internet Explorer and make sure everything is working like a dream.


See the different view between Internet Explorer and Firefox

  • Firefox View
    Firefox View
  • Internet Explorer View
    Internet Explorer View

😀 Gud lak

WordPress on Debian Linux

in Blogging/Debian/Linux/Tutorial/Wordpress by

This tutorial is how to install WordPress on Debian Linux. Installing WordPress on Debian? What for? Are there many easy ways to install WordPress on our server (Web hosting)? Eventually, We don’t need to know what distro that our server use or what operating system is. You right.

I have a “special” condition here. I need to install WordPress on my own Debian server for testing purpose. If You like me, play around with WordPress as a developer (perhaps you create your own theme or plugin), you should have your own server in your local PC on LAN.

You can use your own server to test your own WordPress theme or plugin before you release it. You can upload and test your theme or plugin directly on your remote server of course, but if you have a little problem with Internet connection (just like me), it is so hard way 😀

These are my little steps to built my WordPress theme or plugin:

  1. Built on my local PC
  2. Upload to my local server
  3. Testing my work and make sure works propertly
  4. Upload to my remote server
  5. Testing again in the “real” condition
  6. Make sure I have no problem with my work
  7. Sharing my work

Let’s start to install WorPress on Debian

Installing http server on Debian

You can see my tutorial how to install http server on Debian, Installing HTTP Server on Debian.

Installing MySQL Database

You can see my tutorial how to install MySQL Database Server on Debian.

Download WordPress

You can download WordPress from their official website.

Upload your WordPress archieve into your debian server

You can use any ftp tools to upload your WordPress archieve into your server.

Extract your WordPress archieve into your server directory

tar zxvf wordpress-x.x.x.tar.gz --directory=/var/www/

Using MySQL

Create a database for WordPress on your web server, as well as a MySQL user who has all privileges for accessing and modifying it.

mysql -u ''adminusername'' -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 6 to server
version: 4.0.24_Debian-10sarge1-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> CREATE DATABASE ''wordpress'';
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'wordpress'@'localhost' 
      -> IDENTIFIED BY 'wordpresspassword' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.01 sec)

mysql> EXIT

In the above:

  • adminusername will typically be root, unless you have another high-privileged account set up.
  • wordpress or blog are good values for databasename.
  • wordpress is a good value for wordpressusername.
  • hostname will usually be localhost. If you don’t know what this value should be, check with your system administrator. If you are the system administrator, figure out what this value should be.
  • password should be a difficult-to-guess password, ideally containing a combination of upper- and lower-case letters, numbers, and symbols.

Write down the values you used for databasename, wordpressusername, hostname, and password.

Configure your WordPress setting

Rename the wp-config-sample.php file to wp-config.php. Open and edit wp-config.php file

// ** MySQL settings ** //
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'wordpresspassword');
define('DB_HOST', 'localhost');

Run the Install Script

Using your favorite web browser, visit wp-admin/install.php within the directory into which you just installed WordPress on your web site. For example: point your browser to http://yourserver/wordpress/wp-admin/install.php.

Preview your WordPress

Point your browser to http://yourserver/wordpress.

Well done! You have your own WordPress on Your Debian Server.

😀 Gud lak

How to upgrade Standard WordPress to Fantastico WordPress

in Tutorial/Wordpress by

A couple days ago I just upgrading my WordPress from 2.0.2 to 2.0.3. I have a different situation about this upgrading proccess. I installed my WordPress 2.0.2 without Fantastico, but with standard installation instruction from WordPress. Now I’ll upgrading my WordPress using fantastico. I so glad I get successful with this. So I want to share it.

Actually, this process is like reinstall my wordpress. First, I have to uninstall my current wordpress, then install new wordpress.

Uninstall WordPress 2.0.2

Here are steps to uninstall wordpress 2.0.2 “manually”:
Backup Database Tables
Use phpMyAdmin or other appropriate tools provided by your webhost, to backup the database used by WordPress. You can use WordPress Database Backup plugin from skippy to backup your database. Thank’s for the plugin, I used it for my upgrading process 😀
Backup all your files
Basically, backup the files that you have changed or added since you installed the standard WordPress. Use an FTP tool to download a copy of all the files on the server, in the directory where you installed WordPress, including the .htaccess files and wp-content directory if you have been playing with it.
Deactivate all Plugins
Deactivate all the Plugins you use at the Plugin Management Page. Some Plugins might not work with new WordPress version, and that is why you want to deactivate them all. This will ensure that you don’t end up with an upgraded-but-broken installation of WordPress after the upgrade process.
Create Upgrading Message
While upgrading your WordPress, perhaps your blog will look broken or error, so create upgrading message in your index.php locate in your main directory of your wordpress installation. Edit your index.php to be like this:

/* Short and sweet */
/* comment it
define('ws6q9jzl7p_USE_THEMES', true);
<h1>My Blog Under Upgrading Process</h1>

Feel free to make your own message 😉
Delete old files
As with all WordPress upgrades, the contents of your /wp-content/ folder should remain intact and unchanged. But, If you want to install new wordpress using fantastico, you have to delete wp-content folder. Basically, you have to delete all files and folders because fantastico can not overwrite the existing files and folders. I got this error message when I didn’t delete all files and folders 🙂

The installation can not be completed:

- You chose to install in the main directory of
the domain, but there are conflicting
filenames, therefore we can not proceed.
Following filenames already exist in the main directory 
of the domain (path="/public_html/").
You must manually remove these files before 
proceeding with auto-installation:

Click on the browser's Back button to fix reported errors.

So make sure you had backup your files and folders 😉

Installing WordPress 2.0.3 using Fantastico

  • Open your Hosting Control Panel
  • Go to your Fantastico Home
  • Click WordPress Under Blog directory
  • Click New Installation
  • Fill all information about your blog, then press Install WordPress button
  • Well done! You have a new wordpress! Please check your blog!

Your blog should back to default blog, with default template. So where are all of your post and plugin? By default, fantastico will create new files, folders, and database for instalation process. You need to restore your blog before.

Restoring WordPress

Overwrite files
Overwrite your wp-config.php with your backup one. In this file, you should use your database information that you used before. You should overwrite .htaccess file too. Juat to make sure you get your old configuration.
Upload your themes and plugins
Upload all of your themes and plugins to your wp-contents folder.
Reactivate Plugins one by one
Awaken the monsters, one by one, at the Plugin Management Page. 😀 Check if everything works as expected. If some Plugins do not work, deactivate the plugin, then contact the plugin author to encourage the author to upgrade the plugin.
Well done! Enjoy your new WordPress version.

Note: You will probably be better to install wordpress manually rather than fantastico. Also you do not need the latest version everytime if the features in the new version are not something you will use. Thank’s to sadcox66 ( for your suggestion 😉

😀 Gud lak…

Upgrading WordPress

in Wordpress by

I?ll be upgrading this blog to the latest WordPress release. Currently I use WordPress release version 2.0.2. The latest WordPress Release is 2.0.4.

I’ll use fantastico to upgrading my WordPress, eventhough the latest WordPress Release version on Fantastico is 2.0.3. Actually I’m not really sure to get success with this upgrading process. Why?

I installed my WordPress 2.0.2 without Fantastico, but with standard installation instruction from Installing WordPress. Now I’ll upgrading my WordPress using fantastico. I don’t know to do this, but just try and hope I’ll get success with this upgrading proccess 🙂

Perhaps my blog will unavailable for a moment. But I hope it will available as soon as possible. Wish me luck!

Free Content For Your Blog

in Adsense/Article/Google/Wordpress by

Looking for free content for your blog or website?

On the Internet content is king and always will be. This is because the Internet is the information superhighway and most people use it for information of some sort. Having a good content is a must to revenue your blog or website, as specially if you want to earn money from your blog or website using Google Adsense.

You can try use Project Gutenberg. Project Gutenberg offers a huge amount of public domain content.

Copyright for these books has expired in the United States. (They may still be copyrighted in other countries!) So anybody may make verbatim or non-verbatim copies of those works.

Also, You can try FirstGov. FirstGov is a lists a lot of material produced by the US government.

Might prove to be useful resources for some Adsense/YPN publishers. Good luck 😀

Hot Dates Plugin for WordPress

in Project/Wordpress by

Hot dates is a format the date of your posts into something that looks like a single page per day calendar. This plugin is inspirated by:

  • Hot Dates with CSS
  • CSS Date Blocks for Blogs

This plugin makes it simple to add a format the date of your posts into something that looks like a single page per day calendar. You can see at this page, as live demo 🙂


  • Download the plugin and unzip it to your PC
  • Upload the folder “hotDates” and all of its contents into your wp-content/plugins/ directory.
  • Activate the plugin in your WordPress site Admin.
  • Your done! Enjoy


To show your Hot Dates, you can call a PHP plugin function. The syntax is as follows:

<?php hotDates(); ?>

However, it?s strongly recommended that you always confirm that the function is available to keep from generating PHP errors or breaking your page display, using the following syntax:

<?php if (function_exists('hotDates')) { hotDates(); }?>

I recommend place that syntax near your title post (left), both in single.php and index.php.


Change Log

  • 07/15/2006: Initial public release.


FREE! You can tell me where you place this plugin. It will be very much appreciated. Thanks a bunch and good luck 😀

StatCounter for WordPress Admin

in Project/Wordpress by

I developed this plugin based extensively on the works of Serge K. Keller for his plugin “StatCounter for WordPress”.

StatCounter for WordPress Admin is a plugin that will add StatCounter?s invisible counter code to the footer of each page of your WP Admin page. You will not need to edit any theme file, just configure the plugin from the “Options” page of your WP Admin area.

This plugin can use to give you some information when you get intruder attacks. I got idea from Thanks for this idea 🙂


  • Download the plugin and unzip it to your PC.
  • Upload the file statcounterAdmin.php into your wp-content/plugins/ directory.
  • Activate the plugin in your WordPress site Admin.
  • Configure it from the options page. You have to copy your StatCounter code here.
  • Your done! Enjoy.


First You have to get your StatCounter code.

  1. Login to StatCounter page.
  2. Click link “Add New Project”.
  3. Fill out the details, as per the instructions. You have to fill your “Website URL” with “http://yoursite/wp-admin/”, without quote.
  4. Fill out next detail, and you will get your StatCounter code.
  5. Done!


Change Log

  • 07/14/2006: Initial public release

Any suggestions, feedback, ideas, complaints, are welcome. Good luck…

Adsense Clicks Tracker

in Adsense/Plugin/Project/Wordpress by

There have been 3rd party javascripts that track adsense clicks out.

I just found some articles about it.

These following articles are about using Google Analytics to track adsense clicks.

  • Tracking Adsense Clicks with Google
  • Track Google AdSense Clicks via Google Analytics – Free AdSense Tracker
  • Forums Digital Point

Google Analytics basics

This tracking is done through “Goals”. A goal is a way of tracking when a website visitor does something you want – Buy an item, submit a contact form, or in our case click an adsense ad.

Tracking script simulates virtual directory hierarchy to Google Analytics so you can use it’s reporting capabilities effectively. This hierarchy always starts with /asclick directory, is then followed by Ad group type or custom type(channel) name and the final thierd level of this hierarchy is AsSense Ad URL address or AdLinks Keyword (only available on IE). So simple AdSense click hit would be /asclick/NavigBanner/ for NavigBanner Ad type and DirectRelief Ad.

How does it work?

Small javascript file is added to your web page and that’s it. This script listens for ad clicks and reports them to Google Analytics (analytics code has to be already installed in the web pages). Google Analytics interface is than used to interpret tracking results.

Compliance with Google AdSense TOS

The question ? as always with all things AdSense ? is, does it play nice with Google?s TOS?

This tracking script uses passive click monitoring and in no way alters code generated by Google AdSense. It does not interfere with Ad clicks directly, but simply listens for browser mouse and keyboard events and reports through Google Analytics tracking engine. I have reviewed AdSense TOS and did not find any issue what so ever. But if you want to be sure, go ask Google AdSense support for permittion first. Just don’t expect simple Yes/No answer from them

Tracking Accurancy

The passive listening method used by this tracking script does not allow for 100% accurate click reporting. When compared to AdSense, my results are usually about 10-15% lower in Google Analytics goals. The limitations i know about are already mentioned in some of previous paragraphs. I would be really interested in how this script performs for you (especialy for higher traffic volumes).

Google Analytics integration

Integration with Google Analytics is achieved by manually calling urchingTracker when user clicks on AdSense Ad. Tracking script simulates virtual directory hierarchy to Google Analytics so you can use it’s reporting capabilities effectively. This hierarchy always starts with /asclick directory (unless you modified this value), is followed by Ad group type or custom type(channel) name. The final thierd level of this hierarchy is AsSense ad URL address or AdLinks Keyword (note that this is not available for clicks from Firefox browser).

The example tracked URL will look like:
or /asclick/NavigBanner/ (if you use custom adgroup names).

Setup procedure

If you use this method, the setup procedure constists of two parts. First you have to setup your web page to track AdSense clicks and report them to Google Analytics. Second part is about tweaking Google Analytics settings a bit to ease interpreting click retults.

And please be prepared to wait at least 24 hours before some AdSense tracking hits appear in your Google Analytics interface.

Web Page

  1. Download file containing all required files.
  2. Unzip and upload tracking javascript astracker.js somewhere to the web ideally directly to your web server.
  3. Add reference to this javascript to your web page directly below Google Analytics code (see the following example).
          <script src=""
          <script type="text/javascript">
              _uacct = "UA-xxxxxx-y";
          </script src="/javascript/astracker.js"
  4. Optionally tweak the page to support custom channel reporting – see Advanced Settings for further info.

Google Analytics
Create a goal: To create a goal you assign it a URL. This url doesn’t have to exist, as the javascript will trigger it.
In the Goal URL field, enter “/asclick” and “Adsense Clicks” for the goal name.

Image Hosted by

I’m sorry if you see a lot of blockquote, because I rewrite it from references above. So… what is the point? Just copy & paste? :-/

Ok, I got idea from articles above. We have to add the code manually to our web pages. So far I didn’y find WordPress Plugin about it.

Create WordPress plugin to tracking adsense click with Google Analytics

Basic Idea

  • Add Tracker script “automatically” to WordPress. Actually I didn’t change anything inside this script, just rename it adtracker.js to adsenseClicksTracker.js. We can create WP plugin to do this.
  • There is Google Analytics Plugin for WordPress exist. This plugin makes it simple to add Google Analytics to our WordPress.

Make integration between adtracker.js and Google Analytics Plugin

So I create WordPress plugin named “Adsense Clicks Tracker”. This plugin makes it simple to tracking Google Adsense Clicks with Google Analytics. This plugin add adsenseClicksTracker.js to WordPress.


  1. Download the plugin and unzip it to your PC
  2. Upload the folder “adsenseClicksTracker” and all of its contents into your wp-content/plugins/ directory.
  3. Activate the plugin in your WordPress site Admin
  4. Enter your Google Analytics User Account string (it?ll be something like UA-12345-6. It appears when you “Add a channel”)
  5. You can use any kind of Google Analytics plugin or insert it manually 😉
  6. Your done! Enjoy


You still have to create a goal at your Google Analytics.

Testing it

DON’T! There is no way to test that this works as it tracks adsense clicks, and you can’t click your own adsense. Just wait for a while and view your Google Analytic report.


This plugin still pending because I’m waiting for permission from Rich Boakes,, and ask Google Adsense about it. Just for make sure 🙂


  • Permission from Rich Boakes
  • Permission from

    supriyadisw: Hi, the script is absolutely free so you can use it, change it, update it and of course distribute it with your wordpress plugin.

    Just post here link to your plugin, so everyone is able to find it easily 🙂

  • Permission from Google Team

    Wed, 12 Jul 2006 14:08:20 -0700
    With regards to the click tracking software you’ve mentioned, we do not
    endorse or encourage the use of any particular click tracking tools. We
    recommend that you exercise caution when using third-party software to
    ensure that you do not violate the AdSense Terms and Conditions nor
    inadvertently disclose sensitive information about yourself or your
    through the use of such software.

    In addition, it is solely your responsibility to verify that any tools
    software used in conjunction with AdSense do not violate the AdSense
    and Conditions and program policies.

    Thank you for your cooperation.

  • While I’m waiting for some permissions, I install it to my blog 😉

Change Log

  • 07/14/2006: Initial public release without integration with any kind of Google Analytics plugin.

For tracking adsense with Google Analytics, you can visit references above.

Have a nice day…

The web host companies offer multiple hosting packages in the different prices to facilitate the average kind of clients. The search engine marketing strategies are very useful for the enhancement of the revenue of any entrepreneurs who invest a large amount of money to run business. The domain names are selected by the webmasters according to the nature of their business. The most important hosting features of aplus hosting have a great attraction for the potential customers.

Go to Top