Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Toplist Hack Details »»
Toplist Hack
Version: 1.00, by Slynderdale Slynderdale is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-29-2002 Last Update: Never Installs: 61
 
No support by the author.

This isnt the same as Dj'Sap's toplist scripted, i scripted my own, i do give him credit for the original and giving me the idea to make my own, my toplist has alot of cool features and easy to use.
It let members add one site only to the toplist where only other members can vote for it, the site with the most votes get higher on the list.

Members can only vote once a day though.
Members can also add a banner and image button if they want
People can click on the banner or button and will be taking to a page with the code to add the banner or button to there site to link them to the toplist to vote.
Theres 2 ways to vote:
1. go to the toplist and click vote on the site
2. Theres two kinds of links, one brings you to the toplist and automaticly vote for you and the other automaticly vote for you but brings you to the site you voted for

You have to sign up on the forums to vote

It keeps track on how many total an d daily ins (votes) and outs

Admins can see a specail edit and delete link next to the vote link, admins can delete any site and edit almost every thing about it, including url, description, title, button and banner url, total and daily ins and outs.

Admins are allowed to add more then one site

People can choose from a drop down menu on how many toplists get showed on there screen, the default is 50, you can choose from 10,25,50,75,100 and all, you can esily add more if you want.

Some screens shots are in the zip file.

[edit]
Heres a live demo: http://www.gods-network.com/forums/toplist.php

Also screen shots are posted in posts below
[/edit]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 01-23-2003, 11:11 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to integrate Flash banners and buttons into this hack...how can I go about doing this?
Reply With Quote
  #113  
Old 01-25-2003, 11:41 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack here, but now adays sites have FLASH...AND THIS HACK isn't compatible with FLASH...

how can it be integrated with FLASH banners and buttons????????
Reply With Quote
  #114  
Old 02-20-2003, 12:58 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

integrate FLASH into this hack, how can i do it?
Reply With Quote
  #115  
Old 02-27-2003, 04:50 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this hack but there is one major thing I do not like.

The person has to be a memeber to vote.

To be a member to add a site makes sence. But how many are going to click vote then sign up for a page.

Lets face it most do not take the time. Sure that is where ones site content helps. But just getting going could prove hard.

Any ideas?
Reply With Quote
  #116  
Old 03-02-2003, 06:26 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

N/M Hacked it to check ip instead of names.

Very cool script..
Reply With Quote
  #117  
Old 03-05-2003, 11:23 PM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by insanctus
N/M Hacked it to check ip instead of names.

Very cool script..
how?
Reply With Quote
  #118  
Old 03-06-2003, 08:29 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added a table in mysql called iplog

Then in toplist.php I changed the part under ######In#### to.

PHP Code:
// ####### In #######
if  ($action=="in") {
if (
$topid=="") {
$goto="toplist.php?s=$session[sessionhash]";
eval(
"standardredirect("".gettemplate("toplist_error_blankid")."","$goto");");
exit;
}
$iplog $REMOTE_ADDR;
$result=$DB_site->query("SELECT inid FROM toplist_hitsin WHERE topid='$topid' AND date='$today' AND iplog='$REMOTE_ADDR'");
list(
$voted) = mysql_fetch_row($result);
if (
$voted == ''){
$DB_site->query("INSERT INTO toplist_hitsin (topid, accountid, date, iplog ) VALUES ('$topid','$accountid','$today' ,'$REMOTE_ADDR')");
$DB_site->query("UPDATE toplist_sites SET topin=topin+1, todaytopin=todaytopin+1 WHERE topid='$topid'");
}
doshutdown();
header("location: toplist.php?s=$session[sessionhash]");

Now if they are not a memeber they can vote in.... not out.... but if you wanted to do that I am sure it be easy to add.

Mine now only checks ip's per day. Hope that helps
Reply With Quote
  #119  
Old 03-06-2003, 09:57 AM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is very helpful!> I'm not all that familiar w/ mysql.. can you tel me how you added the table iplog? did you have to run a specific query?

thanks a ton>!
Reply With Quote
  #120  
Old 03-06-2003, 10:08 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok .. In phpadmin in your forum data base find this "toplist_hitsin"

Now click it then click browse.

You will see things link inid , topid, date.

Now scroll down and find. Add new field 1 at end of table. Hit go.

In Field put iplog then hit save... and your done
Reply With Quote
  #121  
Old 03-06-2003, 10:24 AM
mikeB's Avatar
mikeB mikeB is offline
 
Join Date: Dec 2001
Location: CT
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



ok when I try to add new field 1 at end of table, I go to whats displayed in the above image

then when I try and add iplog I get this error:


is there something else I need to add to make it happen?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06352 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete