Plugin Directory

Changeset 999334


Ignore:
Timestamp:
09/30/2014 05:29:03 PM (12 years ago)
Author:
tjsantilo
Message:

Fixed public.css so that comment paras don't wrap around voting buttons

Updated plugin description on repository

Changed placeholder text for comment field to only display when there is a poll activated.

Location:
because/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • because/trunk/README.txt

    r996791 r999334  
    77Tested up to: 4.0
    88<<<<<<< .mine
    9 Stable tag: 1.3.2
     9Stable tag: 1.3.3
    1010=======
    11 Stable tag: 1.3.2
     11Stable tag: 1.3.3
    1212>>>>>>> .r969865
    1313License: GPLv2 or later
     
    1818== Description ==
    1919
    20 Content providers created comment sections to engage audiences. However, most websites see comment rates of less than 1%, and three-quarters of those are off-topic or toxic remarks.
     20Many websites contain comment sections to encourage user interaction and feedback. Unfortunately, those sections are often riddled with tiring explanations, narrow-minded views and potentially toxic remarks.
    2121
    22 Because is a new commenting platform that increases audience engagement by providing new avenues for channelling audience discussions.
     22At Because we see this as an opportunity for change. With our “poll and discuss” method, users are able to submit their own ideas, thoughts and feelings within a given character limit. This encourages clear and concise responses to every post.  In addition, users benefit from a platform that welcomes many perspectives, giving users a voice in commenting they've never had before.
    2323
    24 At Because, we've found a way to increase audience engagement and decrease irrelevant interactions.
    25 We empower the audience to give their opinion, and give content providers the discussion their content deserves!
     24But we’re not stopping there. We recognize the potential for content managers to use information provided by a more engaged user base  for advertising, site traffic monitoring and content feedback. By better serving users, Because can better serve sites.
     25
     26We’re giving users a voice. And websites a choice. 
    2627
    2728== Installation ==
  • because/trunk/public/assets/css/public.css

    r996791 r999334  
    233233    margin-bottom:0px;
    234234    word-wrap:break-word;
    235    
     235    margin-left:45px;
    236236}
    237237
     
    392392{
    393393    border-bottom: 1px solid #ccc;
    394     min-height: 90px;
     394    min-height: 100px;
    395395}
    396396
     
    401401    padding:0;
    402402    height:auto;
    403     width:20px;
     403    width:20px!important;
    404404}
    405405
  • because/trunk/public/assets/js/public.js

    r996791 r999334  
    164164}, 2000);
    165165
    166 $('#social_polling_see_results_wrapper').html('You Already Voted');
     166//$('#social_polling_see_results_wrapper').html('You Already Voted');
    167167               
    168168
     
    229229
    230230   
    231 
    232     document.getElementById('comment').placeholder = 'Why did you vote like that?';
    233 
    234    
    235  
     231//change placeholder text, commented out for now but might need it again
     232
     233    //document.getElementById('comment').placeholder = 'Why did you vote like that?';
     234
     235   
     236 $("#textarea")
     237  .focus(function() {
     238        if (this.value === this.defaultValue) {
     239            this.value = '';
     240        }
     241  })
     242  .blur(function() {
     243        if (this.value === '') {
     244            this.value = this.defaultValue;
     245        }
     246});
    236247   
    237248
  • because/trunk/public/class-social-polling.php

    r996791 r999334  
    455455           
    456456           
    457             //Lets take our post_id and use this to get our to possible answers.
     457            //Lets take our post_id and use this to get our two possible answers.
    458458            $answers = array();
    459459            $answer_1 = get_post_meta($post_id,'_social_polling_answer_one_field',true );
     
    587587                <div id="social_polling_see_results_wrapper"><?php echo _e( 'Vote to see results', 'myplugin_textdomain' ); ?></div>
    588588           
    589            
     589           <div id="social_polling_already_voted_wrapper">Note: You have already voted on this poll</div>
    590590           
    591591           
  • because/trunk/public/includes/templates/sp_comments.php

    r952982 r999334  
    8787
    8888    <?php comment_form(); ?>
    89 
     89        $active = get_post_meta($post->ID, 'social_polling_active_field', true ) == 'yes' ? true : false;
     90if ($active){
     91$args = array(
     92'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" value="abcdefghj">Why did you vote the way you did?</textarea></p>'
     93);
     94comment_form($args);
     95}
     96else{
     97comment_form($args);
     98}
    9099</div><!-- #comments -->
  • because/trunk/social-polling.php

    r996791 r999334  
    3434
    3535<<<<<<< .mine
    36  * Version:           1.3.2
     36 * Version:           1.3.3
    3737=======
    38  * Version:           1.3.2
     38 * Version:           1.3.3
    3939>>>>>>> .r969865
    4040
Note: See TracChangeset for help on using the changeset viewer.