Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: wynnyelle on April 15, 2013, 04:59:39 PM

Title: An odd problem with member profile links.
Post by: wynnyelle on April 15, 2013, 04:59:39 PM
Members have told me that passing profile links to each other doesn't work because when they do so, the link goes to their own profile rather than the other person's profile.

I told them that if they have the member's ID number included in the link, then that will go to the right profile. But they still say that it's difficult when passing links quickly around because that ID number doesn't get included often enough.

I would post more info if I had it...but I am a bit hazy on the problem. My apologies. When I get more info on the problem I'll post more on it. Has anyone else had this issue? How would it get fixed?
Title: Re: An odd problem with member profile links.
Post by: kat on April 15, 2013, 05:07:10 PM
Where are the getting the profile links from?

If I click on your username, or avatar, here, I get:

http://www.simplemachines.org/community/index.php?action=profile;u=246194

Is that what they're copy/pasting?

I got this from right-clicking on Maple's avatar:

http://warriorcatsrpg.com/index.php?action=profile;u=70856

This, by doing the same with #pudding's:

http://warriorcatsrpg.com/index.php?action=profile;u=56631

They seem OK. :)
Title: Re: An odd problem with member profile links.
Post by: Kindred on April 15, 2013, 05:09:15 PM
K@,

I think what she means is that when you click on the my profile link it calls up action=profile with no user identified ----   which, indeed, does go to the current user's profile.  That is not a problem and not a bug. That is completely by intention and design.
Title: Re: An odd problem with member profile links.
Post by: kat on April 15, 2013, 05:10:54 PM
Ah. Their OWN profile links...

Yeah, that's a little different. Best to right-click on their own avatar/username, then. :)

"Members have told me that passing profile links to each other doesn't work because when they do so, the link goes to their own profile rather than the other person's profile." reads as passing-on other member's profile links, to me...
Title: Re: An odd problem with member profile links.
Post by: wynnyelle on April 15, 2013, 06:39:42 PM
I admit I don't completely understand the issue but I know it pertains to the "My Profile" link not specifying an ID number and people are grabbing it a lot from there. Either way, not a huge thing.
Title: Re: An odd problem with member profile links.
Post by: Kindred on April 15, 2013, 06:43:03 PM
Groovy, when you click the my profile button, you obviously want to view your own profile.  So, SMF assumes that, if you do not specify the user I'd in the u=### part of the URL, you intend to view your own profile.

If your users want people to view their profile, they would need to grab the link from any message that they have posted, by clicking on the avatar...
Title: Re: An odd problem with member profile links.
Post by: hcfwesker on April 15, 2013, 07:26:28 PM
If this makes it any easier, but requires 1 whole extra step lol.  When member's get their OWN profile link from their profile, click the "Summary" option under Profile Info, which will display the link to THEIR profile with user ID in the URL bar.

Though, there's another alternative.  It can also be hardcoded in the 'Profile' tab up top to take member's to their full URL profile, if that would make it easier?

Sources/Subs.php
Find
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),


Replace with
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . '',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile;u=' . $user_info['id'] . '',
'show' => true,
),



So, instead of my Profile button showing MY profile URL as
http://warriorcatsrpg.com/index.php?action=profile
it'll show it as
http://warriorcatsrpg.com/index.php?action=profile;u=6207

Don't have to use it, but it'll take that concern from showing member's another alternative or explaining how profile links work lol