How can I get the posts to show a persons location? In other words, when people post, you see their name, avatar, message options (yahoo, icq, aim, etc...), Karma, gender, posts, etc... I would like to see, in that area, the location they put in their profile. On my board, we ask that they put in their location their local airport name so that we can fly there in flight simulators.
I would like this info to be shown above or under their avatar. How can I accomplish this?
TIA
It's just $message['member']['location'].
For example, find this in Themes/yourtheme/Display.template.php:
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
And add above it:
// Show their personal text?
if (!empty($message['member']['location']))
echo '
', $message['member']['location'], '<br />';
-[Unknown]
Excellant!!!! Thank you. That was almost too easy. :D
I did this format which made it a bit cleaner.
// Show their location?
if (!empty($message['member']['location']))
echo 'Location:
<br />
', $message['member']['location'], '<br />
<br />';
You all rule as usual! Now, If I can just get my main site page fixed with the recent posts info...all will be great with the world... well, until the next problem. ;)
I tweaked it just a tad bit more with:
if (!empty($message['member']['location']))
echo '<b>Location: <br />',
$message['member']['location'], '</b><br /><br />';
else echo '<b>Location:<br />
Hopelessly Lost</b><br /><br />';
Just so some users wouldn't feel left out...
btw - just moved from IPB, and I can't believe the difference! Great job, guys...
Thanks, glad you got it how you wanted it ;).
-[Unknown]
I wouldn`t mind using this tweak, but unfortunately the theme that I`m using does not have a Display.template.php file. I`m using the Oxygen theme from Bloc.
That means it uses display.template.php from the default theme. You can either edit that file directly or make a copy and put it into the directory of the theme you are using.