Changeset 1155760
- Timestamp:
- 05/08/2015 12:59:32 AM (11 years ago)
- Location:
- pilotpress/trunk
- Files:
-
- 2 edited
-
pilotpress.php (modified) (6 diffs)
-
readme.txt (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pilotpress/trunk/pilotpress.php
r1112106 r1155760 4 4 Plugin URI: http://ontraport.com/ 5 5 Description: OfficeAutoPilot / Ontraport WordPress integration plugin. 6 Version: 1.7. 26 Version: 1.7.3 7 7 Author: Ontraport Inc. 8 8 Author URI: http://ontraport.com/ … … 21 21 class PilotPress { 22 22 23 const VERSION = "1.7. 2";23 const VERSION = "1.7.3"; 24 24 const WP_MIN = "3.0"; 25 25 const NSPACE = "_pilotpress_"; … … 171 171 } 172 172 173 if(isset($_SESSION["contact_id"])) { 174 $api_result = $this->api_call("get_site_settings", array("site" => site_url(), "contact_id" => $_SESSION["contact_id"], "username" => $_SESSION["user_name"])); 173 if(isset($_COOKIE["contact_id"])) { 174 if(!function_exists('get_currentuserinfo')) 175 { 176 include(ABSPATH . "wp-includes/pluggable.php"); 177 } 178 global $current_user; 179 get_currentuserinfo(); 180 $username = $current_user->user_login; 181 $api_result = $this->api_call("get_site_settings", array("site" => site_url(), "contact_id" => $_COOKIE["contact_id"], "username" => $username)); 175 182 } 176 183 else { … … 1565 1572 function user_login($username, $password) { 1566 1573 if(isset($_POST["wp-submit"])) { 1574 1575 //Wordpress trims trailing and leading spaces before authenticating, lets do the same. 1567 1576 $password = trim($password); 1577 1568 1578 $hashed_password = $username . self::VERSION . $password . self::AUTH_SALT; 1569 1579 … … 1657 1667 1658 1668 $user_id = $user->ID; 1669 $remember = false; 1670 if (!empty($_POST["rememberme"])) 1671 { 1672 $remember = true; 1673 } 1659 1674 wp_set_current_user($user_id, $username); 1660 wp_set_auth_cookie($user_id );1675 wp_set_auth_cookie($user_id ,$remember); 1661 1676 do_action('wp_login', $username , $user); 1662 1677 … … 2231 2246 $page_levels = get_post_meta($id, "_pilotpress_level"); 2232 2247 $user_levels = $this->get_setting("levels","user",true); 2233 2248 2234 2249 if(!is_array($user_levels)) { 2235 2250 $user_levels = array($user_levels); -
pilotpress/trunk/readme.txt
r1112104 r1155760 12 12 == Description == 13 13 14 [Video: __Intro and Overview__ (4:36)](http://pseudo01.hddn.com/vod/moonray.moonray/PilotPress_2_intro.mp4)15 14 16 15 PilotPress is a WordPress plug-in that brings the power of [ONTRAPORT](http://ontraport.com) to the WordPress platform, specifically: … … 30 29 == Installation == 31 30 32 [Video: __Installing on an existing WordPress Site__ (3:13)](http://pseudo01.hddn.com/vod/moonray.moonray/PilotPress_3_Installing_to_existin_site.mp4)33 34 31 1. Upload the PilotPress plugin to the "/wp-content/plugins/" directory 35 32 2. Activate the plugin through the "Plugins" menu in WordPress … … 60 57 == Changelog == 61 58 59 = 1.7.3 = 60 * Fixed issue with logging in where the "remember me" option would not keep users logged in, if/when was browser closed and the session was destroyed 61 * Fixed issue with custom login form going to 404 page if WordPress was hosted on a subdomain 62 62 63 = 1.7.2 = 63 64 * Fixed bug where if your home page is set to a static page and is protected by a membership level it would still show the content. … … 65 66 66 67 = 1.7.1 = 67 * Fixed bug where featured images would not show up properly when creating a new post 68 * Fixed bug where featured images would not show up properly when creating a new post/page 68 69 69 70 = 1.7.0 = … … 93 94 * Fixed a bug with the "not_contact" shortcode where it would not function if a user was not logged in. 94 95 * Improved page load speeds by moving the ONTRAPORT tracking script into the footer. 95 * Fixed a bug where a user not logged in trying to use the affiliate_center would redirect to wp_login.php instead of the PilotPress log in page.96 * Fixed a bug where a user not logged in trying to use the affiliate_center would redirect to wp_login.php instead of the PilotPress login page. 96 97 * Added two additional shortcode attributes to the show_if shortcode - 'not_cookied_contact' and 'is_cookied_contact' 97 98 … … 145 146 == Upgrade Notice == 146 147 148 = 1.7.3 = 149 * Fixed issue with logging in where the "remember me" option would not keep users logged in, if/when was browser closed 150 * Fixed issue with custom login form going to 404 page if WordPress was hosted on a subdomain 151 147 152 = 1.7.2 = 148 153 * Fixed bug where if your home page is set to a static page and is protected by a membership level it would still show the content. … … 150 155 151 156 = 1.7.1 = 152 * Fixed bug where featured images would not show up properly when creating a new post 157 * Fixed bug where featured images would not show up properly when creating a new post/page 153 158 154 159 = 1.7.0 = … … 178 183 * Fixed a bug with the "not_contact" shortcode where it would not function if a user was not logged in. 179 184 * Improved page load speeds by moving the ONTRAPORT tracking script into the footer. 180 * Fixed a bug where a user not logged in trying to use the affiliate_center would redirect to wp_login.php instead of the PilotPress log in page.185 * Fixed a bug where a user not logged in trying to use the affiliate_center would redirect to wp_login.php instead of the PilotPress login page. 181 186 * Added two additional shortcode attributes to the show_if shortcode - 'not_cookied_contact' and 'is_cookied_contact' 182 187 … … 224 229 == Using your WordPress site as a Membership Site (aka Protecting and revealing content) == 225 230 226 [Video: __Protect and Release Content__ (6:46)](http://pseudo01.hddn.com/vod/moonray.moonray/PilotPress_5_protect_and_release_content.mp4)227 228 231 Below are instructions on how to protect content in your membership site. There are two ways to do this: 229 232 … … 279 282 - - For this rule, you would set the "What Should Happen" section to "Change Field to Value" and then select the "Membership Level" field as the one to have changed. Then, set it to change to the next specific level of membership, in this case, we'd set it to 'Week 2'. It would be the same moving forward to week 3, etc. 280 283 281 - - Next , you could create an email step to fire immediately after the rule step to notify your contact that they are able to log in and access week 2's content, you may repeat this as many time as you wish. And, you don't have to do it all at once. You might add the first three weeks to start, then add a week or twos worth of additional content at a time later on. The process is the same either way.284 - - Next , you could create an email step to fire immediately after the rule step to notify your contact that they are able to login and access week 2's content, you may repeat this as many time as you wish. And, you don't have to do it all at once. You might add the first three weeks to start, then add a week or twos worth of additional content at a time later on. The process is the same either way. 282 285 283 286 - Note: Be sure to save each step as you go and then save your sequence when you're all through. … … 333 336 == Creating the Sign-Up Page == 334 337 335 [Video: __Creating a Sign Up Page and Adding Forms__ (2:32)](http://pseudo01.hddn.com/vod/moonray.moonray/PilotPress%20_6_Create_Signup_pg_and_post_form_to_wp.mp4)336 337 338 This is where your prospects/clients purchase their membership. It's the page that any sales emails, sales letters, and sales videos would point to. 338 339
Note: See TracChangeset
for help on using the changeset viewer.