location on post

Started by Chaos Dragon, September 15, 2008, 11:55:26 PM

Previous topic - Next topic

Chaos Dragon

Link to Mod

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
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

matasanos


C.Jack

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.
C.Jack

ModelBoatMayhem

Works for me too!
Nice and simple, thanks wdm2005

Martin - England.
That's my firm opinion.... but what do I know?!

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Garry1953


Cheese Head

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!

wmcintosh

I have this and reg date, both work great. Thanks.

Altered mine a bit, easy to do also, example.

SA™

@cheese head  idk dislexia maybe :P


@wmcintosh  your welcome
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Cheese Head

#9
@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.

wmcintosh

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.

Oops, didn't mean to go off-topic.

TDNY

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

noelchiew

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?

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

MCK

Hi, great mod. Thanks for the effort. On my RC 1-1 install somehow Location is displayed twice. Any ideas why?

SA™

it was installed twice some how can you post up your display.template.php please?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

MCK

Thanks. Problem solved. Removed it and reinstalled it and all is well. Great job!

teh_Krall

It would be really cool if you could use flags to represent users location instead of text.

Great mod otherwise :)

Chaos Dragon

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.
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

Eclipse16V

Is there any Update for SMF 2.0 RC2 ?
Thx
I worked with:
SMF 2 in German

Shop:
SID Giessen

Advertisement: