Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Suggestions and Feature Requests

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2011, 12:39 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 10,544
Rozel
Default I'm numbah 1! (ID Option?)

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 by Rozel; 03-18-2011 at 02:03 PM.
Reply With Quote
  #2  
Old 03-18-2011, 03:29 PM
Inf3rnal's Avatar
Inf3rnal Inf3rnal is offline
Member
 
Join Date: Mar 2011
Location: Florida
Posts: 108
Gender: Male
Credits: 19,516
Inf3rnal is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 03-18-2011, 03:32 PM
AlexC's Avatar
AlexC AlexC is offline
Moderator
 
Join Date: Dec 2009
Location: Canada
Posts: 753
Gender: Unknown/Other
Credits: 66,366
AlexC is an unknown quantity at this point
Default

I think Rozel's wondering if it's possible to display that. xD
Reply With Quote
  #4  
Old 03-18-2011, 03:56 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 327,717
Hall of Famer is on a distinguished road
Default

Well just use concatenation operator to display both the variable username and uid on user profile.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 03-18-2011, 08:34 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 10,544
Rozel
Default

<.< 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
Reply With Quote
  #6  
Old 03-19-2011, 08:54 AM
The Codfin Keeper's Avatar
The Codfin Keeper The Codfin Keeper is offline
A Codfin draws near!
 
Join Date: Jan 2011
Location: Either CT or the Slug's house
Posts: 91
Gender: Male
Credits: 11,204
The Codfin Keeper is on a distinguished road
Default

It means to go to profile.php and where it has this;

PHP Code:
$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 Code:
$uid=@mysql_result($result,$i,"uid"); 
And where it has something like this:

PHP Code:
$article_content "<b><u>".$lang_basic_info."".$usersname.":</u></b><br><br> 
Change it to:

PHP Code:
$article_content "<b><u>".$lang_basic_info."".$usersname."(#".$uid.") :</u></b><br><br> 
And it should display the user number.
__________________

Yacker
Quote:
Originally Posted by Mankey Pokemon Card when another one is on top of it
([33) Ka\______
Does 40 damage\___
counter on Mankey. \______
Reply With Quote
  #7  
Old 03-19-2011, 09:50 AM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 10,544
Rozel
Default

Yay! You made it so much simpler for me. x3~ I thank you dearly.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Secondary "RARE" cash option? Tequila Questions and Supports 4 09-17-2012 09:18 AM
TrialPay - Anyone ever used it / heard of it? Considering making it a payment option BMR777 Other Chat 4 03-02-2009 04:35 PM


All times are GMT -5. The time now is 01:57 AM.

Currently Active Users: 712 (0 members and 712 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636