Parašė ozzWANTED· 2008 Bir. 30 18:06:30
#9
Atsidarai PMA, users table. Susikuri du naujus laukelius:
user_reads ir user_downloads.
Tada atsidarai news.php. Susirandi eilutę:
$result2 = dbquery("UPDATE ".$db_prefix."news SET news_reads=news_reads+1 WHERE news_id='$readmore'");
Po ja įdedi šitą eilutę:
$result3 = dbquery("UPDATE ".$db_prefix."users SET user_reads=user_reads+1 WHERE user_id='".$iuserdata['user_id']."'");
Atsidarai downloads.php, susirandi eilutę:
$result = dbquery("UPDATE ".$db_prefix."downloads SET download_count=download_count+1 WHERE download_id='".$_GET['download_id']."'");
Po ja dedi šitą:
$result3 = dbquery("UPDATE ".$db_prefix."users SET user_downloads=user_downloads+1 WHERE user_id='".$iuserdata['user_id']."'");
Atsidarai profile.php, susirandi:
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>".$locale['u043']."</b></td>
<td class='tbl1'>".number_format($data['user_posts'])."</td>
</tr>
Po juo dedi šitą:
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>Perskaitė naujienų:</b></td>
<td class='tbl1'>".number_format($data['user_reads'])."</td>
</tr>
<tr>
<td width='1%' class='tbl1' style='white-space:nowrap'><b>Parsisiuntė failų:</b></td>
<td class='tbl1'>".number_format($data['user_downloads'])."</td>
</tr>
Viskas.