Skip to content

The Alexa Traffic Rank Button Generator Plugin for WordPress

Overview:

This plugin will let you easily display your Alexa traffic button or graph. Alexa

Features:

  • Generate perfectly valid XHTML code
  • Plugin comes with a Code Wizard to generate the code you need to add to your website
  • Can be used to generate graphs for any website, not just your blog
  • Monetize your blog by adding your Amazon ID!

Requirements:

Installing

  1. Download The Alexa Traffic Rank Button Generator Plugin.
  2. Extract the contents of ald-alexa-button.zip to wp-content/plugins/ folder. You should get a folder called ald-alexa-button.
  3. Activate the Plugin in WP-Admin.
  4. Goto Options > Alexa Button. If you are upgrading from an earlier version, it is recommended that you click Default Options so as to clean up any old options.
  5. Use the Generator on that page to generate the code to add to your template file. Alternatively add <?php if (function_exists('echo_alexabutton')) echo_alexabutton(); ?> to use default options. Default is a Small Traffic Graph of three months.

The Function:

echo_alexabutton()

The following options can be set through Options > Alexa Button:

  • Website URL: Enter the web address whose traffic rank you want to display. If a blank string is passed to the function, then this value is used. By default your blog address is taken.
  • Your Amazon ID: If you have an Amazon ID, you can enter this here. The ID will be embedded in the code.

The function takes the following parameters:

  • $wpURL: The URL whose traffic graph / button you want to display. If blank, Website URL from the Options page is used.
  • $AmazonID: The Amazon ID you want to pass. If blank the Amazon ID from the Options page is used.
  • $UnitType: Enter t for traffic button, s for stat and g for graph.
  • $subUnitType: a, b, c for the different types. Go play around see which you want best.
  • $dateRange: Used only for the traffic graph. To be entered as e.g. 3m, 30d, 1y for 3 months, 30 days and 1 year respectively.

Customizing:

Add <?php if (function_exists('echo_alexabutton')) echo_alexabutton(); ?> where you want to display the chat widget.

Note: Using if (function_exists('echo_alexabutton')) in the above code ensures that your blog won’t break even if you deactivate the plugin.

I have also made available the function ald_alexabutton() which has a return value instead of a echo. You can use it as follows:

$str = ald_alexabutton();
echo $str;

Lastly, you can reset to default options by clicking on Default Options. I recommend you do this once during upgrade if you are upgrading from any older version as it will clean up old variables which the plugin used.

ChangeLog:

  • 1.0 – Release

To Do:

  • WordPress Widget Support
  • Save different sets of code for ready use

Downloads

Current Version is 1.0

I’ve spent a good deal of time and money developing and maintaining the plugin. If you like the plugin and find it useful and would like to donate something for my work please do click the Paypal Donate button below. The payment is secure. I haven’t filled in any amount. Feel free to donate what you please. Any amount is welcome. Thank you :)

License

All files and their contents are licensed under the GNU General Public License (GPL).

Questions or Bugs

Known Bug

WordPress 1.5 (Strayhorn) has a bug which prevents multiple plugins from creating administration interfaces at the same time. If you have another plugin which creates an administration panel under Options, temporarily disable it, configure meebo me Plugin, then re-enable the other plugin. Once configured, meebo me Plugin will operate normally.

If you have any questions or would like to report any bugs then please use the support forum.

Leave a comment

  1. Erica / Oct 9 2006

    Excellent work! I used to have a link to Alexa, but now I can display the info on my site thanks to you. Love it!

    I have it at http://www.aleeya.net/about/stats/

  2. Ajay / Oct 9 2006

    Thanks Erica.
    Glad to know it is helpful to you :)

  3. Viper007Bond / Oct 11 2006

    Erica: You might want to fix your custom Page template. You have a space in the <php which is making it show up in the HTML. ;)

  4. Viper007Bond / Oct 11 2006

    Er, “&lt?php”.

  5. Viper007Bond / Oct 11 2006

    Oh I give up. *sigh* I suck at the Internet.

  6. Ajay / Oct 11 2006

    Guess it is getting filtered out Viper.

    <?php

Trackbacks and Pingbacks

  1. The Alexa Traffic Rank Button Generator Plugin for WordPress » Ajay - On the Road called Life!
  2. Weblog Tools Collection » WP-Plugin: The Alexa Traffic Rank Button Generator
  3. Alexa Traffic Rank Button Generator for Wordpress
  4. Donation #15 » Ajay - On the Road called Life!
  5. Computer Sunday; Study Monday » Ajay - On the Road called Life!
  6. Yet more Wordpress Plugins » My Bloody Great Nutshell
  7. The WordPress Podcast · Episode 8: Dealing with splogs, posting by e-mail and more
  8. Yet more Wordpress Plugins » My Bloody Great Nutshell

Comments are closed.