Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Mentions plugin - can we change what appears after selecting user in autocomplete popup?
Avatar
Steve Arnold
Member
Offline
Jun 28, 2017 - 9:10 pm

Hello 🙂

I use simplepress on a membership website. The membership system I use adds users to my wordpress site using their email address as their user name / login name. 

As a result, their email addresses are temporarily revealed when someone mentions them in a post. 

After the post is submitted, it's the display name appears in the post, which is fine. 

It's just in that gap between selecting a users name in the autocomplete dropdown and before submitting the post, the login name is displayed to the person writing the post - which in my case is the email address. 

I know this isn't an issue with the Mentions plugin, but I'm wondering if there's any way around this for me?

Thanks 

Steve

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Jun 28, 2017 - 10:54 pm

eek!  username of email has lots of potential issues...  and actually, mentions does not use the user login... it uses the wp user nicename... and wp uses the user nicename in multiple locations (such as author links)...  unfortunately, at registration, wp sets the user nicename to a sanitized version of the user login...

and there is no way to change it from the admin...  a quick search and I didnt see a plugin to change it but there does seem to be a simple way to change the user nicename via phpmyadmin...  see: https://wordpress.2bearstudio......_nicename/

if you try this, please make a db backup first...  I have not actually tried this...

Avatar
Steve Arnold
Member
Offline
Jun 28, 2017 - 11:07 pm

Ok thanks for the suggestion

Unfortunately I'm stuck with the email address / user name issue, so maybe I'll give the phpmyadmin thing a shot!

Side note: the reason I'm stuck with email addresses is that it's how ontraport's pilotpress plugin creates users and that doesn't look like changing in the near (or distant) future.

Side note 2: my decision to invest in simple:press was 100% based on the fact that it allows me to configure members profile URLs to something that doesn't reveal their email address. Turns out SP is a pretty kick-ass system with helpful developers, which was a nice bonus! 🙂

Thanks again !

Avatar
Steve Arnold
Member
Offline
Jun 29, 2017 - 3:53 am

Update: I found a plugin that updates the nicename, called "Edit Author Slug". 

I've configured it to change the nicename to the user id, and it also does it automatically for each new member as they're added. 

I did have to run some SQL to update previous mentions to refer to the new nicename values, but that was a one-time update so no big deal.

Thanks for pointing me in the right direction

Cheers

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 29, 2017 - 5:00 am

Perfect solution and a good find. And thanks for the thoughtful words...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625