Advertisement:

Navigation

SMF Mod Site

Mod Name:
Display Age and Location next to posts
Created By:
Daniel15
Type:
Profile
First Created:
January 23, 2007, 03:48:51 AM
Last Modified:
August 06, 2007, 02:47:37 AM
Latest Version:
1.0
Compatible With:
1.1.1, 1.1.2, 1.1.3
Total Downloads:
38134

Download this mod

AgeLocationOnPosts_1-0.zip (2kB) [36973]
Manual Install Instructions for SMF

Description:

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


This mod affects the default theme, and all themes using its Display.template.php file.

Theme edits (for custom theme)
Themes/[theme name]/Display.template.php, find:

Code: [Select]
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

Add after:
Code: [Select]
// ===== 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 =====

Changelog
Version 1.0
 - Initial release