عملت منتدى للمشرفين وهو مخفي عن الأعضاء لكن المشكله أنه تظهر عناوين المواضيع في هذا القسم في إحصاءات المنتدى.
كيف يمكن إستثناء منتدى المشرفين من هذا الهاك؟؟
هاك إحصاءات المنتدى:
[Top 5 Hack]
On :
/index.php
Find > "Get total Posts"
Exactly before that paste the above code :
------------
// Top 5 Posters
$posts5 = $DB_site->query('SELECT userid,username,posts FROM user ORDER BY posts DESC LIMIT 5');
while ($posts5top = mysql_fetch_array($posts5)):
++$posts5topnbsp;
$posts5name .= "» $posts5top[username]
";
$posts5post .= "$posts5top[posts]
";
endwhile;
// Top 5 Attachments
// Top 5 New Members
$user = $DB_site->query('SELECT userid,posts,username,joindate FROM user ORDER BY joindate DESC LIMIT 5');
while ($usertop = mysql_fetch_array($user)):
++$usertopnbsp;
$username .= "» $usertop[username]
";
$userposts .= "$usertop[posts]
";
endwhile;
// Top 5 New Members
// Top 5 Thread Replys
$pop = $DB_site->query('SELECT title,threadid,lastpost,lastposter,views FROM thread ORDER BY lastpost DESC LIMIT 5');
while ($poptop = mysql_fetch_array($pop)):
++$poptopnbsp;
$popthread .= "» $poptop[title]
";
$poplastposter .= "» $poptop[lastposter]
";
$popviews .= "$poptop[views]
";
endwhile;
// Top 5 Thread Replys
// Top 1 Most Popular Thread
$pop1 = $DB_site->query('SELECT title,threadid,views FROM thread ORDER BY views DESC LIMIT 1');
while ($pop1top = mysql_fetch_array($pop1)):
++$pop1topnbsp;
$pop1title .= "» $pop1top[title]";
$pop1views .= "$pop1top[views]";
endwhile;
// Top 1 Most Popular Thread
// Top 1 Most Rated Thread
$rated = $DB_site->query('SELECT title,threadid,votenum FROM thread ORDER BY votenum DESC LIMIT 1');
while ($ratedtop = mysql_fetch_array($rated)):
++$ratedtopnbsp;
$ratedtitle .= "» $ratedtop[title]";
$ratedrating .= "$ratedtop[votenum]";
endwhile;
// Top 1 Most Rated Thread
eval("$top5threadstats = "".gettemplate("g_statistics")."";");
// Top 5 Statistics
// Top 1 Most Rated Thread
eval("$top5threadstats1 = "".gettemplate("g_statistics2")."";");
// Top 5 Statistics
--------------
Edit Template :
Forum Home Page Templates > ForumHome [Edit]
Add $top5threadstats where you want to display the stats
---------------
Add template :
Name : g_statistics
Content :
Statistics
Top 5 Posters:
User Names:Posts:$posts5name$posts5post
Top 5 Newest Members:
User Names:Posts:$username$userposts
Top 5 Last Posters:
Last Posters:$poplastposter
Popular thread is $pop1title | $pop1views views.
Rated thread is $ratedtitle | $ratedrating votes.
---------------