Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 244 total)
  • Author
    Posts
  • in reply to: Making pages within a group #46059
    YasmineYasmine
    Participant

    Almost. I have a multi-step frontend form. I have one tab which asks for cloneable group fields. I am only asking you the best approach to turn the cloneable group field into pages (since it is nested I can't use tabs). Please can you share the approach you would use since I can't use tabs. Should I :
    1. Use the custom html field to create divs
    2. Use individual classes

    in reply to: Checkbox tree on frontend form #45985
    YasmineYasmine
    Participant

    Ah yes working in admin. My issue was frontend - so I will await the fix. Thanks!

    in reply to: Trying to update relationship #45856
    YasmineYasmine
    Participant

    Thanks Peter, my save_post fires correctly - no issues with the hook not working, and the relationship update is executed (just doesn't work).

    I only need to fire this occasionally, the init hook seems a little excessive. But if that's the only option..

    in reply to: Trying to update relationship #45801
    YasmineYasmine
    Participant

    To clarify, I am facing the same issue with all plugins disabled and triggering directly from Meta Box form - [mb_user_profile_info id="new-institution"]. It creates the post, but does not create the relationship, even though it updates all the other custom fields

    in reply to: Trying to update relationship #45800
    YasmineYasmine
    Participant

    Ok so I realise it works if I save it twice. Even with plugins it works. But it needs to be saved twice?

    What I am doing:
    * On user edit - create a new CPT post (on a add_action('profile_update', 'create_university_from_user_data', 10, 2); hook) - this works
    * After post is created - add the relationship to the user to the post (still not working)

    in reply to: Trying to update relationship #45785
    YasmineYasmine
    Participant

    Hi on a save_post - no it doesn't work. On an init yes it works, but I don't really want it running on an init. Does it work for you on a save_post? What could be the issue?

    All the other fields are able to update on a save_post. Just not the relationships.

    in reply to: Trying to update relationship #45760
    YasmineYasmine
    Participant

    I can set on an admin_init - so its definitely just not working with the hook. Which hook do you recommend?

    YasmineYasmine
    Participant

    Final request: Can you add the bookmark icon as an option to choose ?

    YasmineYasmine
    Participant

    Of course as soon as I write this I figure out its span

    YasmineYasmine
    Participant

    The class is being added. I can successfully change the background colour using my custom code.

    But I still cannot change the text. In the inspector, I see that the correct colour is being applied:

    .research--sdg-mb, .research--sdg-mb a, .research--sdg-mb svg {
    color: #00689D !important;
    fill: #00689D !important;
    }

    How do I target the text? It is not in the inspector so I can't see how the text was targeted.

    YasmineYasmine
    Participant

    Hi thanks - I did try that: [mbfp-button class="research--sdg" show_count="false" add="Save for later" Icon="star" added="Saved" ]

    But it still doesn't let me change the colour of the icon and text - I have some code to change the colour of certain elements depending on the blog type so I set a $custom_color to a shortcode [custom_link_color] - for all the other elements assigned theresearch--sdg - it sets them as $custom_color but it does not work for this button.

    in reply to: Edited group field bool #45307
    YasmineYasmine
    Participant

    I do see the $_POST array when do that. But when I try compare it:

    $old_values = rwmb_meta('academicreference_group', ['object_type' => 'post'], $post_ID);
    $new_values = $_POST['academicreference_group'] ?? [];

    Then the $_POST returns empty. And so I can't then compare the two

    in reply to: Select_advanced not loading #45306
    YasmineYasmine
    Participant

    You add a:

    ` if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
    return;
    }`

    Ok ignore me

    in reply to: User permissions #45305
    YasmineYasmine
    Participant
    in reply to: Select_advanced not loading #45304
    YasmineYasmine
    Participant

    The problematic code is:

    /* Restrict dashboard access to non admin */
    add_action('admin_init', 'restrict_dashboard_access');
    function restrict_dashboard_access() {
        if (!current_user_can('manage_options')) {
            wp_safe_redirect(home_url());
            exit;
        }
    }

    So dashboard access is needed to see the advanced search field and favourite posts (same issue as my other ticket: https://support.metabox.io/topic/user-permissions/ )

    With manage_options granted, it works.

    I want to limit backend access, but I want this to work. What can I do?

Viewing 15 posts - 31 through 45 (of 244 total)