-
Author
-
July 9, 2018 at 23:52 #203429wholisticParticipant
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.
July 9, 2018 at 23:58 #203430Kieran_SQModeratorHi,
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 solutionIf 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.
July 10, 2018 at 00:11 #203431wholisticParticipantThank 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.
July 10, 2018 at 00:16 #203432Kieran_SQModeratorHi,
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 solutionIf 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.
July 10, 2018 at 00:32 #203434Kieran_SQModeratorHi,
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 solutionIf 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.
July 10, 2018 at 00:49 #203438Kieran_SQModeratorHi,
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 solutionIf 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.July 10, 2018 at 00:59 #203442wholisticParticipantNow 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?
July 10, 2018 at 01:04 #203443Kieran_SQModeratorHi,
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 solutionIf 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.
July 12, 2018 at 01:12 #203624wholisticParticipantYour 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?July 12, 2018 at 02:19 #203629Kieran_SQModeratorHi,
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 solutionIf 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.
July 12, 2018 at 17:20 #203676wholisticParticipantJust 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.
July 12, 2018 at 18:25 #203686Kieran_SQModeratorHi,
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 solutionIf 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.
July 12, 2018 at 19:17 #203693Kieran_SQModeratorHi,
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 solutionIf 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.July 12, 2018 at 19:26 #203698wholisticParticipantHi 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.”
July 12, 2018 at 19:39 #203699Kieran_SQModeratorHi,
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 solutionIf 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.
July 12, 2018 at 19:51 #203704Kieran_SQModeratorYou’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 solutionIf 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.
-
AuthorPosts
You must be logged in to reply to this topic.