Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: dresscodex - elokuu 06, 2005, 06:09:30 AP

Otsikko: How to show the User Location below the Avatar?
Kirjoitti: dresscodex - elokuu 06, 2005, 06:09:30 AP
Hi,

when I am in other Boards (which use other Software), most of the times, the location of the User is shown below the Avatar. I like this and want to have it shown in my SMF too.

Does anybody know how I can show the location there?

_octo_
Otsikko: Re: How to show the User Location below the Avatar?
Kirjoitti: codenaught - elokuu 06, 2005, 09:56:04 AP
In: Themes/default/Display.template.php
and any other theme that has their own custom Display template

Find: if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')

Before that, add: echo '  <b>Location:</b> ', $message['member']['location'], ' <br /> ';
Otsikko: Re: How to show the User Location below the Avatar?
Kirjoitti: dresscodex - elokuu 06, 2005, 10:21:36 AP
Hey cool,

thanx for the help.
Workes just fine.

_octo_
Otsikko: Re: How to show the User Location below the Avatar?
Kirjoitti: dave - heinäkuu 18, 2006, 07:12:24 IP
dosent seem to work in rc2 :(
echo '

</td><td width="100%" class="smalltext" valign="top" align="center" style="padding: 18px 2px 10px 2px;">';



if (!$message['member']['is_guest'])

{

// Show their personal text?

echo '  <b>Location:</b> ', $message['member']['location'], ' <br /> ';
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')

echo '

', $message['member']['blurb'], '

';

}