Set the hours between votes?

Mark

Administrator
Staff member
It's 24, called in the new day function. No option to change it.... But....

You can easily run a Cron job to empty the ip_log database table every X hours.
 

legendz

AcemanWolf
On the next update (1.1), can you make the votes every 12 hours not 24? The popular gaming topsites are 12 hours.
 

Basti

Administrator
Staff member
We are not a Gaming only script. Please understand that. If you must, do as Mark said set up a cron job.
truncate_cron.php
Code:
<?php
//===========================================================================\\
// VisioList is a proud derivative work of:                                  \\
// Aardvark Topsites PHP                                                    \\
// Copyright (c) 2000-2009 Jeremy Scheff.  All rights reserved.              \\
//---------------------------------------------------------------------------\\
// http://www.aardvarktopsitesphp.com/                http://www.avatic.com/ \\
//---------------------------------------------------------------------------\\
// This program is free software; you can redistribute it and/or modify it  \\
// under the terms of the GNU General Public License as published by the    \\
// Free Software Foundation; either version 2 of the License, or (at your    \\
// option) any later version.                                                \\
//                                                                          \\
// This program is distributed in the hope that it will be useful, but      \\
// WITHOUT ANY WARRANTY; without even the implied warranty of                \\
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General \\
// Public License for more details.                                          \\
//===========================================================================\\
 
// Help prevent register_globals injection
define('ATSPHP', 1); //REMOVE ONCE ALL PLUGINS ARE UPDATED
define('VISIOLIST', 1);
$CONF = array();
$FORM = array();
$TMPL = array();
 
// Set encoding for multi-byte string functions
mb_internal_encoding("UTF-8");
 
// Change the path to your full path if necessary
$CONF['path'] = '.';
 
// Connect to the database
// Set the last argument of $DB->connect to 1 to enable debug mode
require_once ("{$CONF['path']}/settings_sql.php");
require_once ("{$CONF['path']}/sources/sql/{$CONF['sql']}.php");
$DB = "sql_{$CONF['sql']}";
$DB = new $DB;
$DB->connect($CONF['sql_host'], $CONF['sql_username'], $CONF['sql_password'], $CONF['sql_database'], 0);
 
$DB->query("TRUNCATE TABLE {$CONF['sql_prefix']}_ip_log", __FILE__, __LINE__);
 
 
$DB->close();
Upload to root, where settings_sql.php is
And then set up your cron job using cpanel
 

cajkan

Active Member
Its not about gaming related, remember this guys - TOPLIST RESET EACH 24 HOURS

Heres quote from F.A.Q. :
You can vote once every 24 hours per internet connection but we really recommend you vote once every 12 hours because sometimes you enter wrong captcha and other things can go wrong as well, we have made tests that show that voting once every 12 hours instead of every 24 hours can give up to a 1/4 more votes.
 

Basti

Administrator
Staff member
That plugin wont work with that, as it works with our standard vote times.
 
Top