I'm numbah 1! (ID Option?)

Forum
Last Post
Threads / Messages

Rozel

Member
Member
Joined
Jun 26, 2010
Messages
144
Points
0
Mysidian Dollar
7,266
I'm sure you just edit something in the database or something, but I'm a nub with PHP and such. I just know how to edit premade scripts, not really make stuff x3;

So anyways. I would like to know how to, for every new member, they get an ID number next to their name. So for example, I could be; Bob (#1). Next person who registers will be shown as Bobita (#2), etc.

Thank yah~ :3
 
Last edited:
All users already get an ID.

It's stored in the MySQL database in:

adopt_users and it's the first row labeled "uid".

It automatically increase the uid by 1 when someone joins.
 
I think Rozel's wondering if it's possible to display that. xD
 
<.< I feel terribly dumb not knowing what that means, but I have a small idea of it's definition. I'll look it up xD
 
It means to go to profile.php and where it has this;

PHP:
$usersname=@mysql_result($result,$i,"username");
$usersgroup=@mysql_result($result,$i,"usergroup");
$website=@mysql_result($result,$i,"website");
$aim=@mysql_result($result,$i,"aim");
$yahoo=@mysql_result($result,$i,"yahoo");
$msn=@mysql_result($result,$i,"msn");
$membersince=@mysql_result($result,$i,"membersince");
$avatar=@mysql_result($result,$i,"avatar");

Add this:

PHP:
$uid=@mysql_result($result,$i,"uid");

And where it has something like this:

PHP:
$article_content = "<b><u>".$lang_basic_info."".$usersname.":</u></b><br><br>

Change it to:

PHP:
$article_content = "<b><u>".$lang_basic_info."".$usersname."(#".$uid.") :</u></b><br><br>

And it should display the user number. :pleased:
 
Yay! You made it so much simpler for me. x3~ I thank you dearly.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top