Update Plugin Notes

TDL Back Up process:

1. Backup site with UpdraftPlus
2. When you have some updates to do, always update core first, then update your plugins and themes.
4. test


Notes:


Jet Pack

Copy the code from bigtime for the below function in the file: plugins/jetpack/modules/sharedaddy/sharedaddy.php 
So basically after you update jetpack  you need to replace the below function in plugins/jetpack/modules/sharedaddy/sharedaddy.php but copying from here doesn’t always work because it puts special characters in for the quotes and stuff.

This function creates the content in the email sent for article sharing 

function sharing_email_send_post( $data ) {
 global $current_user;
 get_currentuserinfo();
 $content = sprintf( __( $current_user->display_name . ' ' . $current_user->user_email . ' has shared with you the following story:'."\n\n\n\n", 'jetpack' ), $data['name'], $data['source'] );
 $content .= '<br /><br />';
 $content .= $data['post']->post_title."\n\n";
 $content .= '<br />';
 $authorUser = get_userdata( $data['post']->post_author );
 $content .= 'By: ' . $authorUser->display_name . ' ' . get_the_date('m/d/Y');
 $content .= '<br /><br />';
// $content .= get_the_excerpt();
 $content .= get_post()->post_excerpt;
 $content .= '<br />';
 $content .= '<style type="text/css">.read-more { display: none !important; }</style>';
 $content .= '<br />';
 $content .= 'Subscribers to The Daily Line can share full articles. Read the full article ' . $current_user->display_name . ' has shared with you: ';
 $content .= get_permalink( $data['post']->ID )."?share=true\n";
 wp_mail( $data['target'], ' '.$data['post']->post_title, $content );
}

Do not update: Display Posts Shortcode

Do not update at this point. 
Steph Notes: (make sure to backup copy because i made layout changes)
coauthors – take out the by and “-” in both
display-posts-shortcode and dps-coauthor-addon-master
Robert made a lot of changes in these files


BNE Testimonials

This code creates the 3 columns. Make sure you add the class.

change // Build Single Testimonial
echo '<div class="single-bne-testimonial">';
to // Build Single Testimonial
echo '<div class="single-bne-testimonial col-lg-4">';
 


Configure Updraft Plus

Updraft Plus > Settings page

Configure for Google Drive: https://updraftplus.com/support/configuring-google-drive-api-access-in-updraftplus/

Or Configure for Dropbox: click drop box and save settings page then click on “After you have saved your settings (by clicking ‘Save Changes’ below), then come back here once and click this link to complete authentication with Dropbox.” I believe you can follow the on screen authentication form there.


The rest is Stephanie notes

Membership 2 pro

Hard Coded Password hack: bigtime.thedailyline.net/wp-content/plugins/membership/app/model/class-ms-model-communication.php
( for this page: http://bigtime.aldertrack.com/pricing/)
Already have a user account?
Make change in this file
membership/app/view/shortcode/class-ms-view-shortcode-registeruser.php
Email Notifications Send
/wp-content/plugins/membership/app/controller/class-ms-controller-communication.php

Subscription Expired Email Notification:

/wp-content/plugins/membership/app/controller/class-ms-controller-communication.php

/wp-content/plugins/membership/app/model/communication/class-ms-model-communication-finished.php

Subscription Cancelled Email Notification:

/wp-content/plugins/membership/app/model/communication/class-ms-model-communication-cancelled.php


Marketpress

Hard coded coupon fix:
wp-content/plugins/marketpress/includes/addons/mp-coupons/class-mp-coupons-addon.php
wp-content/plugins/marketpress/includes/common/class-mp-product.php
wp-content/plugins/marketpress/includes/addons/mp-coupons/class-mp-coupon.php
wp-content/plugins/marketpress/includes/public/class-mp-checkout.php

defaulted to always create new user in checkout by setting checked and hiding button
wp-content/plugins/marketpress/includes/public/class-mp-checkout.php

Validate Email on not member sign up so if email is in use you get blocked
wp-content/plugins/marketpress/includes/public/class-mp-checkout.php

added logical product type
wp-content/plugins/lsc-membership-child-members/lsc-membership-child-members.php

added handling of logical product type
wp-content/plugins/marketpress/includes/common/class-mp-cart.php
wp-content/plugins/marketpress/includes/common/class-mp-order.php
wp-content/plugins/marketpress/includes/common/class-mp-product.php

added passing of password from marketpress register form to email
wp-content/plugins/membership/app/model/class-ms-model-communication.php

removed order has been shipped email on all products
wp-content/plugins/marketpress/includes/common/class-mp-order.php

link created after group sign up to add child users page
wp-content/plugins/marketpress/includes/common/class-mp-cart.php
wp-content/plugins/marketpress/includes/common/class-mp-order.php
wp-content/plugins/marketpress/includes/common/class-mp-product.php

Validation
/wp-content/plugins/marketpress/includes/admin/class-mp-ajax.php
/wp-content/plugins/marketpress/includes/public/class-mp-checkout.php
/wp-content/plugins/marketpress/ui/js/mp-checkout.js

 


Market Press and M2 Pro Customer ID and Recurring Events

wp-content/plugins/membership/app/helper/listtable/class-ms-helper-listtable-member.php
wpcontent/plugins/membership/app/helper/listtable/class-ms-helper-listtable-membership.php
wp-content/plugins/lsc-membership-child-members/lsc-membership-child-members.php
/wp-content/plugins/membership/app/view/member/class-ms-view-member-editor.php
/wp-content/plugins/marketpress/includes/common/payment-gateways/stripe.php


Group Membership

wp-content/plugins/membership/app/controller/class-ms-controller-member.php
wp-content/plugins/membership/app/helper/listtable/class-ms-helper-listtable-member.php
wp-content/plugins/membership/app/helper/listtable/class-ms-helper-listtable-membership.php
wp-content/plugins/lsc-membership-child-members/lsc-membership-child-members.php
 
Form validation when adding users
wp-content/plugins/marketpress/includes/admin/class-mp-ajax.php
wp-content/themes/stanleywp-child/template-group.php