Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: jankariwo - maaliskuu 01, 2008, 03:04:52 IP

Otsikko: show gender and location
Kirjoitti: jankariwo - maaliskuu 01, 2008, 03:04:52 IP
I want gender and location to show in post but can't figure out where to switch this on. I am using Babylon theme which hasn't been quite helpful so far
Otsikko: Re: show gender and location
Kirjoitti: codenaught - maaliskuu 01, 2008, 09:18:02 IP
For gender:

Admin / Current Theme / Show gender images in message view (http://docs.simplemachines.org/index.php?topic=111)

This mod will add age and location - http://custom.simplemachines.org/mods/index.php?mod=638. If you do not want the age shown there you could apply the code change manually that is shown on the mod page without including the part of code for age.
Otsikko: Re: show gender and location
Kirjoitti: humbleworld - maaliskuu 01, 2008, 11:40:14 IP
The MOD, however, is Compatible With:
1.1.1, 1.1.2, 1.1.3

Seems the MOD hasn't been updated lately.
Otsikko: Re: show gender and location
Kirjoitti: codenaught - maaliskuu 02, 2008, 12:42:03 AP
Lainaus käyttäjältä: humbleworld - maaliskuu 01, 2008, 11:40:14 IP
The MOD, however, is Compatible With:
1.1.1, 1.1.2, 1.1.3

Seems the MOD hasn't been updated lately.
It actually is quite unlikely however that the mod doesn't work for 1.1.4. It most likely does.

The most the user may possibly have to do probably would be adding ;version_emulate=1.1.3 to the end of the URL when they go to the package manager and then submitting the changed URL.
Otsikko: Re: show gender and location
Kirjoitti: jankariwo - maaliskuu 02, 2008, 04:15:54 IP
I didn't need the mod afterall; just add this code


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

// ===== 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 =====