2006-10-31, 02:07 PM
Since I'm the admin for our schools forum, I've set the login-names to the same as the ones used in the school intranet. This makes for dull names like "ABC12345". Those are hardly human-readable. Yet it makes it easy for the students to log in sicne they already use the intranet and thus alredy know their own login-names.
I've created a custom profile field where I've entered their real names in the profile, but there's still the problem of getting this to show in the actual forum.
For example:
Moderated By: AAA999999
User(s) browsing this forum: ABC12345
Doesn't tell the students nearly as much as:
Moderated By: Mr Smith
User(s) browsing this forum: Jim Jones
They told me in the General support forum that this wasn't a standard feature.
I was told to try this:
but instead I only got this:
Does anyone have any other ideas for me?
(Since this now is about code mods, I thought I'd move my question here instead of asking in the general support forum)
I've created a custom profile field where I've entered their real names in the profile, but there's still the problem of getting this to show in the actual forum.
For example:
Moderated By: AAA999999
User(s) browsing this forum: ABC12345
Doesn't tell the students nearly as much as:
Moderated By: Mr Smith
User(s) browsing this forum: Jim Jones
They told me in the General support forum that this wasn't a standard feature.
I was told to try this:
http://community.mybboard.net/showthread...8#pid88958' Wrote: [ -> ]Open inc/functions_user.php.
Find:
Replace with:$query = $db->query("SELECT uid,username,password,salt,loginkey,remember FROM ".TABLE_PREFIX."users WHERE username='".$db->escape_string($username)."' LIMIT 1");
$query = $db->query("SELECT u.uid,u.username,u.password,u.salt,u.loginkey,u.remember FROM (".TABLE_PREFIX."users u, ".TABLE_PREFIX."userfields uf) WHERE uf.ufid=u.uid AND uf.fid4='".$db->escape_string($username)."' LIMIT 1");
Replace fid4 with your custom profile field ID. Make the username the real name of the user, and the custom profile field the AAA11111 whatever login ID. (Make a backup of your database first, no guarantees of this working).
But that should theoretically allow users to login with the AAA11111 stuff, and still show the real name everywhere else.
but instead I only got this:
my forum Wrote:You have entered an invalid username. Usernames can only contain alphanumeric characters.
You have 2 more login attempts.
Does anyone have any other ideas for me?
(Since this now is about code mods, I thought I'd move my question here instead of asking in the general support forum)