Log in

View Full Version : NanoEntity stats hack gone. So question.


snyx
09-24-2001, 06:03 AM
Okay installed NanoEntity (i believe it was his) stats hack. NOW its gone, and I have a problem. Here is the code. (sorry if im not suppost to post it)

// Top 5 Statistics BY NanoEntity
// Top 5 Attachments
$attach5 = $DB_site->query('SELECT attachmentid,counter,filename FROM attachment ORDER BY attachmentid DESC LIMIT 5');
while ($attach5top = mysql_fetch_array($attach5)):
++$attach5topnbsp;
$attach5file .= "$attach5top[filename]<br>";
$attach5hits .= "$attach5top[counter]<br>";

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 .= "<a href=member.php?s=$session[sessionhash]&action=getinfo&userid=$usertop[userid]>$usertop[username]</a><br>";
$userposts .= "$usertop[posts]<br>";

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 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$poptop[threadid]>$poptop[title]</a><br>";
$poplastposter .= "$poptop[lastposter]<br>";
$popviews .= "$poptop[views]<br>";

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 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$pop1top[threadid]>$pop1top[title]</a>";
$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 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$ratedtop[threadid]>$ratedtop[title]</a>";
$ratedrating .= "$ratedtop[votenum]";

endwhile;
// Top 1 Most Rated Thread
eval("\$top5threadstats = \"".gettemplate("g_statistics")."\";");
// Top 5 Statistics BY NanoEntity

The hack works great! But see in my attachment, it lists 6 of the last attachments, and 5 of there hits. Could someone help fix this? It sets everything outta wack, I went though the code as best I could, and couldn't find what the problem was? Why is it showing 6 attachment names, and only 5 hits?

Thanks!
snyx

snyx
09-24-2001, 07:22 AM
I dumped the whole attachment thing, and worked in the top 5 posters (a sinch) Plus I revamped the template, so everything is all linned up. (btw there wasnt 6 showing, it was just me being a idiot) If anyone wants my template (works for attachments) or my top 5 posters (simple, SIMPLE, index.php edit) PM me.

snyx
09-24-2001, 07:24 AM
Here is my example, of my template editing, and top 5 posters.

Neo
09-24-2001, 07:41 AM
hey, in your statistics you have top 5 posters how did you get that there? and do you know how to put up a top 5 newest threads? that would really help...

and i cant really see anything anything wrong with the attach files hmm...

snyx
09-24-2001, 08:35 AM
Originally posted by snyx
btw there wasnt 6 showing, it was just me being a idiot
no problem. just me being a goof.
so you want top 5 new THREADS, not replyed threads?
yeah I can probolly work that!
the top five posters was easy, you want it?

Neo
09-24-2001, 09:06 AM
[QUOTE]Originally posted by snyx

no problem. just me being a goof.
so you want top 5 new THREADS, not replyed threads?
yeah I can probolly work that!
the top five posters was easy, you want it?

snyx
09-24-2001, 09:57 AM
sorry dood, it's 4am so im really not in the mood to be editing it all now. let me look into it tomrrow for ya.

Neo
09-24-2001, 10:04 AM
[QUOTE]Originally posted by snyx
sorry dood, it's 4am so im really not in the mood to be editing it all now. let me look into it tomrrow for ya.

tweak
09-24-2001, 10:48 AM
snyx do you think i can have this hack please?

Neo
09-24-2001, 10:52 AM
[QUOTE]Originally posted by Tweak
snyx do you think i can have this hack please?

DarkOne
09-24-2001, 01:27 PM
snyx,

Thanks man for posting the hack, stupid vbulletin devs deleted it, they suck, they keep baning and I keep reg, lol, so funny, why dont they just leave me alone, I aint doing anything wrong.

Damn they are pain in the ass,

anyhow, you can do anythign with the hack, all you have to do is change the values in anyone of them.


// 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 .= "<a href=showthread.php?s=$session[sessionhash]&threadid=$poptop[threadid]>$poptop[title]</a><br>";
$poplastposter .= "$poptop[lastposter]<br>";
$popviews .= "$poptop[views]<br>";

endwhile;
// Top 5 Thread Replys

Neo
09-24-2001, 01:49 PM
hey since you put the hack up could you tell me how to get the link for the file attachments in.. i wasnt able to get it.

LuBi
09-24-2001, 01:57 PM
I'd also like to get the stats hack that is pictured above in another post on this thread. Where can I get a link?

Neo
09-24-2001, 02:02 PM
look up ^^^^ 2 places

LuBi
09-24-2001, 02:03 PM
thought it was the basics.. I want the whole stats hack.

Originally posted by neogeniseva
look up ^^^^ 2 places

Neo
09-24-2001, 02:05 PM
[QUOTE]Originally posted by LuBi
thought it was the basics.. I want the whole stats hack.

LuBi
09-24-2001, 02:06 PM
oh, so that is all of it? posters, threads, and all the toyz ok I'll get
on it. thanks.

edit- actually it's just the threads stats

// #######################################
TOP5.THREAD.STATS
// #######################################

anyone have the full hack I can DL?

snyx
09-24-2001, 02:38 PM
looking good DarkOne or whatvere :p
icq me if ya can, wanna ask ya sumthing
but otherwise nice edit, I will re-release your hack if I can
credit to ya, but a few mods of mine?

snyx

Wayne Luke
09-24-2001, 06:50 PM
This hack was created by a person known to have stolen vBulletin and allow its unlawful distribution. Is this a person you really want to support? Is he going to pay the difference in what it costs for Member Area support or new licenses if we are forced to increase our prices because of the activities of him and others like him?

It is your choice, you can support the pirates and pay higher prices or you can support Jelsoft and pay the lower prices you are used to. It is your choice.