Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: SBIM on December 19, 2007, 08:25:08 AM

Title: Identifier modification
Post by: SBIM on December 19, 2007, 08:25:08 AM
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.
Title: Re: Identifier modification
Post by: IchBin™ on December 19, 2007, 11:06:56 AM
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?
Title: Re: Identifier modification
Post by: SBIM on December 20, 2007, 10:26:17 AM
>> 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
Title: Re: Identifier modification
Post by: IchBin™ on December 20, 2007, 01:09:34 PM
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 />';