News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Member Info

Started by Vinoth, July 14, 2004, 02:46:28 AM

Previous topic - Next topic

Vinoth

how about we bring this above the avatar/


Member number  and member join date.




Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Grudge

Quote from: SpecHackers on July 14, 2004, 02:46:28 AM
Member number

How is the member number even vaguely interesting to anyone ever?
I'm only a half geek really...

Alisha

We have member numbers?

Grudge

Quote from: Alisha on July 14, 2004, 03:51:54 AM
We have member numbers?
He means the ID_MEMBER number. You can see it in the url when you hover over your name on this page. Yours is 4356
I'm only a half geek really...

Vinoth

can it be made to diplay above the avatar,
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Grudge

Of course. It's already in the context data. Probably $member['id'] or similar. Just add it to the template...
I'm only a half geek really...

Skoen

Anyone care to code that one in here..
Would be cool if that were some feature options in the Theme options.. Show additional member information in posts.
Alf Otto 'Skoen' Fagermo
Retired Norwegian translator


Vinoth

Quote from: Grudge on July 14, 2004, 02:29:43 PM
Of course. It's already in the context data. Probably $member['id'] or similar. Just add it to the template...

Ok can you say where can i add in index.template.php/

Thanx
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Grudge

If you mean over avatars on the DISPLAY page (i.e in threads) find this in Display.template.php:

// Show avatars, images, etc.?


Add this above it:

echo '
', $message['member']['id'], '<br />
', $message['member']['registered'], '<br />';
I'm only a half geek really...

Elissen

That isn't in index.template.php.

Copy Display.template.php to your (custom) theme folder and look for a comment like (the reason why you should copy the file instead of edit it in the default folder is memtioned elsewhere)

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

change to

                       // Show how many posts they have made.
                       echo '
                                                               ', $txt[26], ': ', $message['member']['posts'], '<br />';
                       // Member id
                       echo '
                                                               Member id: ', $message['member']['id'], '<br />';
                       // date + time registered
                       echo '
                                                               Member since ', $message['member']['registered'], '<br />
                                                               <br />';


edit: what Grudge posted  :P

Vinoth

Thanx Guys, I hope we have this feature earlier so

i close this thread/
Vinoth And Sachin ( SpecHackers Team )
The Best  Way to Help Poor Is not Becoming One Of Them.

Advertisement: