WordPress.org

Plugin Directory

Changeset 210387


Ignore:
Timestamp:
02/26/10 05:08:40 (8 years ago)
Author:
Godlessons
Message:
 
Location:
wp-autobuzz/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • wp-autobuzz/trunk/wp-autobuzz.php

    r209517 r210387  
    44Plugin URI: http://godlessons.com/plugins/ 
    55Description: Automatically add your posts to Google Buzz. 
    6 Version: 1.0.1 
     6Version: 1.0.2 
    77Author: Godlessons 
    88Author URI: http://godlessons.com/plugins/ 
     
    2424    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2525*/ 
     26  
     27function wpab_localize () { 
     28    load_plugin_textdomain ('wp_autobuzz','/wp-content/plugins/wp-autobuzz/'); 
     29} 
    2630function add_buzz_identifier() { 
    2731    echo '<link rel="me" type="text/html" href="http://www.google.com/profiles/'. get_option('autoBuzzUser') . '/>'; 
     
    2933function init_wpab(){ 
    3034    add_option('autoBuzzUser',''); 
    31 } 
    32 function uninstall_wpab(){ 
    33     delete_option('autoBuzzUser'); 
    3435} 
    3536function wpabAdmin() { 
     
    4546<div class="wrap"> 
    4647<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 
    47 <h2>WP AutoBuzz</h2> 
    48 <h3>Enter Google account name that appears before @ in your email address.</h3> 
     48<h2><?php _e('WP AutoBuzz','wp_autobuzz');?></h2> 
     49<h3><?php _e('Enter Google account name that appears before @ in your email address.','wp_autobuzz');?></h3> 
    4950<p> 
    50   <label>Enter Google Account:  
     51  <label><?php _e('Enter Google Account:','wp_autobuzz')?>  
    5152    <input name="googleAccount" type="text" id="googleAccount" value="<?php echo apply_filters('format_to_edit',$account) ?>" /> 
    5253  </label> 
    5354</p> 
    54 <?php if (isset($_POST['update_wpab_settings'])) {?><p><h3>Updated Successfully</h3></p><?php }?> 
    55 <p><span style="color: #F00">IMPORTANT: Before Google Buzz will import your RSS feed, you must link this site with Google Buzz.</span><br /> 
    56   Go to your Google Profile and edit it.  At the bottom will be a section on the right that says &quot;My links&quot;.  If you don't see your blog there, below that should be an area that says, &quot;Add custom links to my profile.&quot;  Enter the link to your blog there and submit. 
     55<?php if (isset($_POST['update_wpab_settings'])) {?><p><h3><?php _e('Updated Successfully', 'wp_autobuzz');?></h3></p><?php }?> 
     56<p><span style="color: #F00"><?php _e('IMPORTANT: Before Google Buzz will import your RSS feed, you must link this site with Google Buzz.','wp_autobuzz')?></span><br /> 
     57  <?php _e("Go to your Google Profile and edit it.  At the bottom will be a section on the right that says &quot;My links&quot;.  If you don't see your blog there, below that should be an area that says, &quot;Add custom links to my profile.&quot;  Enter the link to your blog there and submit.", 'wp_autobuzz');?> 
    5758</p> 
    58 <p>Once you have linked your blog to your profile, you can either wait for google to crawl your blog, or you can force it to crawl your blog by going to the <a href="https://sgapi-recrawl.appspot.com/">recrawl tool</a>. Once there and logged in, click the recrawl button next to the website you want to add. After that, all you have to do is add it to your connected sites in buzz and voila.</p> 
     59<p><?php _e("Once you have linked your blog to your profile, you can either wait for google to crawl your blog, or you can force it to crawl your blog by going to the <a href=\"https://sgapi-recrawl.appspot.com/\">recrawl tool</a>. Once there and logged in, click the recrawl button next to the website you want to add. After that, all you have to do is add it to your connected sites in buzz and voila.", 'wp_autobuzz');?></p> 
    5960<div class="submit"> 
    6061  <input type="submit" name="update_wpab_settings" value="Update Settings" /></div> 
     
    6364<?php 
    6465} 
    65  
     66add_action ('init', 'wpab_localize'); 
    6667register_activation_hook(__FILE__,'init_wpab'); 
    6768if (is_admin()){ 
Note: See TracChangeset for help on using the changeset viewer.