News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Display "member number" to left of posts?

Started by moraidh, October 21, 2007, 05:33:07 AM

Previous topic - Next topic

moraidh

SMF Version: SMF 1.1.4
I was recently visiting a board where I saw on the poster's info to the left of theie post, in addition to the usual fields such as rank and number of posts, that there was also the "member number" given (i.e. the ID number in SMF, the n-th member registered).

Is there a way to inclue that in an AMF forum?  If so, details would need to be explicit for this newbie, I'm afraid, please!

Thanks in advance for your help!

H

Try this. Open Themes / default / display.template.php

Find

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Replace:

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />
Member ID: ', $message['member']['id'], '<br />
<br />';
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Rumbaar

I was wondering how they got the 'nth' member registered.  I wonder if it's just the unique key for the new row they just extract for that particular user.  Not sure if that's piece of data is extracted by other means, but you could try and declare that variable via a sql query at poster information generation.  Maybe SMF code request.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

moraidh


H

-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: