Display Age and Location next to posts

Started by Daniel15, January 23, 2007, 03:48:55 AM

Previous topic - Next topic

Daniel15

Link to Mod

This mod will display a member's Location and Age next to their posts.


Based on a request at http://www.simplemachines.org/community/index.php?topic=136893.msg872589#msg872589

Changelog
Version 1.0
- Initial release
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

EdwinK

|| foto-site ||

bigmohi


robotman321

whats a signature without text, WOOT!

jdvarner

Curious... Its displaying age/location twice in the profile next to post? anyone have a fix?

Daniel15

Quote from: jdvarner on January 24, 2007, 09:03:49 AM
Curious... Its displaying age/location twice in the profile next to post? anyone have a fix?
Try looking for the duplicate code in Display.template.php. If the code for age and location is there twice, remove one instance of it.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Ramón Cutanda



Vanz

I'm having a problem with this mod, it's only show location!!! I can't see age of a member, I tray to enter this manually in Display.template.php and it still not working!!! I've have SMF 1.1.2, end when I tray to upload this mod, I allways get the same mistake. He's reporting that the file is corrupted or not for this version of forum!!!!

PLS help

Daniel15

Quote from: Vanz on March 02, 2007, 07:00:12 PM
I'm having a problem with this mod, it's only show location!!! I can't see age of a member, I tray to enter this manually in Display.template.php and it still not working!!! I've have SMF 1.1.2, end when I tray to upload this mod, I allways get the same mistake. He's reporting that the file is corrupted or not for this version of forum!!!!

PLS help
Please download the new package I just uploaded, it should work fine :)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

Vanz


TEOC2

How can i remove the age bit but retain the location?

// ===== Begin modification - Display Age and Location next to posts =====
// Show the member's age
if (isset($message['member']['age']))
echo '
', $txt[420], ': ', $message['member']['age'], '<br />';

// Show the member's location
if ($message['member']['location'] != '')
echo '
', $txt[227], ': ', $message['member']['location'], '<br />';
// ===== End modification =====

Daniel15

QuoteHow can i remove the age bit but retain the location?
Remove this bit:

// Show the member's age
if (isset($message['member']['age']))
echo '
', $txt[420], ': ', $message['member']['age'], '<br />';


And leave the other bit
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

walkerp

How do I access the above file?  And which file is it?

Thanks!

Daniel15

You mean to remove the age segment? It's in Themes/default/Display.template.php :).
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

walkerp

Thanks!

Slowly learning my way around this world.  Appreciate the tip.

Daniel15

No problem... Glad to see it helped you :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

locomotion182


codenaught

Quote from: locomotion182 on May 26, 2007, 05:32:29 PM
its not showing for me = /
If you are using a custom theme you will have to manually apply the theme edits. The code you need to add is shown on the mod page for the mod.
Dev Consultant
Former SMF Doc Coordinator

kill3r


Advertisement: