[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‘.


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.

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!.

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 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:
- The ability to create a separate group so that you can further set each group belong to what condition
- The ability to set per link age
- The ability to store per link notes
- Introducing template function:
cr_paid_link_manager_show_links()
- Version 0.2 – January 17, 2011:
- 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:
- Introduce ability set certain link to never expired (set date2 to 0000-00-00)
- Introduce ability to send expiring email daily
Download
Follow link below, to download from wordpress’s official plugin repositories.
