omraan
11-23-2008, 01:33 PM
اموزش
ابتدا فايل زير را باز کنيد:
Sources/Load.php
اين کدو پيدا کنيد:
);
}
}
return true;
}
اين کدو جاي گزينش کنيد:
);
}
}
// ===== Begin modification - Display Age and Location next to posts =====
if (!empty($profile['birthdate']) && $profile['birthdate'] !== '0001-01-01')
{
list ($birth_year, $birth_month, $birth_day) = sscanf($profile['birthdate'], '%d-%d-%d');
$datearray = getdate(forum_time());
$memberContext[$user] += array(
'age' => $birth_year <= 4 ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)
);
}
// ===== End modification =====
return true;
}
Display.template.phpقالبتونو باز کنيد
پيدا کنيد:
echo '
<li>', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
بعدش اين اضافه کنيد:
loadLanguage('Profile');
// Show the member's age
if (isset($message['member']['age']))
echo '
<li>', $txt[420], ': ', $message['member']['age'], '</li>';
anguages/index.persian.php باز کنيد
پيدا کنيد:
// Sub menu labels
اينو بعدش قرار بدين:
$txt[420] = 'سن';
منبع:
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>
ابتدا فايل زير را باز کنيد:
Sources/Load.php
اين کدو پيدا کنيد:
);
}
}
return true;
}
اين کدو جاي گزينش کنيد:
);
}
}
// ===== Begin modification - Display Age and Location next to posts =====
if (!empty($profile['birthdate']) && $profile['birthdate'] !== '0001-01-01')
{
list ($birth_year, $birth_month, $birth_day) = sscanf($profile['birthdate'], '%d-%d-%d');
$datearray = getdate(forum_time());
$memberContext[$user] += array(
'age' => $birth_year <= 4 ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1)
);
}
// ===== End modification =====
return true;
}
Display.template.phpقالبتونو باز کنيد
پيدا کنيد:
echo '
<li>', $txt['gender'], ': ', $message['member']['gender']['image'], '</li>';
بعدش اين اضافه کنيد:
loadLanguage('Profile');
// Show the member's age
if (isset($message['member']['age']))
echo '
<li>', $txt[420], ': ', $message['member']['age'], '</li>';
anguages/index.persian.php باز کنيد
پيدا کنيد:
// Sub menu labels
اينو بعدش قرار بدين:
$txt[420] = 'سن';
منبع:
<b><font color=red>فقط کاربران عضو انجمن می توانند لینک ها را مشاهده کنند</font></b>