WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
How to move descriptions below the fields box (4 posts)

  1. carblanco
    Member
    Posted 1 year ago #

    Hi Marco,

    Actually when adding field descriptions they appear just before the field label so they seem to be for the previos field.
    So, How can I move descriptions to below the field having:
    - label
    - box field
    - description

    Talking about wp-login.php

    Thanks.

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. carblanco
    Member
    Posted 1 year ago #

    Nobody can tell me how to move the descriptions?
    Which file do I must edit?

  3. Ashleya
    Member
    Posted 1 year ago #

    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.

  4. Ashleya
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.