c# - Programmatically setting 'display name' in YAF -
I am using YAF as my online platform. I have synchronized the user account database between YAF and my own application, but 'membership.providers' [YafMembershipProvider]] make CreateUser' their own members at the same time. However, there is a problem .. If my users are identified by the email address for logon then now the forum shows everyone's email address is not a good idea.
YAF has an option named 'Display Name' Is it possible to make it even Ramatically?
If anyone doubts this, then Jaben The answer does not work in the latest version of YAF.NET (Sample Web Application) - if you need to do this, you can do this using the website (since YAF. Classes.DB no longer exists).
You can find WS at & lt; your url & gt; /forum/YafWebService.asmx
- You have SetDisplayNameFromUsername A method named
Land, is to receive a token which will get you to your host settings page (at least setting before using tokens would need a save).
If you are waiting to use the inside of the forum to do this, you can do this directly by calling YafWebService
class, as explained: < / P>
var service = new YafWebService (); Service.SetDisplayNameFromUsername ("[your token]", "[user's username]", "[display name that you want to set up]");
Note: I've found a very useful / only method, while still developing it to develop.
Comments
Post a Comment