Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: trenchteam - heinäkuu 30, 2005, 07:06:08 AP

Otsikko: Member #
Kirjoitti: trenchteam - heinäkuu 30, 2005, 07:06:08 AP
I want the member # to show under the avatar.  I've searched member ID but its not bringing up anything useful.  This is what I want it to look like in the post.

Name
Avatar
Member #

So if your the first to register I want it to say Member #1 maybe with the date if possible.  Thanks for any help. ;D
Otsikko: Re: Member #
Kirjoitti: [Unknown] - heinäkuu 31, 2005, 03:44:47 AP
The number is not increasing like you think, there will be holes.  Inevitably, you're going to ask next how to not have the holes, and not having them would seriously detriment the software.

So, this is going to take a mod - not a complex one, but a mod to add a column to the table and automatically increase it the way you'll want.

-[Unknown]
Otsikko: Re: Member #
Kirjoitti: Captain_Morrigan - toukokuu 03, 2006, 05:29:41 IP
I'm looking for something like this as well.

I'm not caring about memberid Holes but I need the member's ID number to display in the post So if they registered and their member iD in the members table is 27 then it shows in the post information:

Member No. 26

Edit: Nevermind, I was just typing the stuff wrong so I found it. For anyone else that wants it you want to Echo the following:
$message['member']['id']
Otsikko: Re: Member #
Kirjoitti: Gary - toukokuu 03, 2006, 09:12:44 IP
Lets be a little more exact with it for other users. ;)

//Member ID?
echo'
Member No.: ', $message['member']['id'], ' <br />
<br />';


-AwwLilMaggie