Comment author profile url  

  RSS

angel_devoeted
(@angel_devoeted)
New Member
Joined: 1 year ago
Posts: 4
28/08/2018 2:19 am  

Hello,

I have an issue with the profile url. I am using buddypress for my users profile pages and i used the buddypress integration code un my child theme's funtcion.php .

The profile url seemed to work fine but then i noticed that althought the gravatar athor link was linking to my users buddypress profile, the display name of the user was linking to my users url link(some of my users register via social networks to my site).

This issue causes many troubles because the users social profile links must be hidden from the public.

2
1

 


Quote
Arina
(@arina)
Estimable Member Moderator
Joined: 6 years ago
Posts: 101
28/08/2018 3:38 pm  

Hi @angel_devoeted,

This is not a bug, it is wpDiscuz working logic. Gravatar author link is linked to the users BuddyPress profile and the display name of the user is link to the users URL link.

Please use the following CSS code to hide the users url link, put it in Dashboard > Comments > Settings > Styling > "Custom CSS Code" textarea: 

#wpcomm .wc-comment-author a{
pointer-events: none;
cursor: default;
}

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


ReplyQuote
angel_devoeted
(@angel_devoeted)
New Member
Joined: 1 year ago
Posts: 4
28/08/2018 3:46 pm  

Hi Arina,

The css is a simple and easy solution but it's kind of unsafe if you want to protect the privacy of your users.

I mean that anyone with a simple inspect element or by viewing the page source  has access to  user's url link.


ReplyQuote
Arina
(@arina)
Estimable Member Moderator
Joined: 6 years ago
Posts: 101
28/08/2018 5:02 pm  

@angel_devoeted,

put the following code in your current active theme's functions.php file. 

if (!function_exists('hide_user_url')) {
add_filter('wpdiscuz_author_link_attributes', 'hide_user_url', 10, 1);
function hide_user_url($url_attribtues) {
if ($url_attribtues && isset($url_attribtues['href'])) {
unset($url_attribtues['href']);
}
return $url_attribtues;
}
}

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


ReplyQuote
angel_devoeted
(@angel_devoeted)
New Member
Joined: 1 year ago
Posts: 4
28/08/2018 5:17 pm  

@arina,

This works perfectly!

Thank you very much!


ReplyQuote
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: