WordPress.org

Plugin Directory

Changeset 450021


Ignore:
Timestamp:
10/11/11 20:20:17 (3 years ago)
Author:
SteveAtty
Message:

Version 2.0.1

Location:
wordbooker/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wordbooker/trunk/includes/wordbooker_facebook_curl.php

    r449609 r450021  
    9494        curl_setopt($ch, CURLOPT_URL, $url); 
    9595        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
     96    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
    9697     curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
    9798        $response = curl_exec($ch); 
  • wordbooker/trunk/includes/wordbooker_posting.php

    r449609 r450021  
    9898 
    9999function wordbooker_store_post_result($post_id,$fb_post_id) { 
    100     global $wpdb,$blog_id; 
     100    global $wpdb,$blog_id,$user_ID; 
    101101    $tstamp=time(); 
    102102    $wordbooker_settings = wordbooker_options(); 
    103     $sql=   ' INSERT INTO ' . WORDBOOKER_POSTCOMMENTS . ' (fb_post_id,comment_timestamp,wp_post_id,blog_id) VALUES ("'.$fb_post_id.'",'.$tstamp.','.$post_id.','.$blog_id.')'; 
     103    $sql=   ' INSERT INTO ' . WORDBOOKER_POSTCOMMENTS . ' (fb_post_id,comment_timestamp,wp_post_id,blog_id,user_id) VALUES ("'.$fb_post_id.'",'.$tstamp.','.$post_id.','.$blog_id.','.$user_ID.')'; 
    104104    $result = $wpdb->query($sql); 
    105105    wordbooker_insert_into_postlogs($post_id,$blog_id); 
  • wordbooker/trunk/readme.txt

    r449609 r450021  
    55Requires at least: 2.9 
    66Tested up to: 3.2.1 
    7 Stable tag: 2.0 
     7Stable tag: 2.0.1 
    88 
    99This plugin allows you to cross-post your blog posts to your Facebook Wall and to any Facebook Fan Page / Group that you are an administrator for. The base release of Version 2 DOES NOT support comment handling - this is because V2 had to be pushed out to meet deadlines imposed by Facebook concerning application authorisation. Comment handling will be added in the first major 2.x release. 
     
    119119== Changelog == 
    120120 
     121= Version 2.0.1 11/10/2011 = 
     122- Fixed a logic mistake concerning Share on Pages/Front pages 
     123- A field  was missing from the post storage routine 
     124- Fixed a bug where Like counts didn't work because the url was missing. 
     125- Put an extra option into the Curl Call which might fix issues with certificate bundles. 
     126 
     127 
    121128= Verson 2.0.0 30/09/2011 = 
    122129- Major new release - too many changes to document here 
     130 
    123131 
    124132= Version 1.9.5 17/07/2011 = 
  • wordbooker/trunk/wordbooker.php

    r449609 r450021  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.0.0 
     8Version: 2.0.1 
    99*/ 
    1010 
     
    4343define('WORDBOOKER_DEBUG', false); 
    4444define('WORDBOOKER_TESTING', false); 
    45 define('WORDBOOKER_CODE_RELEASE','2.0.0 - In The Woods of Kroandal '); 
     45define('WORDBOOKER_CODE_RELEASE','2.0.1 - Letters To A Young Rose '); 
    4646 
    4747# For Troubleshooting  
     
    10631063    <li><?php _e('Check the '); ?><a href="../wp-content/plugins/wordbooker/wordbooker_user_guide.pdf" target="wordpress"><?php _e('User Guide'); ?></a>.</li> 
    10641064    <li><?php _e('Check the '); ?><a href="http://wordpress.org/extend/plugins/wordbooker/other_notes/" target="wordpress"><?php _e('WordPress.org Notes'); ?></a>.</li> 
    1065     <li><?php _e('Try the '); ?><a href="http://www.facebook.com/apps/application.php?v=app_2373072738&id=254577506873" target="facebook"><?php _e('Wordbooker Discussion Board'); ?></a>.</li> 
     1065    <li><?php _e('Try the '); ?><a href="http://wordbooker.tty.org.uk/forums/" target="facebook"><?php _e('Wordbooker Support Forums'); ?></a>.</li> 
    10661066        <li><?php _e('Enhancement requests can be made at the '); ?><a href="http://code.google.com/p/wordbooker/" target="facebook"><?php _e('Wordbooker Project on Google Code'); ?></a>.</li> 
    10671067    <li><?php _e('Consider upgrading to the '); ?><a href="http://wordpress.org/download/"><?php _e('latest stable release'); ?></a> <?php _e(' of WordPress. '); ?></li> 
     
    14471447            } 
    14481448 
    1449         } else {wordbooker_debugger("Posting to target ".$target_name." not active","",$post_id) ; } 
     1449        } else {wordbooker_debugger("Posting to target ".$target_name." not active","",$post_id,99) ; } 
    14501450 
    14511451} 
     
    15931593            } 
    15941594         } 
    1595      
     1595    #var_dump($wordbooker_settings); 
    15961596        if (strlen($wordbooker_settings["fb_comment_app_id"])>6) { 
    15971597            echo '<meta property = "fb:app_id" content = "'.$wordbooker_settings["fb_comment_app_id"].'" /> '; 
     
    17551755    if ($wordbooker_post_options['wordbooker_share_button_page']==2 && is_page()) {return ;} 
    17561756    if (!isset($wordbooker_settings['wordbooker_like_share_too'])) {return ;} 
    1757     if (isset($wordbooker_settings['wordbooker_share_button_post']) && is_single() ) {$do_share=1;} 
    1758     if (isset($wordbooker_settings['wordbooker_share_button_page']) && is_page() )  {$do_share=1;} 
     1757    if (isset($wordbooker_settings['wordbooker_share_button_post']) && is_single() && !is_front_page() ) {$do_share=1;} 
     1758    if (isset($wordbooker_settings['wordbooker_share_button_page']) && is_page()  && !is_front_page() )  {$do_share=1;} 
    17591759    if (isset($wordbooker_settings['wordbooker_share_button_frontpage'])  && is_front_page() ) {$do_share=1;} 
    17601760    if (isset($wordbooker_settings['wordbooker_share_button_category']) &&  is_category()  ) {$do_share=1;} 
     
    17841784    $wordbooker_settings = wordbooker_options();  
    17851785    $wordbooker_post_options= get_post_meta($post->ID, '_wordbooker_options', true);   
     1786    $post_link = get_permalink($post->ID); 
    17861787    if ($wordbooker_post_options['wordbooker_like_button_post']==2 && !is_page()) {return ;} 
    17871788    if ($wordbooker_post_options['wordbooker_like_button_page']==2 && is_page()) {return ;} 
     
    18251826    if ($wordbooker_post_options['wordbooker_like_button_page']==2 && is_page()) {return ;} 
    18261827    if ($wordbooker_settings['wordbooker_fblike_send_combi']=='true') {return;} 
    1827  
     1828    $post_link = get_permalink($post->ID); 
    18281829    $do_like=0; 
    18291830    if (isset($wordbooker_settings['wordbooker_like_button_post']) && is_single() && !is_front_page() ) {$do_like=1;} 
     
    18651866    if (!isset($wordbooker_settings['wordbooker_like_button_show'])) {return;} 
    18661867    $do_like=0; 
    1867  
     1868    $post_link = get_permalink($post->ID); 
    18681869    if (isset($wordbooker_settings['wordbooker_like_button_post']) && is_single() && !is_front_page() ) {$do_like=1;} 
    18691870    if (isset($wordbooker_settings['wordbooker_like_button_page']) && is_page() && !is_front_page())  {$do_like=1;} 
     
    19061907    if (!isset($wordbooker_settings['wordbooker_like_button_show'])) {return;} 
    19071908    $do_like=0; 
    1908  
     1909    $post_link = get_permalink($post->ID); 
    19091910    if (isset($wordbooker_settings['wordbooker_like_button_post']) && is_single() && !is_front_page() ) {$do_like=1;} 
    19101911    if (isset($wordbooker_settings['wordbooker_like_button_page']) && is_page() && !is_front_page())  {$do_like=1;} 
Note: See TracChangeset for help on using the changeset viewer.