Support » Plugin: Cimy User Extra Fields » [Plugin: Cimy User Extra Fields] How to move descriptions below the fields box

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nobody can tell me how to move the descriptions?
    Which file do I must edit?

    This was something I wanted to do too !

    Spent some time trawling through the code, and have found a solution.

    In cimy_uef_register.php find this code:


    if ((!empty($description)) && ($type != "registration-date")) {
    echo "\t";
    echo '<p id="'.$prefix.'p_desc_'.$field_id.'" class="description">Ashley
    '.$description.'</p>';
    echo "\n";
    }

    Replace it with this:


    if ((!empty($description)) && ($type != "registration-date")) {
    // global $ash_description;
    $ash_description = "\t";
    $ash_description .= '<div style="position: relative; top:-30px;"><p id="'.$prefix.'p_desc_'.$field_id.'" class="description">
    '.$description.'</p>';
    $ash_description .= "</div>\n";
    }

    Then look for:


    else
    echo $form_object;

    And change to:


    else
    $form_object .= $ash_description;
    echo $form_object;

    This may turn out a bit messy when posted, but I hope it will make sense.

    The only problem is that this file will probably be overwritten by an update to the plugin, and I don’t have enough knowledge of WP to work out how to avoid this.

    I omitted one line in my answer to this, which needs to go immediately before the first block of replacement code, which should therefore be:


    $ash_description = "";
    if ((!empty($description)) && ($type != "registration-date")) {
    // global $ash_description;
    $ash_description = "\t";
    $ash_description .= '<div style="position: relative; top:-30px;"><p id="'.$prefix.'p_desc_'.$field_id.'" class="description">
    '.$description.'</p>';
    $ash_description .= "</div>\n";
    }

    Hope this helps someone.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Cimy User Extra Fields] How to move descriptions below the fields box’ is closed to new replies.