• Welcome to Simple Machines Community Forum. Please login or sign up.
December 03, 2021, 03:03:38 PM

News:

SMF 2.0.18 has been released! Please update. Read more.


Identifier modification

Started by SBIM, December 19, 2007, 08:25:08 AM

Previous topic - Next topic

SBIM

Hello,

I would like to add the right to the moderator of modifying the user identifier but i can't find the option to do that.

Also when i user post a new message, is it possible to show its location under its name on the left ?

Thank you.

IchBin™

Changing the user ID can only be changed in the database.

The second question I do not understand. Could you be more specific about what you are talking about please?
IchBin™        TinyPortal

SBIM

>> The second question I do not understand. Could you be more specific about what you are talking about please?

When a user post a new msg, there is informations about the user on the left for you it is:

IchBin™
Doc Writer
Simple Machines Hero


There is a field "location" in users properties and i would like to show it like that:

IchBin™
Doc Writer
Simple Machines Hero
GERMANY


thank you for you help

IchBin™

Open Display.template.php file and find this code:
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';


Add after that code, this code:
// Show the member's location.
if (isset($message['member']['location']) && $message['member']['location'] != '')
echo '
', $message['member']['location'], '<br />';
IchBin™        TinyPortal

Advertisement: