Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Chaos Dragon on September 16, 2008, 12:02:40 AM

Title: age on post
Post by: Chaos Dragon on September 16, 2008, 12:02:40 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1407)

This mod will display a member's age next to their posts

if you theme has its own  display.template.php

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



after add

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


Title: Re: age on post
Post by: chrisb on September 17, 2008, 07:02:08 AM
We have looked the modify file and you say to replace the following , which one do you replace

); return true; }

there is 3 of them in the php file which one do we replace with ????


Title: Re: age on post
Post by: Özgür on February 23, 2009, 04:19:11 PM
Turkish Translation is not worked correctly.
Please update.

<file name="$languagedir/index.turkish-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt[420] = 'Yaş';
]]>
</add>
</operation>
</file>
<file name="$languagedir/index.turkish.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt[420] = 'Yaş';
]]>
</add>
</operation>
</file>
Title: Re: age on post
Post by: SA™ on February 23, 2009, 04:34:01 PM
done
Title: Re: age on post
Post by: Antes on February 23, 2009, 05:40:44 PM
Quote from: Özgür´ on February 23, 2009, 04:19:11 PM
Turkish Translation is not worked correctly.
Please update.

<file name="$languagedir/index.turkish-utf8.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt[420] = 'Yaş';
]]>
</add>
</operation>
</file>
<file name="$languagedir/index.turkish.php">
<operation>
<search position="end" />
<add><![CDATA[
$txt[420] = 'Yaş';
]]>
</add>
</operation>
</file>


Thx For that ... i forget to write here :)
Title: Re: age on post
Post by: htzhtz on May 21, 2009, 04:57:43 PM
Now the zip only has Turkish language support in it, no English.
Title: Re: age on post
Post by: SA™ on May 21, 2009, 10:08:11 PM
fixed
Title: Re: age on post
Post by: flamechica on November 19, 2009, 03:52:56 AM
Will this be updated for RC2?
Title: Re: age on post
Post by: Chaos Dragon on November 25, 2009, 04:26:22 AM
Hopefully by the ens of the week.
Title: Re: age on post
Post by: Eclipse16V on March 15, 2010, 01:47:20 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: age on post
Post by: pashtet on August 08, 2010, 06:33:56 AM
Please update it for SMF 2.0RC3
Title: Re: age on post
Post by: Eclipse16V on August 08, 2010, 06:37:31 AM
Works on 2.0 RC3
Title: Re: age on post
Post by: nightyyx on October 12, 2010, 09:57:19 PM
it works for smf 1.1.11?
because it isnt reffered ...
Title: Re: age on post
Post by: ^HeRaCLeS^ on August 12, 2011, 04:26:56 PM
In version for 2.0 has an bug.

'age' => $birth_year <= 4 ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)


They are using the variable 1.1.x $txt[470]

They should use the variable from 2.0 $txt['not_applicable']

'age' => $birth_year <= 4 ? $txt['not_applicable'] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)



Regards