WordPress.org

Plugin Directory

Changeset 609159


Ignore:
Timestamp:
10/07/12 13:44:15 (19 months ago)
Author:
SteveAtty
Message:

Version 2.1.22 og:image tag fix

Location:
wordbooker
Files:
5 deleted
5 edited
27 copied

Legend:

Unmodified
Added
Removed
  • wordbooker/tags/2.1.22/includes/wordbooker_cron.php

    r605697 r609159  
    1212    global $blog_id,$wpdb,$table_prefix,$wordbooker_user_settings_id,$wbooker_user_id; 
    1313    $wbooker_user_id=$user_id; 
    14     wordbooker_renew_access_token($user_id); 
     14    //wordbooker_renew_access_token($user_id); 
    1515    $result = $wpdb->query(' DELETE FROM ' . WORDBOOKER_ERRORLOGS . ' WHERE   blog_id ='.$blog_id.' and (user_ID='.$user_id.' or user_ID=0 ) and post_id<=1'); 
    1616    wordbooker_debugger("Cache Refresh Commence ",$user_id,-1,9) ;  
  • wordbooker/tags/2.1.22/includes/wordbooker_facebook_curl.php

    r605697 r609159  
    7878function wordbooker_get_access_token($access_token) { 
    7979    #$url='https://graph.facebook.com/oauth/access_token?client_id='.WORDBOOKER_FB_ID.'&client_secret='.WORDBOOKER_FB_SECRET.'&grant_type=fb_exchange_token&fb_exchange_token='.$access_token; 
    80     #$url='https://wordbooker.tty.org.uk/refresh.php?oldie='.$access_token; 
     80    #$url='https://wordbooker.tty.org.uk/refresh_curk.cgi?oldie='.$access_token; 
    8181    $version=explode(" ",WORDBOOKER_CODE_RELEASE); 
    82     $url='http://ccgi.pemmaquid.plus.com/cgi-bin/refresh.cgi?oldie='.$access_token.'&version='.$version[0]; 
     82    #   $url='http://ccgi.pemmaquid.plus.com/cgi-bin/refresh.cgi?oldie='.$access_token.'&version='.$version[0]; 
     83    $url='https://wordbooker.tty.org.uk/refresh_curl.cgi?oldie='.$access_token.'&version='.$version[0]; 
    8384    //var_dump($url); 
    8485    $x=wordbooker_make_curl_call2($url); 
  • wordbooker/tags/2.1.22/readme.txt

    r607618 r609159  
    66Requires at least: 2.9 
    77Tested up to: 3.4.2 
    8 Stable tag: 2.1.21 
     8Stable tag: 2.1.22 
    99 
    1010This 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.  
     
    115115 
    116116== Changelog == 
     117 
     118= Version 2.1.22  05/10/2012 = 
     119- Changes to refresh_token calls to reduce load on server. 
     120- Add wrapper round curl_version to stop errors blowing things up. 
     121- Added new image size for og:tags so all new images will have a specific image for wordbooker og tags.  
     122- Change og image code to use the new size, or fail back to large if missing. 
     123 
    117124 
    118125= Version 2.1.21  03/10/2012 = 
     
    399406== Upgrade Notice == 
    400407 
     408= 2.1.21 = 
     409Changes to og:tag images. 
     410 
    401411= 2.1.20 = 
    402412Database problem with new installs fixed. 
  • wordbooker/tags/2.1.22/wordbooker.php

    r607618 r609159  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.21 
     8Version: 2.1.22 
    99*/ 
    1010 
     
    3939    define('WORDBOOKER_DEBUG', false); 
    4040    define('WORDBOOKER_TESTING', false); 
    41     define('WORDBOOKER_CODE_RELEASE',"2.1.21 R00 - A Wish For Something More"); 
     41    define('WORDBOOKER_CODE_RELEASE',"2.1.22 R00 - A Wish For Something More"); 
    4242 
    4343    # For Troubleshooting  
     
    156156        } 
    157157    } 
    158  
     158    if (function_exists('curl_version')) { 
    159159    $curlv2=curl_version(); 
    160160    $curlv=$curlv2['version']; 
     
    164164      if ($curlv2['features'] & constant($feature)) {define('WORDBOOKER_IPV', '6');} else { define('WORDBOOKER_IPV', '4');} 
    165165    } 
    166  
     166} else {define('WORDBOOKER_IPV', '4');} 
    167167 
    168168    define('GLOBAL_DEFINITIONS_NOT_CALLED','not a problem'); 
     
    803803 
    804804function wordbooker_render_errorlogs() { 
    805 //  wordbooker_renew_access_token(); 
    806805    global $user_ID, $wpdb,$blog_id; 
    807806    $diaglevel=wordbooker_get_option('wordbooker_advanced_diagnostics_level'); 
     
    14131412        foreach ( $attachments as $attachment ) { 
    14141413            if ($attachment->post_type=='attachment') { 
    1415               $junk=wp_get_attachment_image_src( $attachment->ID,'medium'); 
     1414              $junk=wp_get_attachment_image_src( $attachment->ID,'wordbooker_og'); 
    14161415              $og_image=$junk[0]; 
     1416              if(!isset($og_image)) { 
     1417                $junk=wp_get_attachment_image_src( $attachment->ID,'large'); 
     1418                $og_image=$junk[0]; 
     1419              } 
    14171420              if(!isset($og_image)) {$og_image=wp_get_attachment_url($attachment->ID);} 
    14181421            //  wordbooker_debugger("Adding image",$og_image,$postidD,80) ; 
     
    27332736function wordbooker_init () { 
    27342737    load_plugin_textdomain ('wordbooker',false,basename(dirname(__FILE__)).'/languages'); 
     2738    add_image_size( 'wordbooker_og', 500, 500 ); 
    27352739} 
    27362740 
  • wordbooker/trunk/includes/wordbooker_cron.php

    r605697 r609159  
    1212    global $blog_id,$wpdb,$table_prefix,$wordbooker_user_settings_id,$wbooker_user_id; 
    1313    $wbooker_user_id=$user_id; 
    14     wordbooker_renew_access_token($user_id); 
     14    //wordbooker_renew_access_token($user_id); 
    1515    $result = $wpdb->query(' DELETE FROM ' . WORDBOOKER_ERRORLOGS . ' WHERE   blog_id ='.$blog_id.' and (user_ID='.$user_id.' or user_ID=0 ) and post_id<=1'); 
    1616    wordbooker_debugger("Cache Refresh Commence ",$user_id,-1,9) ;  
  • wordbooker/trunk/includes/wordbooker_facebook_curl.php

    r605697 r609159  
    7878function wordbooker_get_access_token($access_token) { 
    7979    #$url='https://graph.facebook.com/oauth/access_token?client_id='.WORDBOOKER_FB_ID.'&client_secret='.WORDBOOKER_FB_SECRET.'&grant_type=fb_exchange_token&fb_exchange_token='.$access_token; 
    80     #$url='https://wordbooker.tty.org.uk/refresh.php?oldie='.$access_token; 
     80    #$url='https://wordbooker.tty.org.uk/refresh_curk.cgi?oldie='.$access_token; 
    8181    $version=explode(" ",WORDBOOKER_CODE_RELEASE); 
    82     $url='http://ccgi.pemmaquid.plus.com/cgi-bin/refresh.cgi?oldie='.$access_token.'&version='.$version[0]; 
     82    #   $url='http://ccgi.pemmaquid.plus.com/cgi-bin/refresh.cgi?oldie='.$access_token.'&version='.$version[0]; 
     83    $url='https://wordbooker.tty.org.uk/refresh_curl.cgi?oldie='.$access_token.'&version='.$version[0]; 
    8384    //var_dump($url); 
    8485    $x=wordbooker_make_curl_call2($url); 
  • wordbooker/trunk/readme.txt

    r607618 r609159  
    66Requires at least: 2.9 
    77Tested up to: 3.4.2 
    8 Stable tag: 2.1.21 
     8Stable tag: 2.1.22 
    99 
    1010This 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.  
     
    115115 
    116116== Changelog == 
     117 
     118= Version 2.1.22  05/10/2012 = 
     119- Changes to refresh_token calls to reduce load on server. 
     120- Add wrapper round curl_version to stop errors blowing things up. 
     121- Added new image size for og:tags so all new images will have a specific image for wordbooker og tags.  
     122- Change og image code to use the new size, or fail back to large if missing. 
     123 
    117124 
    118125= Version 2.1.21  03/10/2012 = 
     
    399406== Upgrade Notice == 
    400407 
     408= 2.1.21 = 
     409Changes to og:tag images. 
     410 
    401411= 2.1.20 = 
    402412Database problem with new installs fixed. 
  • wordbooker/trunk/wordbooker.php

    r607618 r609159  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.21 
     8Version: 2.1.22 
    99*/ 
    1010 
     
    3939    define('WORDBOOKER_DEBUG', false); 
    4040    define('WORDBOOKER_TESTING', false); 
    41     define('WORDBOOKER_CODE_RELEASE',"2.1.21 R00 - A Wish For Something More"); 
     41    define('WORDBOOKER_CODE_RELEASE',"2.1.22 R00 - A Wish For Something More"); 
    4242 
    4343    # For Troubleshooting  
     
    156156        } 
    157157    } 
    158  
     158    if (function_exists('curl_version')) { 
    159159    $curlv2=curl_version(); 
    160160    $curlv=$curlv2['version']; 
     
    164164      if ($curlv2['features'] & constant($feature)) {define('WORDBOOKER_IPV', '6');} else { define('WORDBOOKER_IPV', '4');} 
    165165    } 
    166  
     166} else {define('WORDBOOKER_IPV', '4');} 
    167167 
    168168    define('GLOBAL_DEFINITIONS_NOT_CALLED','not a problem'); 
     
    803803 
    804804function wordbooker_render_errorlogs() { 
    805 //  wordbooker_renew_access_token(); 
    806805    global $user_ID, $wpdb,$blog_id; 
    807806    $diaglevel=wordbooker_get_option('wordbooker_advanced_diagnostics_level'); 
     
    14131412        foreach ( $attachments as $attachment ) { 
    14141413            if ($attachment->post_type=='attachment') { 
    1415               $junk=wp_get_attachment_image_src( $attachment->ID,'medium'); 
     1414              $junk=wp_get_attachment_image_src( $attachment->ID,'wordbooker_og'); 
    14161415              $og_image=$junk[0]; 
     1416              if(!isset($og_image)) { 
     1417                $junk=wp_get_attachment_image_src( $attachment->ID,'large'); 
     1418                $og_image=$junk[0]; 
     1419              } 
    14171420              if(!isset($og_image)) {$og_image=wp_get_attachment_url($attachment->ID);} 
    14181421            //  wordbooker_debugger("Adding image",$og_image,$postidD,80) ; 
     
    27332736function wordbooker_init () { 
    27342737    load_plugin_textdomain ('wordbooker',false,basename(dirname(__FILE__)).'/languages'); 
     2738    add_image_size( 'wordbooker_og', 500, 500 ); 
    27352739} 
    27362740 
Note: See TracChangeset for help on using the changeset viewer.