miniBB Support Forums | 15 years on The Web
miniBB ®


 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Displaying usernames in posts instead of IDs, when taking from outside database

Author toneharb
#1 | Posted: 22 Oct 2006 06:24 
Hi puchased a licenced version and have had no problems , but there is a mod i would like to make the forum a bit more user friendly, i hope it's achievable....

I have imported my site database and existing members can log on OK from my main site

As i don't have a complete database of names , for importing to work i am using the record number for logging on which works fine but obviously shows this in the user name as xxxxxx which is as friendly as John Doe

How can i change the name field to be displayed instead of the record number . If the name exists print that if it doesn't print 'anonymous'



Author Team
#2 | Posted: 22 Oct 2006 22:44 
hello.. first of all we need to know how did you get the record number to show instead of the name field? :) have you inserted all userids from your database as usernames into miniBB users table? then why didn't you insert usernames there wherever possible instead?

Author Team
#3 | Posted: 22 Oct 2006 22:50 
Also the best way is using $dbUserScheme and adding required miniBB fields to your database (if possible):

If you'll adjust this database structure definition in the setup_options.php file and add all miniBB default/required fields to your existing database, you will be able to use it to store all miniBB members (both existing and future ones..)

Specific miniBB Support Forums / Specific /
 Displaying usernames in posts instead of IDs, when taking from outside database
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.