RIP the guts out of PURGE

I want to rip out the guts of Dolphin's purge.  Yes, I know it can be disabled in the admin but I want to rip it out of the code.  Does anyone know where it is located?

Geeks, making the world a better place
Quote · 27 Feb 2014

Purge or pruning? I know same thing. 

Guynuked -- Dedicated server and Dolphin-friendly hosting with Zarconia.net
Quote · 27 Feb 2014

 

Purge or pruning? I know same thing. 

LOL, sorry.  The member pruning.  If the code is gone, then there is no worry of someone setting that to a value that wipes out the members.

Geeks, making the world a better place
Quote · 27 Feb 2014

keep in mind there is cron jobs for it in the database as well... 

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 27 Feb 2014

 

keep in mind there is cron jobs for it in the database as well... 

So how is the pruning working?  If I remove the cron job from the database then it will be a solution?

Geeks, making the world a better place
Quote · 27 Feb 2014

Make your settings then remove "'11'" in administration/advanced_settings.php:37

Quote · 27 Feb 2014

I don't understand why you have such trouble with this? Mine has never pruned a single member.

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 28 Feb 2014

 

I don't understand why you have such trouble with this? Mine has never pruned a single member.

Because we just helped someone that deleted almost all his members in just a few days because he set that thing wrong.  I figure it is an accident waiting to happen and if it is not there the better.

Geeks, making the world a better place
Quote · 28 Feb 2014

All of the purging functions are here.

inc\classes\BxDolCronCmd.php

To stop purging of members just remove this purge block.

//clear from `sys_acl_levels_members`
if (db_res("DELETE FROM `sys_acl_levels_members` WHERE `DateExpires` < NOW() - INTERVAL $db_clean_mem_levels DAY"))
    db_res("OPTIMIZE TABLE `sys_acl_levels_members`");


You can't remove the cron job from the database. It does more then just purge members. If you remove that database entry then all of dolphins cleanup tasks will no longer function. Including a mod i have in the market for removing unconfirmed members. Best to leave that database entry in place and just remove the section of code i mentioned.

https://www.deanbassett.com
Quote · 28 Feb 2014

 

 

I don't understand why you have such trouble with this? Mine has never pruned a single member.

Because we just helped someone that deleted almost all his members in just a few days because he set that thing wrong.  I figure it is an accident waiting to happen and if it is not there the better.

 
Oh, and i am supprized that even worked. There is a bug in dolphin that causes cron to fail when deleting a member that has a blog. The pruning of members has been buggy for quite a while. Guess not very many of his members have blogs.

https://www.deanbassett.com
Quote · 28 Feb 2014

 

Oh, and i am supprized that even worked. There is a bug in dolphin that causes cron to fail when deleting a member that has a blog. The pruning of members has been buggy for quite a while. Guess not very many of his members have blogs.

Actually none, he does not have the blog module installed on his site.

Thanks Deano for the answer, you do know your Dolphin Smile

Geeks, making the world a better place
Quote · 28 Feb 2014

There is a problem with that tho.

Once dolphin is updated, if that file is part of dolphins update then the code change you made will be reversed and pruning will come back.

https://www.deanbassett.com
Quote · 28 Feb 2014

I know my dolphin eh. Wrong. I had you remove the wrong block of code.

Put that block back and remove this one instead. I would have edited or removed the other post but the editing time has expired. YO BOONEX. I don't like that feature. I would like to be able to remove posts that could pose a problem if people actually do it. So being able to correct my mistakes would be quite helpful.


Anyhow. Remove this block instead....



        // profile_delete
        if ( $db_clean_profiles > 0) {
            $res = db_res("SELECT `ID` FROM `Profiles` WHERE (`DateLastNav` < NOW() - INTERVAL $db_clean_profiles DAY) AND (`Couple` > `ID` OR `Couple` = 0)");
            if ( $res ) {
                $db_clean_profiles_num = mysql_num_rows($res);
                while ( $arr = mysql_fetch_array($res) ) {
                    profile_delete($arr['ID']);
                }
                db_res("OPTIMIZE TABLE `Profiles`");
            }
        }

https://www.deanbassett.com
Quote · 28 Feb 2014

Anyway I can disable pruning members? Without code modifications? Set it to 50 years? 

Guynuked -- Dedicated server and Dolphin-friendly hosting with Zarconia.net
Quote · 28 Feb 2014

 

Anyway I can disable pruning members? Without code modifications? Set it to 50 years? 


Set it to 0

The code change is not necessary. I provided it by request.

https://www.deanbassett.com
Quote · 28 Feb 2014

You can set it to zero.  What happened in this case is the person was unsure what they were doing and changed that to purge in say like a day.  He had members dropping off and did not know what was happening until he came on here asking for help.  I may disable it on my site and put comment indicators; /* */ around the code block.  Then if I want it back, just remove the comment indicators.  That way you don't click and change it by accident.

Geeks, making the world a better place
Quote · 28 Feb 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.