News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Adding users location to their posts/topics.

Started by XBleed, May 23, 2005, 01:39:50 PM

Previous topic - Next topic

Roach

I hate bumping old threads, but I'm trying to add this to my forum and I've tried to edit the file, but there is not a line that says "Show personal text"...

I tried inserting the code after the lines that would display "Hero Member" etc. but it didn't work.


Suggestions??


[Unknown]

Look for:

if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')

-[Unknown]

-Scott

How do I show the location info in the index template?


-Scott

rojamaia


thanks for this code.

i specially find the "hopelessly lost" funny  :D

[Unknown]

Quote from: -Scott on August 26, 2005, 06:12:25 PM
How do I show the location info in the index template?

I suppose you could use $GLOBALS['user_settings']['location'].

-[Unknown]

rojamaia


i found this error in my error log:

Quote8: Use of undefined constant hopelost - assumed 'hopelost'
File: /discussion/Themes/default/index.template.php (eval?)
Line: 619

what could that "use of undefined constant" mean?  i tried looking for line 619, but index.template.php doesn't have that line

Roach

Quote from: [Unknown] on August 26, 2005, 01:13:39 AM
Look for:

if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')

-[Unknown]

That's not in my theme either. :(  I'm using the ChatBubbles theme.... which doesn't have either of the lines. When I try to add the code it barfs on me for some reason.

RoAcH

ufuk.exe

Hi,
This is great but how can we limit the number of characters users can put on thier profile for location?
I just tested someone can put a whole essay there, and it will show up in the posts.
www.34tr.com - Nostalgia Istanbul
www.jeepprojects.com - Jeep Projects

That's It Simple Machines Forum,
It just couldn't be simpler.

canuckguy

this should be an option they fix in the next release....my forum no longer shows location in each post either

Aran

#29
// Show their personal text?

I really cant find this, been looking at it line per line but cant see it, anyone can say in what part of the BoardIndex.template.php I can find it?

Edit: Okay my mistake, BoardIndex.template.php was wrong, fixed now.

maritimesbob

I`m not what this mod does, but I was after a hack that added a users location underneath their avatar or post count when they post something. Does this do that?


Gorm

Is it posible to code so that location in threads dont show if your a guest?

/Johan

ScewJoel

can anyone help me?
there's no Display.template.php in my theme folder? Theme is: SullenMadness_RC2

Advertisement: