Changeset 46079

Show
Ignore:
Timestamp:
05/15/08 18:55:46 (2 months ago)
Author:
teamplaylotto
Message:

fix 1 return bug and added donate button to admin screen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • commentluv/trunk/commentluv.php

    r42464 r46079  
    22Plugin Name: Commentluv 
    33Plugin URI: http://www.fiddyp.co.uk/commentluv-wordpress-plugin/ 
    4 Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Currently parses with wordpress, blogspot, typepad and blogs that have a feed link in the head section of their page. 
    5 Version: 1.91 
     4Description: Plugin to show a link to the last post from the commenters blog in their comment. Just activate and it's ready. Will parse a feed from most sites that have a feed location specified in its head html (provided the hosting of the target site isn't too slow so that the script times out) 
     5Version: 1.92 
    66Author: Andy Bailey 
    77Author URI: http://www.fiddyp.co.uk/ 
     
    1111********************************************************************* 
    1212updates: 
     131.92 - fix case of 1 being output for feed return value and added donate button 
    13141.91 - fix option change for character encoding (forgot to add extra option to hidden field in option page html) 
    14151.9 - changed retrieve url to fiddyp.com site because of hosting problem with commentluv.com 
     
    127128      <input type="hidden" name="action" value="update" /> 
    128129      <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?>" /></p> 
    129       </form></div> 
     130      </form> 
     131 
     132<p>I've tried to make CommentLuv as compatible as possible with as many blog platforms as I could and from version 1.92 everything should go a lot smoother due to the remotely hosted file on Fiddyp.co.uk that does the magic of the fetching of the last blog post, to make it work on as many sites as possible I host the script on my own server at my own cost.  
     133 
     134<p>If you feel that your CommentLuv plugin is useful to you please consider donating a small amount of USD to keep the server happy with the thousands upon thousands of requests for peoples last blog post that it gets every single day.  
     135 
     136<p>Donating is not obligatory but it does keep me motivated to keep improving the script and adding new features (like allowing the user a choice of which last post to display or implementing AJAX into the functionality). 
     137 
     138<p>Thanks for spreading the luv and feel free to contact me any time at my blog if you have any suggestions or  problems! 
     139 
     140<p>Andy Bailey<br/> 
     141Fiddyp.co.uk 
     142 
     143<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
     144<input type="hidden" name="cmd" value="_donations"> 
     145<input type="hidden" name="business" value="root@teamplaylotto.com"> 
     146<input type="hidden" name="item_name" value="CommentLuv"> 
     147<input type="hidden" name="no_shipping" value="0"> 
     148<input type="hidden" name="no_note" value="1"> 
     149<input type="hidden" name="currency_code" value="USD"> 
     150<input type="hidden" name="tax" value="0"> 
     151<input type="hidden" name="lc" value="GB"> 
     152<input type="hidden" name="bn" value="PP-DonationsBF"> 
     153<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online."> 
     154<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> 
     155</form> 
     156</div> 
    130157 <?php } 
    131158  
     
    138165      echo "<input name='luv' id='luv' value='luv' type='checkbox' style='width: auto;'"; 
    139166      if(get_option('cl_default_on')=="TRUE") { echo ' checked="checked" ';} 
    140       echo "/><label for='luv'><!-- Added by CommentLuv Plugin v1.91 - Andy Bailey @ www.fiddyp.co.uk-->".$cl_under_comment."</label>"; 
     167      echo "/><label for='luv'><!-- Added by CommentLuv Plugin v1.92 - Andy Bailey @ www.fiddyp.co.uk-->".$cl_under_comment."</label>"; 
    141168      return $id; // need to return what we got sent 
    142169} 
     
    268295             
    269296      // insert last post data onto the end of the comment content 
    270       if($content){   // only output if last post found 
     297      if(strstr($content,"href")){      // only output if last post found 
    271298            $comment_data['comment_content']=substr_replace($comment_data['comment_content'], "\n\n".$cl_comment_text,strlen($comment_data['comment_content']),0); 
    272299      } else { 
  • commentluv/trunk/readme.txt

    r42462 r46079  
    44Requires at least: 2.1 
    55Tested up to: 2.5 
    6 Stable tag: 1.91 
     6Stable tag: 1.92 
    77 
    88Appends a titled link to the authors last blog post on their comment giving back some luv to the people that join your discussion. 
     
    3434Go to your wordpress dashboard and go to Options/discussion and change the comment moderation option to "Hold a comment in the queue if it contains 2 links" 
    3535 
    36 = I can see the settings in the dashboard but there isn't any text below the comment form, why? 
     36= I can see the settings in the dashboard but there isn't any text below the comment form, why? = 
    3737 
    3838The text gets added when the commentform action is called, your theme needs to have this code just before the </form> tag in your comments.php file... 
    39 <?php do_action('comment_form', $post->ID); ?> 
     39&lt;?php do_action('comment_form', $post->ID); ?> 
    4040 
    4141= Why doesn't my plugin show anyone's last post? =