Plugin Directory

Changeset 2589871


Ignore:
Timestamp:
08/27/2021 02:08:03 PM (5 years ago)
Author:
outerbridge
Message:

v4.1.1 - 210827 - Fixed Q&A updates on the admin page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • humancaptcha/trunk/outerbridge-humancaptcha.php

    r2589865 r2589871  
    55Description: HumanCaptcha uses questions that require human logic to answer them and which machines cannot easily answer.
    66Author: Outerbridge
    7 Version: 4.1.0
     7Version: 4.1.1
    88Author URI: https://outerbridge.co.uk/
    99Text Domain: humancaptcha
     
    1414/**
    1515 *
     16 *  v4.1.1  210827  Fixed Q&A updates on the admin page
     17 *
    1618 *  v4.1.0  210827  Fixed problem with comments form validation.  Working with WP5.8
    17  *
    1819 *  v4.0.0  210611  Fixed session issue, thanks to @tmuk.  Working with WP5.7
    1920 *  v3.1    200116  Improved foreign character handling
     
    5253   
    5354    // version
    54     public $obr_humancaptcha_version = '4.1.0';
     55    public $obr_humancaptcha_version = '4.1.1';
    5556   
    5657    function __construct(){
     
    316317            <thead>
    317318                <tr>
    318                     <th><?php _e('Number', 'humancaptcha') ?></th>
    319                     <th><?php _e('Question', 'humancaptcha') ?></th>
    320                     <th><?php _e('Answer', 'humancaptcha') ?></th>
    321                     <th>&nbsp;</th>
    322                     <th>&nbsp;</th>
     319                    <th style="width: 10%;"><?php _e('Number', 'humancaptcha') ?></th>
     320                    <th style="width: 80%;">
     321                        <span style="display: inline-block; width: 44%;"><?php _e('Question', 'humancaptcha') ?></span>
     322                        <span style="display: inline-block; width: 34%;"><?php _e('Answer', 'humancaptcha') ?></span>
     323                    </th>
     324                    <th style="width: 10%;">&nbsp;</th>
    323325                </tr>
    324326            </thead>
     
    332334                            <tr>
    333335                        <?php endif; ?>
    334                                 <td style="width: 75px;"><?php echo $counter; ?></td>
    335                                 <td><input type="text" name="question" value="<?php echo stripslashes($row->fld_questions); ?>" style="width: 100%;" /></td>
    336                                 <td><input type="text" name="answer" value="<?php echo stripslashes($row->fld_answers); ?>" style="width: 100%;" /></td>
     336                                <td><?php echo $counter; ?></td>
    337337                                <td>
    338338                                    <form method="post" action="<?php echo $page; ?>">
     339                                        <input type="text" name="question" value="<?php echo stripslashes($row->fld_questions); ?>" style="width: 44%;" />
     340                                        <input type="text" name="answer" value="<?php echo stripslashes($row->fld_answers); ?>" style="width: 34%;" />
    339341                                        <input type="hidden" name="ref" value="<?php echo $row->fld_ref; ?>" />
    340                                         <input type="submit" name="updateqanda" class="button" value="<?php _e('Update Q & A', 'humancaptcha'); ?>" />
     342                                        <input type="submit" name="updateqanda" class="button" value="<?php _e('Update Q & A', 'humancaptcha'); ?>" style="width: 20%;" />
    341343                                    </form>
    342344                                </td>
     
    364366                                        echo $question;
    365367                                    }
    366                                     ?>" style="width: 100%;" />
    367                             </td>
    368                             <td>
     368                                    ?>" style="width: 44%;" />
    369369                                <input type="text" name="answer" value="<?php
    370370                                    if (isset($answer)){
    371371                                        echo $answer;
    372372                                    }
    373                                     ?>" style="width: 100%;" />
    374                             </td>
    375                             <td>
    376                                 <input type="submit" name="addqanda" class="button" value="<?php _e('Add New Q & A', 'humancaptcha'); ?>" />
     373                                    ?>" style="width: 34%;" />
     374                                <input type="submit" name="addqanda" class="button" value="<?php _e('Add New Q & A', 'humancaptcha'); ?>" style="width: 20%;" />
    377375                            </td>
    378376                            <td>&nbsp;</td>
Note: See TracChangeset for help on using the changeset viewer.