Plugin Directory

Changeset 124435


Ignore:
Timestamp:
06/10/2009 03:14:38 PM (17 years ago)
Author:
teamplaylotto
Message:

fix for hosts running a php version less than 5

Location:
commentluv/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commentluv/trunk/commentluv.php

    r124334 r124435  
    33Plugin URI: http://comluv.com/download/commentluv-wordpress/
    44Description: Plugin to show a link to the last post from the commenters blog by parsing the feed at their given URL when they leave a comment. Rewards your readers and encourage more comments.
    5 Version: 2.7
     5Version: 2.7.1
    66Author: Andy Bailey
    77Author URI: http://fiddyp.comluv.com/
     
    1616    {
    1717        //localization domain
    18         public $plugin_domain = 'commentluv';
    19         public $plugin_url;
    20         public $db_option = 'commentluv_options';
    21         public $cl_version = 270;
    22         public $api_url;
     18        var $plugin_domain = 'commentluv';
     19        var $plugin_url;
     20        var $db_option = 'commentluv_options';
     21        var $cl_version = 270;
     22        var $api_url;
    2323
    2424        //initialize the plugin
     
    242242                $options['badge'] = $this->plugin_url . 'images/' . $options['badge'];
    243243                if($badge_text == ''){
    244                     $badge='<a href="http://comluv.com" target="_new"><img src="' . $options['badge'] . '" border=0 alt="' . $options['show_text'] .'" title="'.$options['show_text'].'"/></a>';
     244                    $badge='<a href="http://comluv.com" target="_blank"><img src="' . $options['badge'] . '" border=0 alt="' . $options['show_text'] .'" title="'.$options['show_text'].'"/></a>';
    245245                } else {
    246                     $badge=$options['badge_text'];
     246                    $badge='<a href="http://comluv.com" target="_blank">'.$options['show_text'].'</a>';
    247247                }
    248248                echo '<div id="commentluv">' . $options['prepend'] . '<input type="checkbox" id="doluv" name="doluv" ' .
     
    333333                        $content=curl_exec($curl);
    334334                        if(!curl_error($curl)){
    335                             $data=json_decode($content);
     335                            if(function_exists(json_decode)){
     336                                $data=json_decode($content);
     337                                if($data->status != 200){
     338                                    // unsuccessful confirmation.
     339                                    // have a tantrum here if you want.
     340                                }
     341                            }
    336342                            curl_close($curl);
    337                             if($data->status != 200){
    338                                 // unsuccessful confirmation.
    339                                 // have a tantrum here if you want.
    340                             }
     343
    341344                        }
    342345                    } elseif(ini_get('allow_url_fopen')){
  • commentluv/trunk/readme.txt

    r124334 r124435  
    55Requires at least: 2.6.5
    66Tested up to: 2.7.1
    7 Stable tag: 2.7
     7Stable tag: 2.7.1
    88   
    99Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
Note: See TracChangeset for help on using the changeset viewer.