Plugin Directory

Changeset 1007484


Ignore:
Timestamp:
10/14/2014 06:27:00 PM (11 years ago)
Author:
tjsantilo
Message:

Updated class-sp_comments.php per Clay's fixes.

Location:
because/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • because/trunk/README.txt

    r1007332 r1007484  
    77Tested up to: 4.0
    88<<<<<<< .mine
    9 Stable tag: 1.3.8
     9Stable tag: 1.3.9
    1010=======
    11 Stable tag: 1.3.8
     11Stable tag: 1.3.9
    1212>>>>>>> .r969865
    1313License: GPLv2 or later
  • because/trunk/public/includes/class-sp_comments.php

    r1007332 r1007484  
    177177            $query = "SELECT meta_key FROM $table WHERE post_id='" . $post_id . "' AND meta_value='" . $vote_val->vote_value . "'";
    178178            $ans_choice = $wpdb->get_row($query);
    179                    
     179            add_comment_meta($comment_id,'test','test');   
    180180
    181181            // add vote identifier to the comment
     
    183183                add_comment_meta($comment_id,'vote_choice','one');
    184184            }
    185             elseif ($ans_choice->meta_key == "social_polling_answer_two_field" || $ans_choice->meta_key == "social_polling_answer_two_field"){
     185            elseif ($ans_choice->meta_key == "social_polling_answer_two_field" || $ans_choice->meta_key == "_social_polling_answer_two_field"){
    186186                add_comment_meta($comment_id,'vote_choice','two'); 
    187187            }
     
    189189    }
    190190
    191    
    192191
    193192      /**
     
    15501549        $comment_ID = get_comment_ID();
    15511550   
    1552         echo "<p";
     1551        $retVal = "<p";
    15531552       
    15541553        $test = get_comment_meta($comment_ID,"vote_choice",true);
    15551554
    15561555        if ($test == "one"){
    1557             echo " class='comment_voted_a'";
     1556            $retVal = $retVal . " class='comment_voted_a'";
    15581557        }
    15591558        elseif ($test == "two") {
    1560             echo " class='comment_voted_b'";
     1559            $retVal = $retVal . " class='comment_voted_b'";
    15611560        }
    15621561       
    1563         echo ">$comment_text</p>";
     1562        $retVal = $retVal . ">$comment_text</p>";
     1563
     1564        return $retVal;
    15641565}
    15651566
  • because/trunk/social-polling.php

    r1007332 r1007484  
    3434
    3535<<<<<<< .mine
    36  * Version:           1.3.8
     36 * Version:           1.3.9
    3737=======
    38  * Version:           1.3.8
     38 * Version:           1.3.9
    3939>>>>>>> .r969865
    4040
Note: See TracChangeset for help on using the changeset viewer.