News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

age on post

Started by Chaos Dragon, September 16, 2008, 12:02:40 AM

Previous topic - Next topic

Chaos Dragon

Link to Mod

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 />';


"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

chrisb

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 ????



Özgür

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>
So Long

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Antes

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 :)

htzhtz

Now the zip only has Turkish language support in it, no English.

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

flamechica

Will this be updated for RC2?

Chaos Dragon

Hopefully by the ens of the week.
"Never stop exploring new ideas, concepts and techniques, but never forget the old ones, they just may come in handy someday!"
"Don't give up! Otherwise you do not win and nothing gets accomplished!"
Einstein "Insanity is doing the same thing over and over again, and expecting different results..."
Do Not PM me for Support. They will be Ignored. Use the Threads the have been provided.

Eclipse16V

Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

pashtet

Please update it for SMF 2.0RC3

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

nightyyx

it works for smf 1.1.11?
because it isnt reffered ...

^HeRaCLeS^

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
^HeRaCLeS^
*¤×• Ni te molestes en enviarme un Mp porque el soporte lo doy solo por el foro •×¤*


SMFPersonal

Advertisement: