Customizing SMF > SMF Coding Discussion

How to remove "local time" on profiles?

(1/2) > >>

Groovystar:
This:


--- Quote ---
Local Time:
    June 22, 2012, 11:30:56 PM

--- End quote ---

It's already displaying the time for the user up on the top left, so having it also in the profile is a little redundant. How would one remove this off profiles and just leave it at the top?

K@:
Pure guess.


--- Code: --- echo '
<dt>', $txt['local_time'], ':</dt>
<dd>', $context['member']['local_time'], '</dd>';
--- End code ---

in the theme's Profile.template.php file (The default theme's file, if your custom theme doesn't have it).

I think that information's designed for other people viewing their profile, though. For them to know what time it is, in that member's country. So, it's not redundant, at all, really. ;)

Groovystar:
Ah, I see. It just gets its own profile module though and that only makes it more bulky. Maybe a better thing to do is place it somewhere in a different block, rather than give it its own? I'm trying to streamline our site's profiles to make them look smoother.

Thanks!

K@:
I'm not sure what you mean by putting it in a different block, I have to confess.

Did that edit get rid of it OK?

Labradoodle-360:
She's using Ultimate Profile, so it's probably in a completely independent block with nothing else showing in it.

In which case, I'd suggest moving it to the main block with the users avatar and so forth.

@Kat - That is the proper code :)

Navigation

[0] Message Index

[#] Next page

Go to full version