Plugin Directory

Changeset 198274


Ignore:
Timestamp:
01/26/2010 11:20:51 AM (16 years ago)
Author:
mortay
Message:

Added "www.meneame.net" as valid host. (Now check "meneame.net" and "www.meneame.net")

Location:
meneame-comments-to-wp/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • meneame-comments-to-wp/trunk/meneame-comments-ajax.php

    r70464 r198274  
    264264}
    265265add_action('wp_ajax_meneame_comments__ajax__updatecomments', 'meneame_comments__ajax__updatecomments' );
    266 ?>
     266
  • meneame-comments-to-wp/trunk/meneame-comments-cronfooter.php

    r70464 r198274  
    11<?php
    2 
    3 
    42function meneame_comments__wp_footer() {
    53    global $posts, $meneamec_url;
     
    1715add_action('wp_footer', 'meneame_comments__wp_footer');
    1816
    19 ?>
  • meneame-comments-to-wp/trunk/meneame-comments-options.php

    r169949 r198274  
    11<?php
    2 
    3 
    42### Variables Variables Variables
    53$pluginPageOptions = 'admin.php?page='.$pluginPath;
  • meneame-comments-to-wp/trunk/meneame-comments-upload-js.php

    r169949 r198274  
    9090}
    9191
    92 ?>
     92
  • meneame-comments-to-wp/trunk/meneame-comments.php

    r171735 r198274  
    66Author: Alejandro Carravedo (Blogestudio)
    77Author URI: http://blogestudio.com/
    8 Version: 0.0.17
     8Version: 0.0.18
    99Date: 2008-10-25 19:00:00
    1010*/
     
    142142        SELECT *
    143143        FROM $wpdb->comments
    144         WHERE comment_author_url LIKE 'http://meneame.net/story/%'
     144        WHERE 1 = 1
     145            AND ( comment_author_url LIKE 'http://meneame.net/story/%' OR comment_author_url LIKE 'http://www.meneame.net/story/%' )
    145146            ". ( ( $post_id != '' ) ? ' AND comment_post_ID = '.$post_id.' ' : '' ) ."
    146147            ". ( ( $lastupdate > 0 ) ? " AND comment_date >= '". date('Y-m-d H:i:s', ($lastupdate - meneame_comments__refresh_seconds()) )."'" : "" ) ."
     
    166167    $parsedCommentAuthorURL = parse_url($commentdata['comment_author_url']);
    167168   
    168     if ( $parsedCommentAuthorURL['host'] == 'meneame.net' ) {
     169    if ( in_array($parsedCommentAuthorURL['host'], array('meneame.net', 'www.meneame.net')) ) {
    169170        return meneame_comments__parseNEWS( $commentdata['comment_author_url'], $commentdata['comment_post_ID'], $commentdata['comment_approved'] ); //$commentdata['comment_author_url']);
    170171    }
     
    444445       
    445446        $parsedCommentAuthorURL = parse_url($commentdata['comment_author_url']);
    446         if ( $parsedCommentAuthorURL['host'] == 'meneame.net' ) {
     447        if ( in_array($parsedCommentAuthorURL['host'], array('meneame.net', 'www.meneame.net')) ) {
    447448           
    448449            // Cogemos los tiempos de actualizacion de cada POST
  • meneame-comments-to-wp/trunk/readme.txt

    r171735 r198274  
    22Contributors: blogestudio
    33Tags: comments, meneame, rss
    4 Tested up to: 2.8.5
    5 Stable tag: 0.0.17
     4Tested up to: 2.9.1
     5Stable tag: 0.0.18
    66Requires at least: 2.5.1
    77
    8 You can now import meneame user comments from your blog's posts that have been sent
    9 to meneame.
     8You can now import meneame user comments from your blog's posts that have been sent to meneame.
    109
    1110== Description ==
    1211
    13 This plugin adds comments from your posts sent to "[Menéame](http://meneame.net/)" to
    14 your blog's comments list automatically.
     12This plugin adds comments from your posts sent to "[Menéame](http://meneame.net/)" to your blog's comments list automatically.
    1513
    16 The system detects trackbacks from "Menéame" and starts a 7-day task that downloads
    17 the new comments, every 30 minutes, adding them to your blog.
     14The system detects trackbacks from "Menéame" and starts a 7-day task that downloads the new comments, every 30 minutes, adding them to your blog.
    1815
    1916See the [Meneame Comments to WP page](http://blogestudio.com/plugins/meneame-comments/) for further information.
     
    25222. Activate the plugin, if you've installed it in the "mu-plugins" it's not necessary.
    2623
    27 3. Now go to Settings->Menéame Comments to WP and click "Menéame Comments First Load".
    28 This will download all the comments of every post sent to meneame and it will activate
    29 a system to check for new comments in meneame for posts sent less than 7 days ago.
     243. Now go to Settings->Menéame Comments to WP and click "Menéame Comments First Load". This will download all the comments of every post sent to meneame and it will activate a system to check for new comments in meneame for posts sent less than 7 days ago.
    3025
    31264. This system works automatically, so there is no need to intervene.
     
    3328== Frequently Asked Questions ==
    3429
    35 By default your posts comments and meneame comments will be mixed in your comments template.
    36 If you want to have them seperately follow these instructions:
     30By default your posts comments and meneame comments will be mixed in your comments template. If you want to have them seperately follow these instructions:
    3731
    3832= How can I list only comments of "Menéame"? =
     
    5448== Thanks ==
    5549
    56 We would sincerely like to thank [Enrique Dans](http://www.enriquedans.com/) for giving us the idea,
    57 [Ricardo Galli](http://ricardogalli.com/) for helping us with Menéame, and last but not least ;-)
    58 all the betatesters who helped us http://blogestudio.com/2008/09/22/plugin-wordpress-comentarios-de-meneame-en-wordpress/
     50We would sincerely like to thank [Enrique Dans](http://www.enriquedans.com/) for giving us the idea, [Ricardo Galli](http://ricardogalli.com/) for helping us with Menéame, and last but not least ;-) all the betatesters who helped us http://blogestudio.com/2008/09/22/plugin-wordpress-comentarios-de-meneame-en-wordpress/
     51
     52== Changelog ==
     53
     54= 0.0.18 =
     55* Added "www.meneame.net" as valid host. (Now check "meneame.net" and "www.meneame.net")
     56
     57== Upgrade Notice ==
     58
     59= 0.0.18 =
     60All users need update.
Note: See TracChangeset for help on using the changeset viewer.