Plugin Directory

Changeset 2655949


Ignore:
Timestamp:
01/11/2022 03:41:05 PM (4 years ago)
Author:
Sarah_Dev
Message:

1.6.4

  • Released 1/11/22
  • Successfully tested against WordPress 5.8.3
  • Fixed: When field format is "Single Checkbox => Show Label Only," empty string arrays were being displayed. This resulted in gibberish being shown when the user did not check the box. Now the field value will only be shown if there is a value to display.
  • Enhancement: Added two new format options: "Single Checkbox => Show Label and Value" and "Single Checkbox => Show Value Only"
Location:
dynamic-user-directory/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dynamic-user-directory/trunk/dynamic-user-directory.php

    r2527298 r2655949  
    33* Plugin URI: http://sgcustomwebsolutions.com
    44* Description: Creates an alphabetically sorted user directory that will format and display specified user meta data such as name, address, and email.
    5 * Version: 1.6.3
     5* Version: 1.6.4
    66* Author: Sarah Giles
    77* Author URI: http://sgcustomwebsolutions.com
  • dynamic-user-directory/trunk/includes/admin.php

    r2527298 r2655949  
    19131913                            <OPTION value="11" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "11") ? "SELECTED" : ""; ?>>Multiple Checkboxes => Bulleted (Show Label Only)</OPTION>                           
    19141914                            <OPTION value="8" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "8") ? "SELECTED" : ""; ?>>Multiple Checkboxes => Comma Delimited (Show Label Only)</OPTION>             
     1915                            <OPTION value="13" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "13") ? "SELECTED" : ""; ?>>Single Checkbox => Show Label and Value</OPTION>
    19151916                            <OPTION value="14" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "14") ? "SELECTED" : ""; ?>>Single Checkbox => Show Label Only</OPTION>
     1917                            <OPTION value="15" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "15") ? "SELECTED" : ""; ?>>Single Checkbox => Show Value Only</OPTION>
    19161918                            <OPTION value="16" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "16") ? "SELECTED" : ""; ?>>Date => dd.mm.yyyy hh:mm:ss</OPTION>
    19171919                            <OPTION value="17" <?php echo (!empty($dud_options['dud_fld_format_' . $inc]) && $dud_options['dud_fld_format_' . $inc] == "17") ? "SELECTED" : ""; ?>>Date => dd.mm.yy hh:mm:ss</OPTION>
  • dynamic-user-directory/trunk/includes/core.php

    r2527298 r2655949  
    19341934    {
    19351935        $non_array_numeric_idx = false;
    1936        
     1936               
    19371937        if(strlen($user_meta_fld) > 2 && substr($user_meta_fld, 0, 2) === "a:")
    19381938        {
    19391939            $list_items = unserialize(stripslashes($user_meta_fld));
    19401940           
    1941             if(empty($list_items)) return $user_meta_fld;
     1941            //if(empty($list_items)) return $user_meta_fld;
     1942            if(empty($list_items)) return "";
    19421943           
    19431944            foreach($list_items  as $key => $value)
     
    19481949                    $value = ucwords($value);
    19491950                }
    1950                    
     1951                               
    19511952                if (is_string($key))
    19521953                {
     
    20252026                   
    20262027                    $key_val_array = true;
    2027                    
     2028                                       
    20282029                    /*if(sizeof($user_meta_fld) == 1)
    20292030                        $parsed_val .= $value;
  • dynamic-user-directory/trunk/readme.txt

    r2527413 r2655949  
    55Tags: user directory, MemberPress, BuddyPress, Cimy User Extra Fields, user registration, user meta fields, profile fields, member directory, website directory, directory, user listing, users, members, user profile, user profiles
    66Requires at least: 3.0.1
    7 Tested up to: 5.7.1
    8 Stable tag: 1.6.3
     7Tested up to: 5.8.3
     8Stable tag: 1.6.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9898== Changelog ==
    9999
     100= 1.6.4 =
     101- Released 1/11/22
     102- Successfully tested against WordPress 5.8.3
     103- Fixed: When field format is "Single Checkbox => Show Label Only," empty string arrays were being displayed. This resulted in gibberish being shown when the user did not check the box. Now the field value will only be shown if there is a value to display.
     104- Enhancement: Added two new format options: "Single Checkbox => Show Label and Value" and "Single Checkbox => Show Value Only"
     105
    100106= 1.6.3 =
    101107- Released 5/7/21
Note: See TracChangeset for help on using the changeset viewer.