UserPro Forums
  • Create new topic
  • Forums
    • No replies topics
    • Newest topics
    • Forum statistics
  • Account
    • Lost password
    • Register
    • Login
  • Documentation
  • Back to main site

Community Forums

User To User Support Forum/Forums/Support Questions (UserPro)/Profile Card Logged in user

Profile Card Logged in user

authorauthor.phpprofileprofile card
  • 8 years, 11 months ago Avatarmediakliqco
    Participant

    This only happens on author.php

    8 years, 11 months ago Avataradmin
    Keymaster

    @mediakliqco

    What shortcode you tried to produce this bug? And did you use it on author template?

    8 years, 11 months ago Avataradmin
    Keymaster

    Only on author archive?

    8 years, 11 months ago Avatarmediakliqco
    Participant

    Yes only on author.php using [userpro template=view max_width=95% user=author] sorry this was happening before you made the change forgot to mention it but I thought it had to do with the 0 post issue

    8 years, 11 months ago Avataradmin
    Keymaster

    Ah so the change fixed the profiles/cards on author archive but this issue stayed from beginning?

    Ok, which permalink setting are you using in userpro?

    8 years, 11 months ago Avatarmediakliqco
    Participant

    I used

    add_filter(‘userpro_user_profile_url’, ‘userpro_author_url’, 99, 2);
    function userpro_author_url($link, $user_id) {
    return get_author_posts_url( $user_id );
    }

    8 years, 11 months ago Avatarmediakliqco
    Participant

    this what my theme link is to the author.php <?php echo get_author_posts_url($current_user->ID);?>”>

    8 years, 11 months ago Avataradmin
    Keymaster

    I’ll check this issue and report back. 🙂

    8 years, 11 months ago Avatarmediakliqco
    Participant

    Ok thanks

    8 years, 11 months ago Avataradmin
    Keymaster

    You’re welcome.

    8 years, 11 months ago Avatarmediakliqco
    Participant

    Ahmed is there a way to make this not change the followers and following links?

    add_filter(‘userpro_user_profile_url’, ‘userpro_author_url’, 99, 2);
    function userpro_author_url($link, $user_id) {
    return get_author_posts_url( $user_id );
    }

    8 years, 11 months ago Avataradmin
    Keymaster

    In your functions/api.php

    Change this

    $link = apply_filters(‘userpro_user_profile_url’, $link, $user_id);

    to:

    if ($request == ‘profile’ || $request == ‘view’) {
    $link = apply_filters(‘userpro_user_profile_url’, $link, $user_id);
    }

    This will affect only profile permalinks and keep login, register, other pages un-affected.

    Try it and let me know

    8 years, 11 months ago Avatarmediakliqco
    Participant

    Works as aspected!!!!! Thanks

    8 years, 11 months ago Avataralexwadja
    Participant

    Works great. This is a subtle but very significant feature to USERPRO. We are now totally free to create amazing profiles pages which are connected to the wordpress author archive.

    8 years, 11 months ago Avatarmediakliqco
    Participant

    Is there away to change mysite.com/?author=1 to mysite.com/username

Viewing 15 posts - 31 through 45 (of 49 total)
← 1 2 3 4 →

You must be logged in to reply to this topic.

Disclaimer

This forum is 100% free and USER to USER support only. Technical support staff doesn’t monitor this forum actively.

If you are a customer and want to get technical support from our staff please submit a technical support ticket here: UserPRO Technical Support

Recent Topics

  • Custom Badges AddOn Plugin here
  • Green Trust Cash APplication
  • How to use cash app without a bank account
  • Install Cash App on your Device [100%] by yourself | Step-by-Step Guide
  • Green Trust Cash Application

About forum

Here you can find help from UserPro plugin developers and other UserPro fellow users. Please be polite and ask your questions. NO SPAM!

Search Forums

Follow us

  • facebook
  • twitter
  • youtube
© Copyright UserPro