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.

Text Link Ads

Comments:

  1. Erica says:

    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 says:

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

  3. Viper007Bond says:

    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 says:

    Er, “&lt?php”.

  5. Viper007Bond says:

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

  6. Ajay says:

    Guess it is getting filtered out Viper.

    <?php



Trackbacks & Pingbacks:

  1. Pingback from The Alexa Traffic Rank Button Generator Plugin for WordPress » Ajay - On the Road called Life!

    [...] Read more and download the plugin »     [...]

  2. Pingback from Weblog Tools Collection » WP-Plugin: The Alexa Traffic Rank Button Generator

    [...] The Alexa Traffic Rank Button Generator will let you easily display your Alexa traffic button or graph Bookmark:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  3. Pingback from Alexa Traffic Rank Button Generator for Wordpress

    [...] Download The Alexa Traffic Rank Button Generator Plugin. [...]

  4. Pingback from Donation #15 » Ajay - On the Road called Life!

    [...] Thank you Thilak for your donation of $3 towards the Alexa Button Generator Plugin. [...]

  5. Pingback from Computer Sunday; Study Monday » Ajay - On the Road called Life!

    [...] I ended up writing another article and releasing another plugin. [...]

  6. Pingback from Yet more Wordpress Plugins » My Bloody Great Nutshell

    [...] The Alexa Traffic Rank Button Generator Authors Description: Add an Alexa Traffic Rank Button or Graph to your blog My overview: Great idea - useless unless you’re in the top 100,000 most viewed sites on the Internet [...]

  7. Pingback from The WordPress Podcast · Episode 8: Dealing with splogs, posting by e-mail and more

    [...] Alexa Traffic Rank Button Generator [...]

  8. Pingback from Yet more Wordpress Plugins » My Bloody Great Nutshell

    [...] The Alexa Traffic Rank Button Generator Authors Description: Add an Alexa Traffic Rank Button or Graph to your blog My overview: Great idea - useless unless you’re in the top 100,000 most viewed sites on the Internet. Thanks to Ajay for contacting me on this. It’s no use for graphs unless you’re in the top 100,000; however there are other features worth utilising which I’ve now looked at. You can generate buttons and banners for your site which display your Alexa ranks. [...]