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 />';
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 ????
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>
done
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 :)
Now the zip only has Turkish language support in it, no English.
fixed
Will this be updated for RC2?
Hopefully by the ens of the week.
Nice Mod
Please update it for SMF 2.0RC3 ;)
Thanks
Please update it for SMF 2.0RC3
Works on 2.0 RC3
it works for smf 1.1.11?
because it isnt reffered ...
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