Plugin Directory

Changeset 1041917


Ignore:
Timestamp:
12/10/2014 01:42:56 PM (11 years ago)
Author:
commentluv
Message:

updated subscribe for offers target list

Location:
commentluv/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commentluv/trunk/commentluv.php

    r1000978 r1041917  
    33Plugin URI: http://comluv.com/
    44Description: Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
    5 Version: 2.93.6
     5Version: 2.93.7
    66Author: Andy Bailey
    77Author URI: http://www.commentluv.com
     
    2929        var $plugin_dir;
    3030        var $db_option = 'commentluv_options';
    31         var $version = "2.93.6";
     31        var $version = "2.93.7";
    3232        var $slug = 'commentluv-options';
    3333        var $localize;
     
    11391139            $email = $current_user->user_email;
    11401140            $firstname = $current_user->first_name;
     1141            $url = 'http://contact.commentluv.com/subscribe';
     1142            $list = 'pdYIXefvLNL38bE3fDcB3Q';
     1143            // sendy
    11411144            if(!$firstname){
    11421145                $firstname = $current_user->user_nicename;
    11431146            }
    1144             $message = "\n Email: ".$email."\n\n Name: ".$firstname."\n\n Meta: settings_page_289"."\n\n";
    1145             $to = 'cl_notify29@aweber.com';
    1146             $headers = 'From: '.$firstname.' <'.$email.'>'."\r\n\\";
    1147             $mail = wp_mail($to,'cl_notify',$message,$headers);
    1148             if($mail === true){
    1149                 $options = $this->get_options();
    1150                 $options['subscribed'] = true;
    1151                 update_option($this->db_option,$options);
    1152             }
    1153             $return = array('success'=>$mail,'email'=>$email);
     1147            $response = wp_remote_post( $url, array(
     1148                'method' => 'POST',
     1149                'timeout' => 45,
     1150                'redirection' => 5,
     1151                'httpversion' => '1.0',
     1152                'blocking' => true,
     1153                'headers' => array(),
     1154                'body' => array( 'name' => $firstname, 'email' => $email ,'list'=>$list),
     1155                'cookies' => array()
     1156                )
     1157            );
     1158            $return = array('success'=>true,'email'=>$email);
    11541159            // return response
    11551160            $response = json_encode($return);
  • commentluv/trunk/readme.txt

    r1000978 r1041917  
    44Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
    55Requires at least: 3.6
    6 Tested up to: 4.0
    7 Stable tag: 2.93.6
     6Tested up to: 4.0.1
     7Stable tag: 2.93.7
    88   
    99Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
Note: See TracChangeset for help on using the changeset viewer.