Changeset 46079
- Timestamp:
- 05/15/08 18:55:46 (2 months ago)
- Files:
-
- commentluv/trunk/commentluv.php (modified) (5 diffs)
- commentluv/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
commentluv/trunk/commentluv.php
r42464 r46079 2 2 Plugin Name: Commentluv 3 3 Plugin 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.9 14 Description: 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) 5 Version: 1.92 6 6 Author: Andy Bailey 7 7 Author URI: http://www.fiddyp.co.uk/ … … 11 11 ********************************************************************* 12 12 updates: 13 1.92 - fix case of 1 being output for feed return value and added donate button 13 14 1.91 - fix option change for character encoding (forgot to add extra option to hidden field in option page html) 14 15 1.9 - changed retrieve url to fiddyp.com site because of hosting problem with commentluv.com … … 127 128 <input type="hidden" name="action" value="update" /> 128 129 <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/> 141 Fiddyp.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> 130 157 <?php } 131 158 … … 138 165 echo "<input name='luv' id='luv' value='luv' type='checkbox' style='width: auto;'"; 139 166 if(get_option('cl_default_on')=="TRUE") { echo ' checked="checked" ';} 140 echo "/><label for='luv'><!-- Added by CommentLuv Plugin v1.9 1- 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>"; 141 168 return $id; // need to return what we got sent 142 169 } … … 268 295 269 296 // insert last post data onto the end of the comment content 270 if( $content){ // only output if last post found297 if(strstr($content,"href")){ // only output if last post found 271 298 $comment_data['comment_content']=substr_replace($comment_data['comment_content'], "\n\n".$cl_comment_text,strlen($comment_data['comment_content']),0); 272 299 } else { commentluv/trunk/readme.txt
r42462 r46079 4 4 Requires at least: 2.1 5 5 Tested up to: 2.5 6 Stable tag: 1.9 16 Stable tag: 1.92 7 7 8 8 Appends a titled link to the authors last blog post on their comment giving back some luv to the people that join your discussion. … … 34 34 Go 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" 35 35 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? = 37 37 38 38 The 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 <?php do_action('comment_form', $post->ID); ?> 40 40 41 41 = Why doesn't my plugin show anyone's last post? =
