WordPress.org

Plugin Directory

Changeset 511430


Ignore:
Timestamp:
02/27/12 23:33:19 (2 years ago)
Author:
xnau
Message:

several minor fixes:

  • HTML emails can be switched off in settings; possible confict with other plugins
  • fixed broken link to image on some systems
  • fixed plugin CSS affecting rich text fields on other admin pages
  • removed PHP short open code in list class file
  • group name (not title) is no longer changeable: it caused orphaned fields to disappear
Location:
participants-database/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • participants-database/trunk/PDb-admin.css

    r505240 r511430  
    88    visibility:hidden; 
    99} 
    10 .wp-editor-wrap { 
     10.participants-database_page_participants-database-edit_participant .wp-editor-wrap { 
    1111  width: 500px; 
    1212} 
  • participants-database/trunk/classes/PDb_List.class.php

    r508767 r511430  
    695695        if ( self::$backend ) : ?> 
    696696        <td> 
    697           <a href="admin.php?page=<?php echo Participants_Db::PLUGIN_NAME ?>-edit_participant&action=edit&id=<?= $value['id']?>"><?php _e( 'Edit', Participants_Db::PLUGIN_NAME )?></a> | 
    698           <input type="checkbox" name="pid[]" value="<?= $value['id']?>" onClick="addSelects( this.checked )"> 
     697          <a href="admin.php?page=<?php echo Participants_Db::PLUGIN_NAME ?>-edit_participant&action=edit&id=<?php echo $value['id']?>"><?php _e( 'Edit', Participants_Db::PLUGIN_NAME )?></a> | 
     698          <input type="checkbox" name="pid[]" value="<?php echo $value['id']?>" onClick="addSelects( this.checked )"> 
    699699        </td> 
    700700        <?php endif; // delete check 
  • participants-database/trunk/classes/PDb_Settings.class.php

    r508767 r511430  
    220220          'help_text'   => __('enable the rich text editor on textarea fields (works only for logged-in WP users)', Participants_Db::PLUGIN_NAME ), 
    221221          'value'       => 0, 
     222          'options'     => array( 1, 0 ), 
     223          ), 
     224        ); 
     225 
     226    $this->plugin_settings[] = array( 
     227        'name'       =>'html_email', 
     228        'title'      =>__('Send HTML Email', Participants_Db::PLUGIN_NAME ), 
     229        'group'      =>'main', 
     230        'options'    => array 
     231          ( 
     232          'type'        => 'checkbox', 
     233          'help_text'   => __('use rich text in plugin emails? If you turn this off, be sure to remove all HTML tags from the email body settings for the plugin.', Participants_Db::PLUGIN_NAME ), 
     234          'value'       => 1, 
    222235          'options'     => array( 1, 0 ), 
    223236          ), 
  • participants-database/trunk/manage_fields.php

    r500687 r511430  
    401401                        break; 
    402402                         
     403                    case 'name': 
     404                        $type = 'text'; 
     405                        $attributes = array('readonly'=>'readonly'); 
     406                         
    403407                    default: 
    404408                        $type = 'text'; 
  • participants-database/trunk/participants-database.php

    r508767 r511430  
    55Description: Plugin for managing a database of participants, members or volunteers 
    66Author: Roland Barker 
    7 Version: 1.3.2 
     7Version: 1.3.3 
    88Author URI: http://xnau.com  
    99License: GPL2 
     
    174174 
    175175        // set the email content type to HTML 
    176         add_filter('wp_mail_content_type',create_function('', 'return "text/html";')); 
     176        if ( 0 != self::$plugin_options['html_email'] ) add_filter('wp_mail_content_type',create_function('', 'return "text/html";')); 
    177177        add_filter('query_vars', array( __CLASS__, 'register_queryvars') ); 
    178178 
     
    866866         
    867867        if ( ! file_exists( $filename ) ) { 
    868                      
    869             return get_bloginfo('wpurl').DIRECTORY_SEPARATOR.self::$plugin_options['image_upload_location'].basename( $filename ); 
     868             
     869            $fileURI = get_bloginfo('wpurl').'/'.self::$plugin_options['image_upload_location'].basename( $filename ); 
     870                     
     871            return $fileURI ; 
    870872             
    871873        } else return $filename; 
  • participants-database/trunk/readme.txt

    r508771 r511430  
    160160== Changelog == 
    161161 
     162= 1.3.3 = 
     163* HTML emails can be switched off in settings; possible confict with other plugins 
     164* fixed broken link to image on some systems 
     165* fixed plugin CSS affecting rich text fields on other admin pages 
     166* removed PHP short open code in list class file 
     167* group name (not title) is no longer changeable: it caused orphaned fields to disappear 
     168 
    162169= 1.3.2 = 
    163170* moved templates and image uploads defaults out of the plugin directory 
     
    319326== Upgrade Notice == 
    320327 
     328= 1.3.3 = 
     329Bug fix release affecting several minor problems: image path; email plugin conflicts; admin CSS; group name change issues 
     330 
    321331= 1.3.2 = 
    322332Fixes for several minor issues; image files are now portable 
Note: See TracChangeset for help on using the changeset viewer.