-
Author
-
July 9, 2018 at 23:52 #203429
wholistic
ParticipantHello,
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_SQ
ModeratorHi,
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 solutionJuly 10, 2018 at 00:11 #203431wholistic
ParticipantThank 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_SQ
ModeratorHi,
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 solutionJuly 10, 2018 at 00:27 #203433wholistic
ParticipantIt is not working for me, it leads to 404 page. I tried both
https://www.wholistichub.com/members/username/profile/change-avatar/
and
https://wholistichub.com/members-grid/username/profile/change-avatar/
Any idea why?
July 10, 2018 at 00:32 #203434Kieran_SQ
ModeratorHi,
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 solutionJuly 10, 2018 at 00:40 #203435wholistic
ParticipantI am not sure what I am not understanding. I am trying to enter url to custom text. See the screenshot. What am I supposed to enter there? It doesnt work with the partial link you are suggesting.
July 10, 2018 at 00:49 #203438Kieran_SQ
ModeratorHi,
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 solutionJuly 10, 2018 at 00:59 #203442wholistic
ParticipantNow 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_SQ
ModeratorHi,
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 solutionJuly 12, 2018 at 01:12 #203624wholistic
ParticipantYour 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_SQ
ModeratorHi,
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 solutionJuly 12, 2018 at 17:10 #203671wholistic
ParticipantHi Kieran,
I have set up an admin account for you with the themesupport@seventhqueen.com email, pass: Wz6kvbq(wP&MP2TNe^L*4TI21. The page I am testing on is in the Drafts, called Gold Member Home. https://wholistichub.com/wp-admin/post.php?post=13807&action=edit
Please use the login quickly and hopefully fix the issues asap. For some reason Admin accounts show up in the members directory automatically, so I will have to disable it as soon as possible.
2. Also, I opened another ticket about other issues with the website which are urgent as well. Laura responded that she is escalating the ticket. If that is again you, please take a look at those issues when you login. It is very urgent that the elements (hover boxes and Kleo News Focus) on the home page are not showing at all – this needs to be fixed ASAP. https://wholistichub.com
3. Another issue is with the articles not showing as an animated grid, so I had to change it to standard. https://wholistichub.com/articles/
4. One more important issue is pages such as “Write for Us” that have multiple images in between the text and had the enable dark gradient option, caused the entire page to darken, even after I unchecked that option. This is clearly an error that must be fixed immediately. I want the dark layer on top of the image so the white text is visible but do not want the dark layer on top of the white background with text.
https://wholistichub.com/write-for-us-become-author-wholistic-hub/https://wholistichub.com/wp-admin/post.php?post=942&action=edit
Please let me know what you figure out about the 4 issues above. Thank you.
July 12, 2018 at 17:20 #203676wholistic
ParticipantJust 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 17:25 #203677wholistic
ParticipantOne more thing…The theme came with rtMedia plugin installed. As you might notice, there is a plugin update that is not installed. I had installed it some time ago and it caused the entire home page to not show correctly, the elements were not visible at all. So I had to restore a back up. Not sure if this plugin is not messing up with the elements..
July 12, 2018 at 18:25 #203686Kieran_SQ
ModeratorHi,
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 solutionJuly 12, 2018 at 19:17 #203693Kieran_SQ
ModeratorHi,
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 solutionJuly 12, 2018 at 19:26 #203698wholistic
ParticipantHi 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_SQ
ModeratorHi,
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 solutionJuly 12, 2018 at 19:51 #203704Kieran_SQ
ModeratorYou’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 -
AuthorPosts
You must be logged in to reply to this topic.