adcrun.ch, this plugin can convert your links to adcrun.ch, no need to do it manually. Version: 1.0 Author: adcrun.ch Author URI: http://adcrun.ch License: GPL2 */ /* adcrun.ch WordPress Plugin Options: - Enable adcrun.ch - Convert outgoing links only/all links to adcrun.ch - Ad type: Intestitial or banner */ add_action('wp_footer', 'wp_adcrunch_get_script'); //get options function wp_adcrunch_get_options(){ $explode = explode('/',get_option('home')); $options = array( 'wp_adcrunch_id' => get_option('wp_adcrunch_id'), 'wp_adcrunch_type' => get_option('wp_adcrunch_type'), 'wp_adcrunch_domains' => get_option('wp_adcrunch_domains'), 'wp_adcrunch_convert' => (get_option('wp_adcrunch_convert') == 'outgoing') ? $explode[2]:'' ); return $options; } function wp_adcrunch_get_script(){ if(!get_option('wp_adcrunch_enable')){ return false; } //get plugin options $options = wp_adcrunch_get_options(); if (get_option('wp_adcrunch_convert') == 'exclude') { //populate script; $script = "\n"; $script .= "\n"; } else if (get_option('wp_adcrunch_convert') == 'include') { //populate script; $script = "\n"; $script .= "\n"; } else { //populate script; $script = "\n"; $script .= "\n"; } echo $script; } //Let's create the options menu // create custom plugin settings menu add_action('admin_menu', 'wp_adcrunch_create_menu'); function wp_adcrunch_create_menu() { //create new top-level menu add_options_page('adcrun.ch Plugin Settings', 'adcrun.ch Settings', 'administrator', __FILE__, 'wp_adcrunch_settings_page',plugins_url('http://adcrun.ch/images/Home-32.png', __FILE__)); //call register settings function add_action( 'admin_init', 'wp_adcrunch_register_mysettings' ); } function wp_adcrunch_register_mysettings() { //register our settings register_setting( 'wp-adcrunch-settings-group', 'wp_adcrunch_enable' ); register_setting( 'wp-adcrunch-settings-group', 'wp_adcrunch_id' ); register_setting( 'wp-adcrunch-settings-group', 'wp_adcrunch_convert' ); register_setting( 'wp-adcrunch-settings-group', 'wp_adcrunch_domains' ); register_setting( 'wp-adcrunch-settings-group', 'wp_adcrunch_type' ); } function wp_adcrunch_settings_page() { ?>

adcrun.ch WordPress Plugin

Enable Plugin value="1" name="wp_adcrunch_enable"/>
adcrun.ch ID
(to get your ID, login to adcrun.ch, then go to http://adcrun.ch/referrals.php find ?r=xxxx. xxxx is your adcrun.ch id)
Convert

(List of domains to exclude or include, use single quotes for each domain without the "www." and separate domains using a ','. For example, 'google.com' , 'facebook.com')
Ad Type

Feedback, bug report, and suggestions are greatly appreciated. Please submit any concerns to adcrun.ch.