AmazoLinkenator Settings'; array_unshift($links, $settings_link); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$plugin", 'AmazoLinkenator_settings_link' ); // build the class for all of this class AmazoLinkenator_Settings_Page { // Holds the values to be used in the fields callbacks private $options; // start your engines! public function __construct() { add_action( 'admin_menu', array( $this, 'AmazoLinkenator_add_plugin_page' ) ); add_action( 'admin_init', array( $this, 'AmazoLinkenator_page_init' ) ); } // add options page public function AmazoLinkenator_add_plugin_page() { // This page will be under "Settings" add_options_page( 'AmazoLinkenator Settings Admin', 'AmazoLinkenator Settings', 'manage_options', 'AmazoLinkenator_settings', array( $this, 'AmazoLinkenator_create_admin_page' ) ); } // options page callback public function AmazoLinkenator_create_admin_page() { // Set class property $this->options = get_option( 'AZLNK_options' ); ?>
Save your settings once after upgrading to the latest version.
'; } // api key callback public function AZLNK_affiliate_key_callback() { printf( '| Enter Your Amazon Affiliate Key. Make sure it is correct; it is not validated. |
| options[AZLNK_enable_affiliator_posts] , false ) . " /> | Check if you want to Affiliate the Amazon URLs in page/post content. URLs are affiliated only on content save/update. |
| options[AZLNK_enable_comments] , false ) . " /> | Check if you want to Affiliate the Amazon URLs in post comments. URLs in comments are only affiliated when the comment is saved or updated. |
| options[AZLNK_auto_shorten] , false ) . " /> | Check if you want to automatically shorten the URL (great for 'hiding' your Affiliate codes). URLs are only shortened when a post/page/comment is saved or updated. Requires you to set up an Bit.ly Application here https://bitly.com/a/create_oauth_app , and then get a 'Generic Access Token' here https://bitly.com/a/oauth_apps. Enter your Bit.ly Generic Access Token below. You can check any shortened URLs here for a valid affiliate code. |
| Enter Your Bit.ly Generic Access Token. Invalid token codes will not shorten the URL. See above for info on getting your token. Check your code with the Validate button below (after saving changes). |
| options[AZLNK_donate_flag] , false ) . " /> | Check if you allow us to use our Affiliate tag every 100 links - this helps support our plugin efforts. |
| Count of how many times you let us use our Affiliate code - thanks for your support! |
| Count of your affiliate links added. |
from CellarWeb.com
AmazoLinkenator will automatically (without any effort on your part) use your Amazon Affiliate code in any Amazon URLs. This will happen for pages, posts, and comments (depending on your settings below). Because you don't have to do anything special to affiliate a URL, this plugin is great for sites with lots of authors - especially those that might try to sneak in their Affiliate codes (which can deprive you of your Affiliate revenue).
And no special steps are needed for any Amazon link. Just paste the Amazon product link in the page/post, and Publish. Your Amazon Affiliate link will automatically be added to the product URL.
And AmazoLinkenator also works with any Amazon product links that your site commenters might add. If anyone includes a link in their comment that has their Amazon Affiliate code, it will be replaced with your affiliate code. All automatically! (It's your site, so you should get the Affiliate revenue!)
URLs are affiliated only when posts/pages/comments are saved/updated/submitted. Any prior content will have your affiliate code if it is re-saved. A counter on the Settings screen shows the number of times that your Affiliate code is inserted in Amazon URLs.
All you need is a valid Amazon Affiliate Key; start here. There is no check for a valid Amazon Affiliate key.
Plus, there's an option to automatically shorten the affiliate URL. This is great for 'hiding' your Amazon Affilliate link code. You just need a free Bit.ly Generic Access Token (start here). Use the Validate button below to for a valid Bit.ly API Key.
Interested in a plugin that will stop comment spam? Without using captchas, hidden fields, or other things that just don't work (or are irritating)? Check out our nifty FormSpammerTrap for Comments! It just works!
URL before Smashing:
URL after Smashing :
Huzzah! Valid Bitly API Key found! (Hopefully, it's yours!)"; } else {echo "