Madalyalı Rep Sistemi

Mephistophelés

Bronz Üye
Katılım
Eylül 10, 2012
Mesajlar
3,858
Puanları
38
Yaş
42
Tepkime puanı
2
Display.template.php de bulun
Kod: [Seç]
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

Bununla değiştirin
Kod: [Seç]
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
if($message['member']['karma']['good'] <= 5) {
echo ' <img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 10) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 20) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 35) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 55) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 80) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 110) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}elseif ($message['member']['karma']['good'] <= 145) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 185) {
echo'<img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><img src="' . $settings['images_url'] . '/rep1.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 200) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 240) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 290) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 345) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 405) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 470) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 540) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 620) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 710) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 810) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 920) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 1040) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><img src="' . $settings['images_url'] . '/rep2.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] <= 1200) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><br />';
}
elseif ($message['member']['karma']['good'] >= 1201) {
echo'<img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><img src="' . $settings['images_url'] . '/madalya.gif" border="0" /><br /><br />';
}

Ekteki resimleri de kullandığınız tema nın images klasörüne atın.
Not: İsimlerini değiştirmeyin...
 
Üst