Search Results for 'custom field'

Viewing 12 results - 136 through 147 (of 147 total)
  • Author
    Search Results
  • #753

    Joy
    Buyer

    Hi, I had this snippet activated for admin only fields. Do I still need to use it?

    add_filter( 'uwp_account_include_admin_use_only_fields', '__return_true' );

    I think this was added in the update. Now I am using this snippet:

    add_filter('uwp_form_input_field_text', 'custom_uwp_form_input_field_text', 10, 3);
    function custom_uwp_form_input_field_text($field, $value, $form_type) {
        if ($form_type == 'account') {
            if (
                $field->htmlvar_name == 'uwp_account_first_name'
                || $field->htmlvar_name == 'uwp_account_last_name'
                || $field->htmlvar_name == 'uwp_account_username'
            ) {
                $field->for_admin_use = '1';
            }
        }
        return $field;
    }

    Thank you.

    #738
    Resolved

    Topic: Customize Forms

    Hello,

    I want to customize the forms in the following ways:

    – Align some of the text on forms in a grid. For instance, on the Login form – can the link: ‘Forgot Password?’ be left-aligned to be on top of the text ‘Not a Member?’ and the link ‘Create Account’ be in line with ‘Not a Member?’? Similarly, on the Forgot Password form can the link “Login’ be left-aligned to be on top of the text ‘Not a Member?’ and ‘Create Account’ be in line with ‘Not a Member?’? Currently, the word Account of ‘Create Account’ goes on to occupy a third row – see attached. If ‘Create Account’ and ‘Not a Member?’ cannot fit in the same line, can I move the entire phrase (Create Account) underneath Not a Member? To make it aligned to a grid.

    – Branding on forms: I want to change the form color to white with a black border and include a logo (replacing the circular person icon).

    – Include editable postal-address (including zip code) fields on the profile display page.

    To change the look and feel of the forms, the plugin docuemntation advises to create a folder named ‘userswp’ inside the active child theme and copy the desired template in it. Could I request for few more steps please?

    1. Should the ‘userswp’ folder be created under public_html/wp-content/themes/childtheme/ or under public_html/wp-content/themes/childtheme/inc?
    2. Could you please advise what lines of code inside the php files should be replaced with what to do the above changes?

    Thank you

    #709

    In reply to: Username Privacy


    Giri
    Expired Member
    Post count: 3155

    Hi Joy,

    I have added a filter.

    You would need to download the latest. I think stiofan is gonna release in wp.org.

    So you can get it from there.

    Once you have the latest version, add this snippet.

    
    
    add_filter('uwp_form_input_field_text', 'custom_uwp_form_input_field_text', 10, 3);
    function custom_uwp_form_input_field_text($field, $value, $form_type) {
        if ($form_type == 'account') {
            if (
                $field->htmlvar_name == 'uwp_account_first_name'
                || $field->htmlvar_name == 'uwp_account_last_name'
                || $field->htmlvar_name == 'uwp_account_username'
            ) {
                $field->for_admin_use = '1';
            }
        }
        return $field;
    }

    Thanks

    #689

    In reply to: form builder


    Guust
    Moderator
    Post count: 29970

    HTML variable name is explained when you hover over the info icon, see image.

    A URL custom field will only show in the “Profile Side” if
    * contains data entered by the user
    * is set to show in the “Profile Side” in “Show in what locations”
    * is “Active”
    * is not set to be “Include this field ONLY in register form:”

    Thanks

    #475

    In reply to: Disabling Text Box


    Giri
    Expired Member
    Post count: 3155

    Ok Thanks.

    Few more questions.

    1) When you mean users page, are you talking about the /users page?

    2) If yes, then you should know custom fields are hidden in the grid view. Have you tried the list view?

    #461

    In reply to: Disabling Text Box


    Giri
    Expired Member
    Post count: 3155

    Hi there,

    Thanks for your patience.

    I’m about to work on this feature. But I need few details for better understanding of your requirement.

    I can add a “for admin use only” setting field in the form builder. But can you explain how you want it to behave?

    Lets call this custom field X and you have set this to “for admin use only”.

    Do you want this X field available in register form and disable only the editing privilege for the user?

    OR

    You want this field completely available only to admin? Meaning user cannot submit any value for this field but only set by you.

    If it is the latter, can you give me an example / use case ?

    Thanks


    Giri
    Expired Member
    Post count: 3155

    Hi Trex, This has nothing to do with UsersWP.

    You can most probably use bbPress hook to make it work.

    Like this.

    
    
    add_action('bbp_theme_after_reply_author_details', 'bbp_uwp_meta');
    function bbp_uwp_meta() {
    	$user_id = bbp_get_reply_author_id();
    	$value = uwp_get_usermeta($user_id, 'uwp_account_email', '');
    	echo $value;
    }

    Change email in the uwp_account_email with your custom field key.

    Thanks


    Trex888
    Free User

    Hi there,

    I’m using the UsersWP plugin with bbPress and GeoDirectory. Wondering if it’s possible to have certain registration fields appear in the left side Author section of bbPress? So currently it shows member name, date that they registered and post count. I’d like to have info displayed in the section from one of my custom registration text fields. Image attached of the bbPress section I’m referring to.

    Thanks for any help with this,

    T

    #440

    Dotty Directory
    Buyer
    Post count: 254

    Excellent, including these immediately!

    Is it possible to add tags in the Admin New User notification? Like custom tags, based on the fields we have created 🙂

    I ask for phone numbers for my adverts, to phone them if there is an issue with the advert 🙂

    But could we also add IP addresses? I used to get foreign spam until I’ve blocked countries. But now they are just using “London VPN”, finding it difficult to block them.

    #277

    In reply to: Create new tabs


    Giri
    Expired Member
    Post count: 3155

    Hi Derek,

    I hope you are talking about non UsersWP fields when you mean custom tabs.

    Its possible. But it requires some code. You need to add it in child theme functions.php or use code snippets plugin to add the code.

    Here is the sample code.

    
    
    add_filter('uwp_profile_tabs', 'uwp_add_profile_custom_tabs', 10, 3);
    function uwp_add_profile_custom_tabs($tabs, $user, $allowed_tabs) {
        
        $tabs['xxxxx']  = array(
            'title' => 'Hello',
            'count' => 1
        );
        
        return $tabs;
    }
    
    add_action('uwp_profile_xxxxx_tab_content', 'uwp_add_profile_xxxxx_tab_content');
    function uwp_add_profile_xxxxx_tab_content($user) {
        echo "Hello World";
    }

    Replace xxxxx with you tab id. example hello_world

    Hope that helps.

    #271

    In reply to: Create new tabs


    Guust
    Moderator
    Post count: 29970

    Create a new fieldset, make sure it is public and set to Profile page own tab and Profile Side.
    Then create a custom field and place it below the fieldset. Make sure it is active, and set to Profile page own tab and Profile Side.

    #208

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The header image will be removed from the next release of SD, or oyu can add this custom field to the profile page “sd_remove_head”=1

    What image links are u referring to?

    Stiofan

Viewing 12 results - 136 through 147 (of 147 total)