Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

How to show the User Location below the Avatar?

Aloittaja dresscodex, elokuu 06, 2005, 06:09:30 AP

« edellinen - seuraava »

dresscodex

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_

codenaught

#1
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 /> ';
Dev Consultant
Former SMF Doc Coordinator

dresscodex

Hey cool,

thanx for the help.
Workes just fine.

_octo_

dave

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'], '

';

}



Advertisement: