vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Toplist Hack (https://vborg.vbsupport.ru/showthread.php?t=38076)

GoTTi 01-23-2003 11:11 PM

I would like to integrate Flash banners and buttons into this hack...how can I go about doing this?

GoTTi 01-25-2003 11:41 PM

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????????

GoTTi 02-20-2003 12:58 AM

integrate FLASH into this hack, how can i do it?

insanctus 02-27-2003 04:50 AM

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?

insanctus 03-02-2003 06:26 PM

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

Very cool script..

mikeB 03-05-2003 11:23 PM

Quote:

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

Very cool script..

how?

insanctus 03-06-2003 08:29 AM

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 :)

mikeB 03-06-2003 09:57 AM

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>!

insanctus 03-06-2003 10:08 AM

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 :)

mikeB 03-06-2003 10:24 AM

http://www.cloud10.org/gallery/data/500/1mysqlerror.jpg

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:
http://www.cloud10.org/gallery/data/...ysqlerror1.jpg

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


All times are GMT. The time now is 04:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete