Membership vote!

B

Blink70v

Guest
In a future release, will it be possible to choose when members can vote?
1 daily
1 every 2 hours
1 every 4 hours
Etc. ....

thank you
 

Mark

Administrator
Staff member
no that is not a planned core feature. But its easy enough to make a plugin to empty the IP log table every X hours.
 
B

Blink70v

Guest
I can not make CRON task on my webhost. How can I do? I do not know anything about programming!

Thank you.
 

Mark

Administrator
Staff member
No this is not planned for a future version. A plugin is the way to handle this.
 
B

Blink70v

Guest
What are the important points to develop a plugin like this?
 

Basti

Administrator
Staff member
Just like mark said, clear ip_log table every xx hours. Currently it gets emptied once a day.
You will need to make a plugin that runs a mysql query that trunctate that table each xx hours
 

Mark

Administrator
Staff member
yup, this needs to run every X hours. Usually a cron or psuedo cron to handle this.


PHP:
  $DB->query("TRUNCATE TABLE {$CONF['sql_prefix']}_ip_log", __FILE__, __LINE__);
 
Top