Minor bug in add_to_comment_form.php
-
When Rating is not allowed you still see the div box: makeRateHolder
To fix it:
OPEN inc/add_to_comment_form.phpFIND
$ratingTitle = $custom['ratingTitle'][0]; $ratingDesc = $custom['rateDesc'][0];
ADD AFTER
$rating_status = $custom["rating_status"][0];
FIND
echo '<div class = "makeRateHolder">'; echo '<h3>'.$ratingTitle.'</h3>'; echo '<p>'.$ratingDesc.'</p>';
REPLACE WITH
if($rating_status == 'checked'){ echo '<div class = "makeRateHolder">'; echo '<h3>'.$ratingTitle.'</h3>'; echo '<p>'.$ratingDesc.'</p>'; }
FIND
echo '<textarea id="JsonRate" class="JsonRate" name="JsonRateResult" placeholder="JsonRate" style="display:none;"></textarea>'; echo '</div>';
REPLACE WITH
if($rating_status == 'checked'){ echo '<textarea id="JsonRate" class="JsonRate" name="JsonRateResult" placeholder="JsonRate" style="display:none;"></textarea>'; echo '</div>'; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Minor bug in add_to_comment_form.php’ is closed to new replies.