Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Joker™ on April 10, 2010, 12:30:18 PM

Title: To Show user Location on Posts
Post by: Joker™ on April 10, 2010, 12:30:18 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2493)

This mod will show the location of user in his/her profile in posts if filled in user profile

Before
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F20rvi1h.png&hash=67ccc5720aced5c6866d55cc85dcbf3f46d6a346)


After
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F1znpjlh.png&hash=308f017517b872dc4481d0601319a4d18ce135a1)
Title: Re: To Show user Location on Posts
Post by: Garry1953 on April 10, 2010, 06:55:26 PM
Works perfect
Thanks
Title: Re: To Show user Location on Posts
Post by: Joker™ on April 11, 2010, 04:18:28 AM
glad u liked it ;)
Title: Re: To Show user Location on Posts
Post by: khurrum on April 18, 2010, 07:33:20 PM
Is it possible that I can add field in my search option for example if i want to search members from India, then how can i select this option in my search.

best regards
Khurrum
Title: Re: To Show user Location on Posts
Post by: Hoodie on April 21, 2010, 12:05:46 AM
Do you have a way to only show this part if the member has entered their location?  Tried to do it myself but not getting it..  I don't want this to show

Location:

If nothing is entered for that member..
Title: Re: To Show user Location on Posts
Post by: Hoodie on April 21, 2010, 12:08:48 AM
Nevermind..  I got it..

For those that want to know, find this in Display.template.php:            //Show there location
            echo '
                        <li class="postcount">', $txt['location'], ': ', $message['member']['location'], '</li>';


Replace with:            //Show there location
            if ($message['member']['location'] != '')
            echo '
                        <li class="postcount">', $txt['location'], ': ', $message['member']['location'], '</li>';
Title: Re: To Show user Location on Posts
Post by: Joker™ on April 22, 2010, 12:49:46 PM
Quote from: Hoodie on April 21, 2010, 12:05:46 AM
Do you have a way to only show this part if the member has entered their location?  Tried to do it myself but not getting it..  I don't want this to show

Location:

If nothing is entered for that member..


sorry for the late response ... but im stuck in my examinations , so im not coming online that much regularly these days ...

I'll surely add this in next update .
Title: Re: To Show user Location on Posts
Post by: Hoodie on April 23, 2010, 03:48:58 AM
Thanks for the update and glad I could help with the mod..
Title: Re: To Show user Location on Posts
Post by: Joker™ on April 23, 2010, 03:58:44 AM
thanx for your help also ;)