Freelancer's Playground! New knowledges every now and then

[CR]Paid Link Manager

Introduction

Do you sell your blog-roll and having problem in keeping an updated information as to when this particular link is expired? You will no longer be in trouble with this plugin. Introducing: [CR]Paid Link Manager. A plugin that will help you manage your paid link's life cycle.

The main features is:

  • The ability to create a separate group so that you can further set each group belong to what condition. I'll explain this later.
  • The ability to set per link age. So that it will automatically hide link that's expired.
  • The ability to store per link notes. It is useful for storing link detail, like client info (email subject reference maybe), so that you can remind him that their link is expiring.
  • Add support for infinite age link
  • Automatic email reminder for expiring links

With planned (not so distant) future upgrade:

  • Plugin API, so that other plugin or theme developer can use it seamlessly with too much hack
  • Add javascript for link age input. I know you will love this
  • Add ability to specify different separator for 'coma' mode

How To Use

Adding Link Group

After downloading and enabling the plugin (download link available below), you need to create URL Group. One already created for you, which is called 'frontpage'.

Image Hosted by ImageShack.us
Image Hosted by ImageShack.us

You can add, edit, and delete any URL Group here.

One note on deleting link group: Make sure there are no other link active on that group. Because, my plugin will remove that too!

Adding Link List

After you have link group, now you need to add a link to that group.

Image Hosted by ImageShack.us

There's one catch when adding link. You must adhere to my plugin requirement. For date, you MUST use 'YYYY-MM-DD' format. That is, if you want to input 03 October 2010, you need to write it this way: 2010-10-03. Also, if you want to set certain link to never expired, set second date as '0000-00-00'.

Adding Links To Your Theme

Using Widget

To add plugin widget, all you have to do is, go to "Appearance » Widgets" and add [CR]PL Manager widget to your widget area. If you don't have any, that will be addressed later. So, hang on!.

Image Hosted by ImageShack.us

Please note that there's Widget logic that maybe not available on your installation. It's from another plugin called *well, obviously* Widget Logic. This plugin can help you set particular widget to show on condition you defined to it.

Using Code Directly

If you don't have any widget area or you just want to code directly, you can use cr_paid_link_manager_show_links() function. It take parameters:

  • $group_id: links will be extracted from this group id
  • $mode: accepted value is 'list' and 'coma'
  • $separator: only work on $mode = 'coma'. Is used to separate each link

Here's how you do it:

<?php

//show group_id 1 with mode 'list':
cr_paid_link_manager_show_links(1);
//show group_id 1 with mode 'list':
cr_paid_link_manager_show_links(1, 'list');
//show group_id 1 with mode 'coma' and separator ', ':
cr_paid_link_manager_show_links(1, 'coma');
//show group_id 1 with mode 'coma' and separator ' | ':
cr_paid_link_manager_show_links(1, 'coma', ' | ');

?>
Image Hosted by ImageShack.us

Image above show the different between each $mode.

Additional note

As already stated above, my plugin work best with Widget Logic that I've been blogged. With this plugin, you can set certain widget to only show on certain condition, like: only on homepage, only on single page, etc, etc, etc.

Version Changelog

  • Version 0.1 - October 25, 2010:
    1. The ability to create a separate group so that you can further set each group belong to what condition
    2. The ability to set per link age
    3. The ability to store per link notes
    4. Introducing template function: cr_paid_link_manager_show_links()
  • Version 0.2 - January 17, 2011:
    1. BUGFIX: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'cr_post_2_pingfm_init' was given in PATH/wp-includes/plugin.php on line 395
  • Version 0.3 - February 6, 2011:
    1. Introduce ability set certain link to never expired (set date2 to 0000-00-00)
    2. Introduce ability to send expiring email daily

Download

Follow link below, to download from wordpress's official plugin repositories.


  • Pingback: Dua Plugin Baru [CR]PostWarning dan [CR]PaidLinkManager « Freelancer's Playground!

  • http://www.logichub.net/blog Kashif

    Hi,

    I was searching such plugin since last few days and found only your plugin. Thanks for writing it. :)

    I downloaded and installed this plugin today from wordpress repository. But I am getting this error:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘cr_post_2_pingfm_init’ was given in PATH/wp-includes/plugin.php on line 395

    You can check it live on my site http://r-ev.com.

    Waiting for any working solution to remove this error.

    Regards,

    Kashif

    • http://bayu.freelancer.web.id/ ariefbayu

      Thanks for feedback!

      I’ve fixed the problem and pushed new version. Could be take times for it to be appeared on your wordpress admin panel. You my try to upgrade manual by downloading it from wordpress and upload it manually.

      Waiting your response.

      • http://www.logichub.net/blog Kashif

        Hi,

        Thanks for taking quick action. I have checked wordpress repository at
        http://wordpress.org/extend/plugins/crpaid-link-manager/

        But found this:
        Last Updated: 2010-10-27

        I dont think its not updated there too. I have also checked plugin available on your site but its still throwing very same error.

        Regards,

        Kashif

        • http://bayu.freelancer.web.id/ ariefbayu

          Are you sure?

          I’ve looked at it again and it does updated. There is version 0.2 right now at repository you linked above. I download it and check and it does have the updated version.

          • http://www.logichub.net/blog Kashif

            My bad!

            I just checked “Last Updated: 2010-10-27″ and posted previous comment.

            After update, its working perfectly fine. Thanks again for such a nice plugin and quick update/response.

            By the way, when are you planning to extend it as you listed in your To Do tasks? I am very interested in 2 of the planned features i.e.

            - Automatic email reminder for expiring links
            - Add support for infinite age link

          • http://bayu.freelancer.web.id/ ariefbayu

            Somewhere around Feb 2011, I guess.

            I’ve been very busy lately

          • http://www.logichub.net/blog Kashif

            Thats great. February is not too far. I will wait to get it whenever it will be updated.

          • http://logichub.net/blog Kashif

            Any chance to get more updated version?

          • http://bayu.freelancer.web.id/ ariefbayu

            I already publish that[1]. Don’t you have it on your dashboard?

            [1]- Automatic email reminder for expiring links
            - Add support for infinite age link

  • http://www.icebergtees.com William

    I have downloaded Version 0.4 and am using wp 3.1 after activation it does not do anything when the add new link group button is pressed. The add new link works. Also it would be nice to display group numbers as thats how its called in the php. Thanks.

    • http://bayu.freelancer.web.id/ ariefbayu

      I’ll check it this weekend.

      • Martina

        I’ve this problem, too, with the most recent version 0.5, also, deleting a link is not possible – it reloads and that’s it.

  • Martina

    How many days before am I informed of a soon expiring link?

    • http://bayu.freelancer.web.id/ ariefbayu

      7 days before expiring

  • Zullintech

    hi love your plugin. it does exactly what i wanted.

    can i make a request to have the option of opening the links to new tab, window, etc.?