Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Portugal on November 13, 2019, 05:10:54 PM

Title: Number of member instead of nickname visible
Post by: Portugal on November 13, 2019, 05:10:54 PM
Hi all,

Its possibile to change for default mode, the visible nickname was the number of registration instead of real nickname? If member wants must go to profile and chose their nickname be public!
I think thats a good option, for sure makes members participate even more!

Thanks
Portugal
Title: Re: Number of member instead of nickname visible
Post by: Arantor on November 13, 2019, 05:17:41 PM
That's actually quite a big change assuming you want to do it everywhere?
Title: Re: Number of member instead of nickname visible
Post by: Portugal on November 14, 2019, 08:13:37 AM
Thanks for your support,

Well, if that change be effective just on posts and replly thats good for me! Ive used one mod to make some boards anonimous, but i want some identification, and the number of member was the best for my situation.


That's actually quite a big change assuming you want to do it everywhere?
Title: Re: Number of member instead of nickname visible
Post by: Dzonny on November 14, 2019, 09:26:47 AM
I believe that something like changing themes/your_theme/Display.template.php file with:
Code: [Select]
$message['member']['id']Wherever you find username or name is taken, like:
Code: [Select]
$message['member']['username']
or
$message['member']['name']
Or something alike.

But as Arantor said, it's quite big change if you want to anonymize users, for example their avatars, profile links etc.
Title: Re: Number of member instead of nickname visible
Post by: Arantor on November 14, 2019, 10:50:46 AM
Yes but that doesn’t do the “user sets an option to show their name” option...
Title: Re: Number of member instead of nickname visible
Post by: Portugal on November 15, 2019, 07:06:39 AM
Thanks,

Well, i think your code can solve in part my problem, in fact i just want to makes it possibile for my members, its a forum for legal questions (Laws) and for my public its interesant to permit to chose... and by default anonimize the nick name!
Other situation and very usegul for forums (my opinion) its to anonimize the nickname for visitors! When member get registred and part of forum, it can see the nicknames! What you think on that second situation?


Very thanks for your help!

Regards
Portugal


I believe that something like changing themes/your_theme/Display.template.php file with:
Code: [Select]
$message['member']['id']Wherever you find username or name is taken, like:
Code: [Select]
$message['member']['username']
or
$message['member']['name']
Or something alike.

But as Arantor said, it's quite big change if you want to anonymize users, for example their avatars, profile links etc.
Title: Re: Number of member instead of nickname visible
Post by: Illori on November 15, 2019, 07:11:21 AM
maybe https://custom.simplemachines.org/mods/index.php?mod=4078 would help you?
Title: Re: Number of member instead of nickname visible
Post by: Portugal on November 18, 2019, 08:51:53 AM
Thanks, i will go to try your sugestion Illori!