PDA

View Full Version : top 5 on index.php like Synx has


Sarge
09-29-2001, 10:48 PM
<a href="http://www.form-kaos.com/forums/" target="_blank">http://www.form-kaos.com/forums/</a>

Can anyone tell me how he threw the top 5 posters down there?

I would like to add that
Thanks in advance

Sarge

almighty one
09-29-2001, 11:39 PM
yeah that is sweet me want too :D will have to squeeze it in between the world times and soemwhere if it is put out

Sarge
09-30-2001, 03:05 AM
anyone??

Goldfinger
09-30-2001, 04:53 AM
This used to be listed under the released forum but it was deleted because the guy who released is known for using a non-licensed copy of vbulletin. So the vbulletin staff decided to delete the post. But im sure one of the Php gurus on the boards will step up and make this hack again.. at least i hope so :).

Goldfinger
09-30-2001, 04:53 AM
Personally id love to add this to my boards its real cool :).

tweak
09-30-2001, 11:27 AM
Well Pm me with you email ill send you this hack if you want it. or however you want it.

its Great. i will not post it.

almighty one
09-30-2001, 11:27 PM
well anyone who gets this from tweak or maybe tweak can answetr this in the top 5 posters it has the first posters name and post count wrong the post ount is on the line above the name and ill be darned i cant fix it i have messed it all up lol if anyone can tell me where the error is in the code i would appriciate it alot thankx

tweak
09-30-2001, 11:46 PM
I dont have a Problem see mine looks fine.

almighty one
09-30-2001, 11:57 PM
well here uis mine notice the top posters post count is on line above name

tweak
10-01-2001, 12:08 AM
maybe there is a space in your code Hmmm let me run a test or 2

almighty one
10-01-2001, 12:17 AM
well i copied it exacr from the hack i had to add soem editin to my world times it conflicted it now i wonder if it had soemthing to do when i pruned soem users or not im not sure oh well maybe ill redo the hack one time and see

tweak
10-01-2001, 12:19 AM
Np.. im tryin to see if i can get it like yours :) when i figure it out i will for sure let you know

almighty one
10-01-2001, 12:22 AM
ok id appriciate it the funny thing is my test board doesnt appear this way only my main board and both boards have same thing installed except test board has alot of extras this is puzzling to me i copied the index of test board to the main forum nopw and i copid the template but it apears this way i tried moving things around and it doesnt do anything at all now i installed the hack then i pruned soem users and updated counters i wonder if that caused it dont know

almighty one
10-01-2001, 12:30 AM
ok the thing that is different in my two forums is my online users ARE AT TOP ON MY MAIN BOARD AND ON TEST BOARD THEY ARE NOT SHOULD THIS MAKE A DIFFERENCE INT HE CODING?

tweak
10-01-2001, 12:35 AM
I know whats doing it but have no solution when your posts hit 1000 it does that! hmmmm

almighty one
10-01-2001, 12:37 AM
ahhhhhh i c so if the user has 1000 posts or more it will space between them hmmmm ok snyx whats the secret snyx has users with 2000 posts and it doesnt do that i ahve also noticed it only does it to the first user not any user after that maybe ther is a way to put some space soemwhere or soemthing or make it call 6 users with one user not showing or soemthing i dont know i dont write hacks just sue them :D hope soemone can fix this problem

tweak
10-01-2001, 12:53 AM
OK I FIXED IT! i removed ? those things

but if you have the hack installed look for this in INDEX


$posts5post .= "$posts5top[posts] ?<br>";

And make it like this........ I took all these out ? and added Dots

$posts5post .= "$posts5top[posts] ?<br>";

OR you dont need nothing it can be like this

$posts5post .= "$posts5top[posts] <br>";



Have your PICK :) In the new instructions i will add this to the bottom so others will know.

almighty one
10-01-2001, 01:28 AM
yes that fixed it thanx alot man appriciate your help

tweak
10-01-2001, 01:38 AM
:D NO PROB! :p

snyx
10-02-2001, 05:49 AM
yeah my templates are all redone
sorry boys, hope you got it

TheComputerGuy
10-02-2001, 03:05 PM
I love that hack...Thanks for it...

see it in action at www.webmafiaforums.com ....I think I am going to add a place for flags...its kinda hard to explain but I will show ya when I am through

maverick1236
10-04-2001, 09:39 PM
anyway to make it top 10-and exclude admin usergroup?
otherwise-its awesome

tweak
10-05-2001, 02:57 AM
What i cant figure out is HOW TO BLOCK the posts from showing in Private sections.

Sarge
10-14-2001, 04:11 AM
YES!
HOw do we not show private sections?

FWC
10-14-2001, 04:35 AM
Originally posted by Sarge
YES!
HOw do we not show private sections? I got this modification to the threads query from Firefly:

And last but not least, to exclude forums from the thread list, use this:

$pop = $DB_site->query("SELECT title,threadid,lastpost,lastposter,views FROM
thread WHERE forumid<>'X' AND forumid<>'Y' AND forumid<>'Z' ORDER BY
lastpost DESC LIMIT 5");

Just replace x, y and z with the forums you want to exclude

halo1
10-14-2001, 11:49 PM
valid here, theres a better version of it comeing out, but not for index.php, maybe later

its going to be stand alone .php script that lists all kinds of info from the forum.

hololith.com

Neo
10-15-2001, 07:17 PM
[QUOTE]Originally posted by FWC
I got this modification to the threads query from Firefly:

And last but not least, to exclude forums from the thread list, use this:

$pop = $DB_site->query("SELECT title,threadid,lastpost,lastposter,views FROM
thread WHERE forumid<>'X' AND forumid<>'Y' AND forumid<>'Z' ORDER BY
lastpost DESC LIMIT 5");

Just replace x, y and z with the forums you want to exclude

almighty one
10-16-2001, 02:55 AM
Originally posted by neogeniseva

where do i put this?
i belive query means it needs to be executed via phpmyadmin or telnet

FWC
10-16-2001, 04:56 AM
Originally posted by neogeniseva

where do i put this? That query is already in the Last 5 hack without the WHERE forumid part. Just add the WHERE fourmid <>='X' stuff into the query and make the beginning and ending ' in the query "

I hacked a bunch of stuff out of the Last 5 hack, made it a last 10 hack and added another hack (from Firefly) for top posters of the week into it. You can see it on my board.

almightyone
11-06-2001, 02:22 AM
i need the fix for this for version 220 i got it working just if i add the mentioned fix to hide hidden forums it get a parse error can anyone tell me how to hide them in 220 with no parse error thanx

FWC
11-06-2001, 05:16 AM
Originally posted by almightyone
i need the fix for this for version 220 i got it working just if i add the mentioned fix to hide hidden forums it get a parse error can anyone tell me how to hide them in 220 with no parse error thanx It works in 2.2.0. I'm running the modified version. I made no changes when I upgraded. You must have a syntax error in the query. Make sure it's exactly like above.