• Espa?±ol | English

    WP RSS Dfirefox es un plugin para WordPress para mostrar el contador de descargas de Mozilla Firefox en cualquier lugar de nuestro blog hecho con WordPress.

    Como funciona?

    Utiliza un analizador de XML para leer el feed RSS y mostrar el n?omero de descargas de Mozilla Firefox.

    De donde lo descargo?

    aqu?-.
    English

    WP RSS Dfirefox is a plugin for WordPress and shows the Mozilla Firefox Download counter in any part of our WordPress blog.

    How does it work?

    It uses a XML parser to read the RSS feed and show the number of downloads of Mozilla Firefox.

    Where can i download it?

    here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I get this error message:

    Warning: fopen(): URL file-access is disabled in the server configuration in /home/.milkyheater/poffutt/paulaoffutt.com/blog/wp-content/plugins/wp-rssdfirefox.php on line 22

    Warning: fopen(https://www.spreadfirefox.com/download_counter.php?ff=1): failed to open stream: no suitable wrapper could be found in /home/.milkyheater/poffutt/paulaoffutt.com/blog/wp-content/plugins/wp-rssdfirefox.php on line 22
    Error al leer los datos del feed.

    I have yet to get any of the Firefox download counters to work. Must be bad karma.

    your server (dreamhost?) doesn’t allow fopen() to open remote urls, so you will probably need to find something that uses curl instead.

    Here’s some code that works with dreamhost…

    <?php
    /*
    Plugin Name: Firefox download counter
    Description: Shows the download counter of Mozilla Firefox.
    use: <?php echo ff_counter(); ?> anywhere on your page. your can also pass a sprintf str .
    */
    function get_ff_count() {
    $ch = curl_init('https://www.spreadfirefox.com/download_counter.php?ff=1');
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    $xml = curl_exec($ch);
    curl_close($ch);
    if($xml) {
    preg_match( '@(?:<description>)([0-9,]+)(?:</description>)@', $xml,$match);
    return $match[0];
    }
    return false;
    }

    function ff_counter($outputstr = null){
    if(is_null($outputstr))
    $outputstr = '%s people have downloaded Firefox.';
    if($count = get_ff_count())
    return sprintf($outputstr, $count);
    return false;
    }
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP RSS DFirefox’ is closed to new replies.