Changeset 698566
- Timestamp:
- 04/16/2013 03:14:21 PM (13 years ago)
- Location:
- campayn-email-newsletter-sign-up/trunk
- Files:
-
- 4 edited
-
campayn.php (modified) (4 diffs)
-
campayn_install.php (modified) (1 diff)
-
campayn_settings.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
campayn-email-newsletter-sign-up/trunk/campayn.php
r698547 r698566 5 5 Plugin URI: https://github.com/nebojsac/Campayn-WordPress-Plugin 6 6 Description: Plugin for using the campayn.com API with Wordpress 7 Version: 0.1 57 Version: 0.16 8 8 Author: Zoltan Lengyel 9 9 Author URI: http://brow.hu/ … … 21 21 $apikey = get_option('ob_campayn_apikey'); 22 22 $apikey = $apikey['text_string']; 23 $campayn_api = new Pest('http://api.campayn. net/api/v1/');23 $campayn_api = new Pest('http://api.campayn.com/api/v1/'); 24 24 //$campayn_api = new Pest('http://localhost:6666'); 25 25 $campayn_api->curl_opts[CURLOPT_HTTPHEADER] = array('Authorization:TRUEREST apikey='.$apikey); … … 73 73 $fs = $wpdb->get_results('select * from '.$ft); 74 74 if (empty($fs)) { 75 print 'You don\'t have a signup form set up in Campayn. Click on the <a href="http://campayn. net/contacts">CONTACTS</a> tab and select \'Add Sign Up Form\' by clicking on the Options arrow to the right of you contact list.';75 print 'You don\'t have a signup form set up in Campayn. Click on the <a href="http://campayn.com/contacts">CONTACTS</a> tab and select \'Add Sign Up Form\' by clicking on the Options arrow to the right of you contact list.'; 76 76 return; 77 77 } … … 97 97 //text after 'Sign up free' in admin area 98 98 function campayn_signup_callback() { 99 print "If you don't have a Campayn account you can sign up for free <a href=\"http://campayn. net/signup\">here</a>.";99 print "If you don't have a Campayn account you can sign up for free <a href=\"http://campayn.com/signup\">here</a>."; 100 100 } 101 101 -
campayn-email-newsletter-sign-up/trunk/campayn_install.php
r698422 r698566 16 16 // we will work with delete and re-insert only. 17 17 // 18 // example json response to store (GET http://api.campayn. net/api/v1/forms.json?filter[form_type]=1):18 // example json response to store (GET http://api.campayn.com/api/v1/forms.json?filter[form_type]=1): 19 19 // { "id" : "1603", 20 20 // "contact_list_id" : "1589", 21 21 // "form_title" : "Only Email", 22 22 // "form_type" : "1", 23 // "wp_form" : "<form id=\"cmp_campayn\" action=\"http:\/\/campayn. net\/contacts\/signup_form_add_contact\/1589\" method=\"post\"><div>\n<label for=\"email\">Email:<span style=\"color:red\">*<\/span><\/label>\n<br \/>\n<input name=\"email\" id=\"email\" type=\"text\" placeholder=\"Email\" class=\"required\"\/><\/div>\n<input type=\"submit\" name=\"submit\" value=\"Subscribe\" \/><input type=\"hidden\" name=\"formId\" value=\"1603\" \/><\/form>",23 // "wp_form" : "<form id=\"cmp_campayn\" action=\"http:\/\/campayn.com\/contacts\/signup_form_add_contact\/1589\" method=\"post\"><div>\n<label for=\"email\">Email:<span style=\"color:red\">*<\/span><\/label>\n<br \/>\n<input name=\"email\" id=\"email\" type=\"text\" placeholder=\"Email\" class=\"required\"\/><\/div>\n<input type=\"submit\" name=\"submit\" value=\"Subscribe\" \/><input type=\"hidden\" name=\"formId\" value=\"1603\" \/><\/form>", 24 24 // "list_name":"Sample Contact List" 25 25 // } -
campayn-email-newsletter-sign-up/trunk/campayn_settings.php
r698422 r698566 32 32 'apikey' => array ( 33 33 'label' => "Campayn API Key", 34 'description' => "Enter your Campayn API Key before using the plugin. You can get one <a href=\"http://campayn. net/login?redirect=/users/api\">here</a>.",34 'description' => "Enter your Campayn API Key before using the plugin. You can get one <a href=\"http://campayn.com/login?redirect=/users/api\">here</a>.", 35 35 'length' => "65", 36 36 'suffix' => "", … … 52 52 'apikey' => array ( 53 53 'label' => "Campayn API Key", 54 'description' => "Enter your Campayn API Key before using the plugin. You can get one <a href=\"http://campayn. net/login?redirect=/users/api\">here</a>.",54 'description' => "Enter your Campayn API Key before using the plugin. You can get one <a href=\"http://campayn.com/login?redirect=/users/api\">here</a>.", 55 55 'length' => "65", 56 56 'suffix' => "", -
campayn-email-newsletter-sign-up/trunk/readme.txt
r698547 r698566 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 0.1 57 Stable tag: 0.16 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 The Campayn plugin makes it easy to add subscribe forms for your Campayn lists, or subscribe your commenters to a list. 16 16 17 Campayn is similar to MailChimp, Aweber and Constant Contact but has a Free for Life plan and the lowest cost paid plans. You can sign up for a free account <a href=\"http://campayn. net/signup\">here</a>.17 Campayn is similar to MailChimp, Aweber and Constant Contact but has a Free for Life plan and the lowest cost paid plans. You can sign up for a free account <a href=\"http://campayn.com/signup\">here</a>. 18 18 19 19 After installation the setting page will guide you through the setup and you can have your subscription form on your blog within minutes!
Note: See TracChangeset
for help on using the changeset viewer.