This topic has 21 replies, 2 voices, and was last updated 6 years by wholistic.

  • Author
  • #203429
     wholistic
    Participant

    Hello,

    I need a quick answer to the following question. How do I create a link on a page (not in the menu) to members profile? What would be the dynamic URL?

    In the theme menu settings is not a link, but Navigation Label – Profile. I also checked your article here:

    https://archived.seventhqueen.com/kleo/article/building-dynamic-buddypress-menu

    but that doesnt work for me.

    I need a sample URL that will lead to each logged in member’s profile, and specifically leading them to edit/update their profile.

    #203430
     Kieran_SQ
    Moderator

    Hi,

    If this is to be used in a page or post then you can use the plugin I released a couple of months ago on WordPress.org

    You can find it here for free https://wordpress.org/plugins/profile-links-for-buddypress/

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203431
     wholistic
    Participant

    Thank you for your quick response. I just installed the plugin. How do I set up the links? I cannot find where to define the value for the url.

    #203432
     Kieran_SQ
    Moderator

    Hi,

    There is a description of usage examples on the link that I sent to you.

    Usage

    COPY CODE
    [profile url="/messages/" text="Inbox"]
    
    [profile url="/messages/sent/" text="Sent"]
    
    [profile url="/profile/change-avatar/" text="Update your profile picture"]

    Anything before (and including) the username part of the URL should be disregarded. Use only what for follows.

    For example (as per the above shortcodes)

    https://www.domain.com/members/username/messages/

    https://www.domain.com/members/username/messages/sent/

    https://www.domain.com/members/username/profile/change-avatar/

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203433
     wholistic
    Participant
    This reply has been set as private.
    #203434
     Kieran_SQ
    Moderator

    Hi,

    You should not use the full URL only the part after the word username. The shortcode to change the users avatar would be as follows

    [profile url="/profile/change-avatar/" text="Update your profile picture"]

    You do not need the content that is in the URL before that. The plugin generates that part of the URL dynamically so it will always go to the logged in users profile.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203435
     wholistic
    Participant
    This reply has been set as private.
    #203438
     Kieran_SQ
    Moderator

    Hi,

    This is a shortcode and as such should simply be written or pasted into your content – you should not use the link picker. I have attached screenshots for clarity.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    Attachments:
    You must be logged in to view attached files.
    #203442
     wholistic
    Participant

    Now I understand. However, after following your instructions, the link still opens 404 page.This is becoming a pain.

    I will also need links to edit the members profile, submit an article and more. Isnt there an easier way? How are the links created in the menu?

    #203443
     Kieran_SQ
    Moderator

    Hi,

    That’s okay, I built the plugin because there was little else offered that did the same and allowed for other plugins. There is no requirement to use this. If the URL parameter is correctly populated, including the first forward slash, then it should not generate an error. Feel free to share the shortcode you have used.

    The links in the menu are created in a similar way but via translation and is specific to the header. The translations do not render in the main content.

    You may be able to find an alternative solution in the WordPress.org plugin repository here https://wordpress.org/plugins/.

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203624
     wholistic
    Participant

    Your plugin is a good idea if it works. I used the shortcode to test it exactly as you gave it to me above: [profile url=”/profile/change-avatar/” text=”Update your profile picture”]
    Any idea why?

    #203629
     Kieran_SQ
    Moderator

    Hi,

    Can you update this ticket with some login credentials and the URL where you’re using the shortcode please?

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203671
     wholistic
    Participant
    This reply has been set as private.
    #203676
     wholistic
    Participant

    Just to clarify, what I am trying to acheive with issue number 1 is to have a home page for the type of membership level with direct links to some functions, such as Edit your profile, Update your profile picture, Submit an article, participate in the forum, groups, friends…basically most of the BuddyPress capabilities, but a direct link to the option as it is difficult for members to find those options under the menus.For example, I dont need just a link to the profile, but also a direct link to the edit profile sublink and the edit professional background/bio sublink. The same with My Articles link, I need a link to New Article sublink as well.

    #203677
     wholistic
    Participant
    This reply has been set as private.
    #203686
     Kieran_SQ
    Moderator

    Hi,

    I have logged into the account and found that your were using curly comments not straight comments for the shortcode and as such it would not render. All shortcodes requires the use of straight comments. I have update this for you and the shortcode now renders correctly.

    With that said I have tested the output on your site and I can see that it goes to an error 404 page. This is because I have not dynamically generated the name of the page that is used to for members. I’ll look into pulling that information instead of the traditional /members/ page and I will release an update for it. Check WP Admin > Dashboard > Updates later today.

    With regards to the issues you’re having in the ticket with Laura, I can see the assignee is Radu one of our developers. Please continue the discussion there as they’re most equipped to deal with any issues.

    I work on weekends only and took your ticket when I saw it due to the nature of it. If you need assistance with matters away from the original topic of this ticket please open a new ticket and one of the available support team members will be happy to assist you.

    Thank you,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203693
     Kieran_SQ
    Moderator

    Hi,

    I have pushed a new version of the plugin for you. The plugin now generates the users URL dynamically rather than assuming the slug is /members/ – please test this and let me know.

    I’ve attached a screenshot of the curly / straight issue. I think you may have copied the shortcode from an email notification, in which case it would lose its formatting. Please copy the shortcode directly from the code wrapped area on the forum.

    You’ll see in the plugin changelog I have also removed the need for that first forward slash which seemed to cause some confusion. Now you only need to enter it like so

    [profile url="profile/change-avatar/" text="Update your profile picture"]

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    Attachments:
    You must be logged in to view attached files.
    #203698
     wholistic
    Participant

    Hi Kieran,

    Thank you very much! I will test it in a little bit. Can you give me the links/shortcodes for the rest of the Buddy Press options as I described above?

    “Just to clarify, what I am trying to acheive with issue number 1 is to have a home page for the type of membership level with direct links to some functions, such as Edit your profile, Update your profile picture, Submit an article, participate in the forum, groups, friends…basically most of the BuddyPress capabilities, but a direct link to the option as it is difficult for members to find those options under the menus.For example, I dont need just a link to the profile, but also a direct link to the edit profile sublink and the edit professional background/bio sublink. The same with My Articles link, I need a link to New Article sublink as well.”

    #203699
     Kieran_SQ
    Moderator

    Hi,

    You can visit any profile to generate these links, I will get you started with some below but you can easily generate these paths on your own.

    First tab of profile edit
    [profile url="profile/edit/" text="Update your profile"]

    Specific tab of profile edit
    [profile url="profile/edit/group/2/" text="Update your Professional Background"]

    Update avatar
    [profile url="profile/change-avatar/" text="Update your profile picture"]

    Submit an article
    [profile url="articles/new/" text="Submit an article"]

    Thanks,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203701
     wholistic
    Participant

    Perfect, that works 🙂 Thank you so much!

    #203704
     Kieran_SQ
    Moderator

    You’re welcome, if you end up liking the plugin please consider leaving me my first review on WordPress.org.

    All the very best,

    Kieran

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.

    #203705
     wholistic
    Participant

    Okay, sure!

Viewing 22 posts - 1 through 22 (of 22 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?