My First WordPress Plugin: GAF Text Link

Updates:

  1. The plugin has been listed on the GetAFreeLancer.com Affiliates page with a link back to this page. https://www.getafreelancer.com/affiliates/ . They also left a gift for me… :) Thanks to the GAF authority! :D
  2. Version 1.1 has been completed and been submitted to WordPress plugin directory. This version lets you configure your GetAFreeLancer username via an admin panel.
  3. This post has been made the plugin home page. I love WordPress ! :D

Original Post:


I have been looking forward to writing a plugin for wordpress for a long time and finally got the chance today. WordPress is a super cool publishing platform and the “de-facto” blogging solution in today’s internet. The extendibility of WP makes it even more acceptable to users like me who has the necessary skills to extend it the way I want :)

I have never worked with the WordPress Codex before. I am a freelance programmer and do some projects at different free lancing sites like ScriptLace and GAF. I have seen the GAF API before but never felt much interested until recently GAF Affiliates program started making money for me :D Now that I am banned in Google Adsense, the alternative advertising solutions are not that good and over all I write programming related posts on my blog, it would be a good idea to start the affiliate marketing on my blog, I thought! :)

I published scriptlance rss feeds in my blog sidebar before but that didn’t help much. So, I started looking for a better way to integrate my affiliate links into my blog posts. The best way around was to insert the affiliate links directly into my blog either by editing the template or by writing a dedicated plugin for the purpose. I already had some desires to write WP plugins so I moved that way. I spent about an hour on the WordPress Codex pages searching for informations. It was easier than I thought.

It took around 30 minutes to bundle everything and finalize the plugin. I quickly set it up and tested on my site. It’s working! :D

Download: (v1.1) http://masnun.googlecode.com/files/masnun-gaf.zip

Download the php file and copy it to your /wp-content/plugins/ directory. Now login to your WP Admin panel (Dashboard) and from the “Plugins” section, activate “GAF Text Link”. Now visit your blog! You’re done if everything went right :D

Feel free to play with it! :D

This entry was posted in Blog Post and tagged , . Bookmark the permalink.

24 Responses to My First WordPress Plugin: GAF Text Link

  1. frankzhu says:

    good tool for freelancer, hha

  2. rana says:

    nice plugin, great job. keep it up..

  3. Great plugin for wordpress. Need not to say am using it on my blog…thanks

  4. SEO Blog says:

    Hey pretty cool plugin is there a way I can restrict it to only posts, don’t want the plugin on the pages.

    Any idea?

  5. Thanks for this plugin, I will have to use it as I recently join Getafreelancer.
    This will definitely come in very handy.

  6. I am getting this error “Fatal error: Call to undefined function: json_decode() in /home/adyesha/public_html/wp-content/plugins/masnun-gaf/masnun-gaf.php on line 58″

    Any solution?

    WP version: 2.8.5

  7. chandan says:

    the fatal error still coming for me :( any updates ?

  8. maSnun says:

    If you are using an older version of php, please upgrade to php5 :)

  9. Jg Goswami says:

    Thanks for this plugin, I will have to use it as I recently join Getafreelancer.
    This will definitely come in very handy.

  10. AKASH says:

    sir iam waiting for work dont give the links to confuse me

  11. Good plugin, will make other find an easy way to configure their affiliate program :D

  12. Tareq says:

    I was looking for a widget, but didn’t found anywhere. So I made one just now :D . You will find it here

  13. how to use this plugin for online wordpress.com
    it would be great if u helped me….

  14. masnun says:

    WordPress.com doesn’t support installing third party plugins as far as I know :)

  15. obaydul123 says:

    Very Very good tool for freelancer dot com . I like it very much.
    obaydul123

  16. Pingback: Wordpress Plugin: GAF affiliate widget « Tareq’s Planet

  17. Kurtz says:

    nice job, nice plugin … thanks

  18. MomDirect says:

    This question was asked but never answered…. is there a way to configure it to appear just is the posts and NOT at the bottom of the pages?

  19. masnun says:

    I don’t know what you meant. It appears under the posts, not the pages.

  20. sanda says:

    ou may use these HTML tags and attributes:

    
    

  21. uyahaha says:

    nice job, nice plugin …

  22. Is there a demo of this plugin?

  23. masnun says:

    It used to be here on this blog. I removed that a few months before.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">