Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1404)
This mod will display a member's Location next to their posts
if you theme has its own display.template.php
find
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
after add
// Begin modification Location on posts
// Show the member's location
if ($message['member']['location'] != '')
echo '
', $txt[227], ': ', $message['member']['location'], '<br />';
// End modification
good work!!
Thanks :)
I edited <li location: to <li Location: so that it matched your Last Login in Post Mod. They're both great additions to the avatar area.
Works for me too!
Nice and simple, thanks wdm2005
Martin - England.
:) thanks
Works great
thanks
Very nice Mod, installed on my SMF 2.0 RC1 as I have members from all around the world, works great.
One small question, on mine it shows as "location: etc" why isn't location spelt with a capital L as in Location?
Thanks again!
I have this and reg date, both work great. Thanks.
Altered mine a bit, easy to do also, example (http://www.wmcintosh.com/forum/index.php?topic=51.0).
@cheese head idk dislexia maybe :P
@wmcintosh your welcome
@wmcintosh thanks for idea, I believe you added the Mod called date registerd in post.
@wdm2005, OK, so you had dislexia that day ;), I found where to edit it online in my display.template.php file.
Quote from: Cheese Head on February 17, 2009, 09:01:41 PM
@wmcintosh thanks for idea, I believe you added the Mod called date registerd in post.
Correct, from same author (http://custom.simplemachines.org/mods/index.php?mod=1405).
Oops, didn't mean to go off-topic.
This came just in time, thanks. I upgraded to 1.1.9 today and the last Location on post mod created by another member had to be removed. Works great.
When is the new Affiliates coming for 1.1.9 :o
TD
Members with long location text entered causes the left section where the nick/avatar/no of posts are to be stretched to the right and the post section is hence narrowed. Anyway to prevent this? Can long locations be separated into 2 lines instead of 1?
ill look into it
Hi, great mod. Thanks for the effort. On my RC 1-1 install somehow Location is displayed twice. Any ideas why?
it was installed twice some how can you post up your display.template.php please?
Thanks. Problem solved. Removed it and reinstalled it and all is well. Great job!
It would be really cool if you could use flags to represent users location instead of text.
Great mod otherwise :)
Quote from: teh_Krall on August 22, 2009, 05:45:35 PM
It would be really cool if you could use flags to represent users location instead of text.
Great mod otherwise :)
I will be doing that after I get the bugs fixed on my new Mood System.
Is there any Update for SMF 2.0 RC2 ?
Thx
I will try to have an update out by the end of the week.
any update for this yet ?
Any news?
it can be achived with one edit to display.template.php
find
[if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li>', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
aftert add
if ($message['member']['location'] != '')
echo '
<li>location: ', $message['member']['location'], '</li>';
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
it works for smf 1.1.11?
because it isnt reffered ...
Any way to get rid of the of this colon? :
It displays before members location. I tried deleting it in the display.template.php and it took the whole site down.
Does this Mod work on 2.0.2?
Does this Mod work on 2.0.4?
It hasn't been updated in 4 years, the answer is extremely unlikely.
Of course, if you were to disable the standard location field and create your own with the custom profile fields option, you could just add it anyway to the left area...
Quote from: dsystem on May 22, 2013, 09:54:53 PM
Does this Mod work on 2.0.4?
dsystem,
Have you tried to emulate another smf version to get the mod to work?
Also, there is a Last Post and Location Mod that you can use and you can disable the Last Post part so that only the Location will show up in the forum profile.
Or you could read my previous post and understand how to add it without having to use a mod at all...
CheeseHead05. Compatibility mode doesn't work. But with a small change in the Mod to install. Posted here just to see if the author gave sign of life.
Now that the Arantor gave a great tip. Had not yet used the SMF custom fields. To implement this feature without the need to install any MOD.
How do I use the location field from when I created the Forum. Go to run a Mysql command to copy the contents of the field location for the new field. Next weekend I should be putting into practice Arantor's tip.
I saw that today the Arantor reached 51,000 posts today. I think soon it will go pro Guinness book. ;D
A year ago when I created my forum and I registered in SMF amazed me with your number of posts here, and even commented on my forum-> http://eletronicabr.com/eletrotreco/19/quem-e-este-membro-com-44-233-mensagens/610/
for smf 2.0.6 default theme (Curve), find
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '' && !isset($context['disabled_fields']['gender']))
echo '
<li class="gender">', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
and add after:
// Show the member's location
if ($message['member']['location'] != '')
echo '
<li>', $txt['location'], ': ', $message['member']['location'], '</li>';
word "location" will be replaced for your language, in sample, "Расположение" for russian.