Groups

I have created a group, so people can join this group for the day..but I want to clear it automatically  the next day at around 6am for example...but without deleting or modifying this group...I want this to be done automatically. Is there a way...??

Hope you understand my question.

Mike
Quote · 21 Dec 2013

you can run a cron with an sql that empties the groups fans each day

caredesign.net
Quote · 21 Dec 2013

If its a single group and you know the exact id of it, you can add a cron record in "sys_cron_jobs" table in the "eval" field.

Something like this...

$GLOBALS['MySQL']->query("DELETE FROM `bx_groups_fans` WHERE `id_entry` = '0'");
$GLOBALS['MySQL']->query("UPDATE `bx_groups_main` SET `fans_count` = '0' WHERE `id` = '0'");

This is to give you an idea of whats needed. Don't just "run" it on production site. Make your changes and be sure what you want.

so much to do....
Quote · 21 Dec 2013

I never know who will be in that group...the group I created is actually like a status..it is used to tell everyone that tonight you want to meet at couple. by the next day, it has to be blank for the next evening, new couples that want to meet....hard to explain lolll, thanks for the help ;)

Mike
Quote · 21 Dec 2013

How do I ring the group ID, is it the titles ?

Mike
Quote · 5 Jan 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.