From 3a381e1d2f7e1b2043fd8ec5b96e437a0cddd01b Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 17 Feb 2009 16:54:13 -0500 Subject: [PATCH] remove ad activation box, fix install SQL, bump up version number --- classes/PWAdboxesClient.php | 8 ++++---- plugin-wonderful.php | 25 +------------------------ readme.txt | 10 +++------- views/main.php | 21 +-------------------- 4 files changed, 9 insertions(+), 55 deletions(-) diff --git a/classes/PWAdboxesClient.php b/classes/PWAdboxesClient.php index ac21887..a3ffdb7 100644 --- a/classes/PWAdboxesClient.php +++ b/classes/PWAdboxesClient.php @@ -2,7 +2,7 @@ require_once('PublisherInfo.php'); -define("PLUGIN_WONDERFUL_DATABASE_VERSION", 2); +define("PLUGIN_WONDERFUL_DATABASE_VERSION", 3); /** * The interface to the PW database table. @@ -31,8 +31,8 @@ class PWAdboxesClient { adtype char(30) NOT NULL, url char(255) NOT NULL, dimensions char(10) NOT NULL, - rating char(10) NOT NULL, - category char(30) NOT NULL, + rating char(30) NOT NULL, + category char(50) NOT NULL, description text NOT NULL, tags text NOT NULL, standardcode text NOT NULL, @@ -186,4 +186,4 @@ class PWAdboxesClient { } } -?> \ No newline at end of file +?> diff --git a/plugin-wonderful.php b/plugin-wonderful.php index c66d7b6..fdec65e 100644 --- a/plugin-wonderful.php +++ b/plugin-wonderful.php @@ -3,7 +3,7 @@ Plugin Name: Plugin Wonderful Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/ Description: Easily embed a Project Wonderful publisher's advertisements. -Version: 0.3 +Version: 0.4 Author: John Bintz Author URI: http://www.coswellproductions.org/wordpress/ @@ -159,28 +159,6 @@ class PluginWonderful { if (method_exists($this, $action)) { call_user_func(array($this, $action)); } } - function handle_action_activate_ad() { - if (isset($_POST['submit'])) { - $original_ad_code = get_option('plugin-wonderful-activate-ad-code'); - update_option('plugin-wonderful-activate-ad-code', $_POST['activate-ad-code']); - - if (empty($_POST['activate-ad-code'])) { - $this->messages[] = __('Adbox for activation removed.', 'plugin-wonderful'); - } else { - $this->messages[] = __('Adbox for activation changed. Return to Project Wonderful to finish activating your ad, then return here and click the Finished button.', 'plugin-wonderful'); - } - } - - if (isset($_POST['finished'])) { - update_option('plugin-wonderful-activate-ad-code', ""); - $this->messages[] = __('Adbox for activation removed and all adboxes redownloaded.', 'plugin-wonderful'); - - if ($member_id = get_option('plugin-wonderful-memberid')) { - $this->publisher_info = $this->adboxes_client->get_ads($member_id); - } - } - } - function handle_action_change_adbox_settings() { if ($member_id = get_option('plugin-wonderful-memberid')) { if (isset($_POST['template_tag_id']) && is_array($_POST['template_tag_id'])) { @@ -293,7 +271,6 @@ $plugin_wonderful = new PluginWonderful(); add_action('admin_menu', array($plugin_wonderful, 'set_up_menu')); add_action('init', array($plugin_wonderful, 'set_up_widgets')); add_filter('the_excerpt_rss', array($plugin_wonderful, 'insert_rss_feed_ads')); -add_filter('wp_footer', array($plugin_wonderful, 'insert_activation_ad')); register_activation_hook(__FILE__, array($plugin_wonderful, 'handle_activation')); diff --git a/readme.txt b/readme.txt index c66d180..33cbb31 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: johncoswell Tags: ads, sidebar, widget Requires at least: 2.7 Tested up to: 2.7.1 -Stable tag: 0.3 +Stable tag: 0.4 Donate link: http://www.coswellproductions.com/wordpress/wordpress-plugins/ Plugin Wonderful lets Project Wonderful publishers quickly and easily add their adboxes to thier WordPress site. @@ -14,7 +14,7 @@ Plugin Wonderful downloads your adbox information from Project Wonderful and cre == Installation == -Copy the plugin-wonderful folder to your wp-content/plugins folder and activate it from Plugins -> Installed. Activating the plugin creates a new database table, {prefix}_pw_adboxes, that you can safely remove if you are no longer using the plugin. +Copy the plugin-wonderful folder to your wp-content/plugins folder and activate it from Plugins -> Installed. Activating the plugin creates a new database table, `{prefix}_pw_adboxes`, that you can safely remove if you are no longer using the plugin. == Frequently Asked Questions == @@ -28,10 +28,6 @@ If you want to refer to an ad by an arbitrary name, rather than the adbox id, yo `the_project_wonderful_ad('header')` -= How does quick ad activation work? = - -When you create an adbox on Project Wonderful, before people can bid on the ad you need to activate the adbox, by placing in on your page and letting PW check the ad's existence. Since only activated ads appear in your adbox listing, you can't automatically ad the adbox to your site. Quick activation lets you temporarily place the adbox code from PW into the footer of all pages on your site so that PW can find the ad for activation purposes. After it's activated, it will appear in your adbox list. Follow the instructions given by the plugin to quickly activate new Project Wonderful ads. - = How robust is placing ads in the RSS feed? = Project Wonderful does support placing ads in the RSS feed. In this case, all of the JavaScript is stripped out, since many RSS feed readers don't support JavaScript in the feed. The ads are placed above any excerpts in the feed. Some readers may not like the markup used. Until further testing is done, there are no good answers on how well PW ads delivered by Plugin Wonderful will perform. @@ -46,4 +42,4 @@ Plugin Wonderful checks your Project Wonderful account every 12 hours for adbox Wrap the call to `the_project_wonderful_ad()` in a `function_exists()` call: -`` \ No newline at end of file +`` diff --git a/views/main.php b/views/main.php index 74293b3..1538447 100644 --- a/views/main.php +++ b/views/main.php @@ -85,25 +85,6 @@ - - - - - -
-

- -

-
-
- - -
- - -
-
- publisher_info !== false) { ?>

@@ -135,4 +116,4 @@ - \ No newline at end of file +