WordPress.org

Plugin Directory

Changeset 508979


Ignore:
Timestamp:
02/22/12 18:52:04 (2 years ago)
Author:
SteveAtty
Message:

Fixing the total mess that was 2.1.5

Location:
wordbooker
Files:
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • wordbooker/tags/2.1.6/includes/wordbooker_options.php

    r508474 r508979  
    732732        echo "</h3>"; 
    733733 
    734         if (wordbooker_contributed (0) ){ 
    735         _e("Thank you for contributing towards the support and development of this extension.", 'wordbooker'); 
    736         echo "<br /><br />"; 
    737     } 
    738     else { 
    739734    if (defined('WORDBOOKER_PREMIUM')) { _e("You're using the Premium options in Wordbooker. You really should contribute something to the support and development of this plugin.  Please provide your FB Id number and your website when making payment so your details can be added to the 'thanks' list on the web site", 'wordbooker'); 
    740 } else { 
    741         _e("If you've found this extension useful then please feel free to donate to its support and future development. Please provide your FB Id number and your website when making payment so your details can be added to the 'Thanks' page on the Website", 'wordbooker'); }} 
     735}        
     736    _e("If you've found this extension useful then please feel free to donate to its support and future development. Please provide your FB Id number and your website when making payment so your details can be added to the 'Thanks' page on the Website", 'wordbooker');  
    742737      ?><br /><br /> 
    743738        <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
  • wordbooker/tags/2.1.6/readme.txt

    r508474 r508979  
    55Requires at least: 2.9 
    66Tested up to: 3.3.1 
    7 Stable tag: 2.1.5 
     7Stable tag: 2.1.6 
    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.  
     
    114114 
    115115== Changelog == 
     116 
     117= Version 2.1.6 22/02/2012 = 
     118- Total embarassment : I somehow rolled a version with a function call in it that shouldn't have been there! 
     119 
    116120 
    117121= Version 2.1.5 21/02/2012 = 
  • wordbooker/tags/2.1.6/wordbooker.php

    r508474 r508979  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.5 
     8Version: 2.1.6 
    99*/ 
    1010 
     
    15841584    } 
    15851585    $wplang=wordbooker_get_language(); 
     1586/* 
    15861587$efb_script = <<< EOGS 
    15871588 <div id="fb-root"></div> 
     
    16071608    </script> 
    16081609EOGS; 
     1610 
     1611*/ 
     1612 
     1613$efb_script = <<< EOGS 
     1614 <div id="fb-root"></div> 
     1615     <script type="text/javascript"> 
     1616      window.fbAsyncInit = function() { 
     1617    FB.init({ 
     1618     appId  : '254577506873', 
     1619      status : true, // check login status 
     1620      cookie : true, // enable cookies to allow the server to access the session 
     1621      xfbml  : true,  // parse XFBML 
     1622      oauth:true 
     1623    }); 
     1624      }; 
     1625 
     1626    (function(d){ 
     1627      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} 
     1628      js = d.createElement('script'); js.id = id; js.async = true; 
     1629EOGS; 
     1630$efb_script.= "e.src = document.location.protocol + '//connect.facebook.net/".$wplang."/all.js';"; 
     1631$efb_script.= <<< EOGS 
     1632      d.getElementsByTagName('head')[0].appendChild(js); 
     1633    }(document)); 
     1634  </script> 
     1635EOGS; 
     1636     
    16091637     
    16101638    $wordbooker_settings = wordbooker_options();  
     
    16191647    echo "\n<!-- Wordbooker code revision : ".WORDBOOKER_CODE_RELEASE." -->\n"; 
    16201648    if ( is_single() ) { 
    1621         if (isset($wordbooker_settings['wordbooker_time_button'])) { 
    1622             $stuff=array('type'=>'client_cred','client_id'=>WORDBOOKER_FB_ID,'client_secret'=>WORDBOOKER_FB_SECRET); 
    1623             $access_token=wordbooker_make_curl_call('https://graph.facebook.com/oauth/access_token',$stuff); 
     1649        #if (isset($wordbooker_settings['wordbooker_time_button'])) { 
     1650            #echo '<fb:add-to-timeline></fb:add-to-timeline>  <fb:activity actions="wordbooker:write" app_id="111687885534181"></fb:activity>'; 
     1651            #$stuff=array('type'=>'client_cred','client_id'=>WORDBOOKER_FB_ID,'client_secret'=>WORDBOOKER_FB_SECRET); 
     1652            #$access_token=wordbooker_make_curl_call('https://graph.facebook.com/oauth/access_token',$stuff); 
    16241653        #   $frictionless=array('article' => get_permalink(),'access_token'=>'AAAAAO0YAejkBAE3gGR2KjCr6WhUO1ZBNyXHP6vaQoQLbwvlDyKDK0BIMZBb6mVyk2ZAbvPEXyrZCLNd6Bb8TA0HJCKGkotUZD');# 
    1625             $frictionless=array('article' => get_permalink(),'access_token'=>$access_token); 
    1626             var_dump($frictionless); 
    1627             try { 
     1654            #$frictionless=array('article' => get_permalink(),'access_token'=>$access_token); 
     1655            #var_dump($frictionless); 
     1656            #try { 
    16281657            #$x=wordbooker_make_curl_post_call('https://graph.facebook.com/me/news.reads',$frictionless); 
    16291658            #$x=wordbooker_make_curl_post_call('https://graph.facebook.com/me/wordbooker:wordbooker_read',$frictionless); 
    1630             var_dump($x); 
    1631             }    
    1632             catch  (Exception $e) { 
    1633                     $error_msg = $e->getMessage(); 
    1634                     var_dump($error_msg); 
    1635             } 
    1636         } 
     1659            #var_dump($x); 
     1660        #   }    
     1661        #   catch  (Exception $e) { 
     1662        #           $error_msg = $e->getMessage(); 
     1663        #           var_dump($error_msg); 
     1664        #   } 
     1665        #} 
    16371666    } 
    16381667return $blah; 
  • wordbooker/trunk/includes/wordbooker_options.php

    r508474 r508979  
    732732        echo "</h3>"; 
    733733 
    734         if (wordbooker_contributed (0) ){ 
    735         _e("Thank you for contributing towards the support and development of this extension.", 'wordbooker'); 
    736         echo "<br /><br />"; 
    737     } 
    738     else { 
    739734    if (defined('WORDBOOKER_PREMIUM')) { _e("You're using the Premium options in Wordbooker. You really should contribute something to the support and development of this plugin.  Please provide your FB Id number and your website when making payment so your details can be added to the 'thanks' list on the web site", 'wordbooker'); 
    740 } else { 
    741         _e("If you've found this extension useful then please feel free to donate to its support and future development. Please provide your FB Id number and your website when making payment so your details can be added to the 'Thanks' page on the Website", 'wordbooker'); }} 
     735}        
     736    _e("If you've found this extension useful then please feel free to donate to its support and future development. Please provide your FB Id number and your website when making payment so your details can be added to the 'Thanks' page on the Website", 'wordbooker');  
    742737      ?><br /><br /> 
    743738        <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
  • wordbooker/trunk/readme.txt

    r508474 r508979  
    55Requires at least: 2.9 
    66Tested up to: 3.3.1 
    7 Stable tag: 2.1.5 
     7Stable tag: 2.1.6 
    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.  
     
    114114 
    115115== Changelog == 
     116 
     117= Version 2.1.6 22/02/2012 = 
     118- Total embarassment : I somehow rolled a version with a function call in it that shouldn't have been there! 
     119 
    116120 
    117121= Version 2.1.5 21/02/2012 = 
  • wordbooker/trunk/wordbooker.php

    r508474 r508979  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.5 
     8Version: 2.1.6 
    99*/ 
    1010 
     
    15841584    } 
    15851585    $wplang=wordbooker_get_language(); 
     1586/* 
    15861587$efb_script = <<< EOGS 
    15871588 <div id="fb-root"></div> 
     
    16071608    </script> 
    16081609EOGS; 
     1610 
     1611*/ 
     1612 
     1613$efb_script = <<< EOGS 
     1614 <div id="fb-root"></div> 
     1615     <script type="text/javascript"> 
     1616      window.fbAsyncInit = function() { 
     1617    FB.init({ 
     1618     appId  : '254577506873', 
     1619      status : true, // check login status 
     1620      cookie : true, // enable cookies to allow the server to access the session 
     1621      xfbml  : true,  // parse XFBML 
     1622      oauth:true 
     1623    }); 
     1624      }; 
     1625 
     1626    (function(d){ 
     1627      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} 
     1628      js = d.createElement('script'); js.id = id; js.async = true; 
     1629EOGS; 
     1630$efb_script.= "e.src = document.location.protocol + '//connect.facebook.net/".$wplang."/all.js';"; 
     1631$efb_script.= <<< EOGS 
     1632      d.getElementsByTagName('head')[0].appendChild(js); 
     1633    }(document)); 
     1634  </script> 
     1635EOGS; 
     1636     
    16091637     
    16101638    $wordbooker_settings = wordbooker_options();  
     
    16191647    echo "\n<!-- Wordbooker code revision : ".WORDBOOKER_CODE_RELEASE." -->\n"; 
    16201648    if ( is_single() ) { 
    1621         if (isset($wordbooker_settings['wordbooker_time_button'])) { 
    1622             $stuff=array('type'=>'client_cred','client_id'=>WORDBOOKER_FB_ID,'client_secret'=>WORDBOOKER_FB_SECRET); 
    1623             $access_token=wordbooker_make_curl_call('https://graph.facebook.com/oauth/access_token',$stuff); 
     1649        #if (isset($wordbooker_settings['wordbooker_time_button'])) { 
     1650            #echo '<fb:add-to-timeline></fb:add-to-timeline>  <fb:activity actions="wordbooker:write" app_id="111687885534181"></fb:activity>'; 
     1651            #$stuff=array('type'=>'client_cred','client_id'=>WORDBOOKER_FB_ID,'client_secret'=>WORDBOOKER_FB_SECRET); 
     1652            #$access_token=wordbooker_make_curl_call('https://graph.facebook.com/oauth/access_token',$stuff); 
    16241653        #   $frictionless=array('article' => get_permalink(),'access_token'=>'AAAAAO0YAejkBAE3gGR2KjCr6WhUO1ZBNyXHP6vaQoQLbwvlDyKDK0BIMZBb6mVyk2ZAbvPEXyrZCLNd6Bb8TA0HJCKGkotUZD');# 
    1625             $frictionless=array('article' => get_permalink(),'access_token'=>$access_token); 
    1626             var_dump($frictionless); 
    1627             try { 
     1654            #$frictionless=array('article' => get_permalink(),'access_token'=>$access_token); 
     1655            #var_dump($frictionless); 
     1656            #try { 
    16281657            #$x=wordbooker_make_curl_post_call('https://graph.facebook.com/me/news.reads',$frictionless); 
    16291658            #$x=wordbooker_make_curl_post_call('https://graph.facebook.com/me/wordbooker:wordbooker_read',$frictionless); 
    1630             var_dump($x); 
    1631             }    
    1632             catch  (Exception $e) { 
    1633                     $error_msg = $e->getMessage(); 
    1634                     var_dump($error_msg); 
    1635             } 
    1636         } 
     1659            #var_dump($x); 
     1660        #   }    
     1661        #   catch  (Exception $e) { 
     1662        #           $error_msg = $e->getMessage(); 
     1663        #           var_dump($error_msg); 
     1664        #   } 
     1665        #} 
    16371666    } 
    16381667return $blah; 
Note: See TracChangeset for help on using the changeset viewer.