help to one vote per day(admin)

soborne

Member
I wanted to know if one of the forum admins could help me configure the cron to one vote per day because I happen or not, I provided the information it takes to go to the ftp or ftp, thank you very much
 

Basti

Administrator
Staff member
Please dont start a new topic for the same issue over and over again. All your topics were about the same thing.

As to your issue again, like i told you before. We provided you the code for the truncate file. And gave you an example on how to set up a cron job.
If its not working, you will have to contact your host, like i mentioned before.
If the example cron job not work, there is also nothing we can do really. You have to contact your host this or that way to know how exactly to set it up then
 

Basti

Administrator
Staff member
No worries :) Once your host replies with what exactly to put in the cron command we can help further
 

Basti

Administrator
Staff member
Looks like to me all you need to enter is:

1) what script to run: www/ is in there by default, so make it like
www/truncate_cron.php

2) Choose php version: you have option between php4 and php5,
choose php 5

3) Description of script. Doesnt really matter
Use "Vote every hour" or so..

4) Logs per email
no
 

soborne

Member
I tried to like this

http://discuz-france.fr/truncate_cron.php

but I have a blank page impossible to configure

in truncate_cron.php I put this code

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();

thank you for your help
 

Basti

Administrator
Staff member
Eh? what configure?
You dont touch this file at all, and yes all you get when you run it manually is a blank page, it doesnt output anything. All it does it clear the ip log table so votes are possible again from the same users

This file gets called by cron, did you set it up like i told you above?
 

soborne

Member
I know a lot of things such as convert mod to install a forum to install a blog website ect but its somehow put up ^ ^

thing thing I set up a site root is the truncate_cron.php but after I lost

is what someone could do in my place because I turn around

thank you to you.
 

Basti

Administrator
Staff member
Iam totally not sure where you are lost, you even have the "how to set up a cron job" linked from your hosting

Pm me your hosting login and i can set the cron up quick. Not sure what else to tell you :)
 
Top