• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • ๐Ÿ˜Œ This community is user driven. Be polite with other users.
    • ๐Ÿ‘‰ Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • ๐Ÿ’ธ Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • โœ… Confirm that the server meets the System Requirements
    • ๐Ÿ”ฅ Check for any available Hotfix - your issue could be already reported/fixed
    • ๐Ÿ“š Read documentation - It will be required to Debug and understand Errors for a faster support response

Delete User's images after a certain time as well

DarkTexas ๐Ÿฆ„

Chevereto Member

I've changed according to this answer by @Rodolfo (THREAD) I have changed my app/lib/classes/class.image.php to:

    public static function getAvailableExpirations()
        $string = _s('After %n %t');
        $translate = [ // Just for gettext parsing
            'minute' => _n('minute', 'minutes', 1),
            'hour'    => _n('hour', 'hours', 1),
            'day'        => _n('day', 'days', 1),
            'week'    => _n('week', 'weeks', 1),
            'month'    => _n('month', 'months', 1),
            'year'    => _n('year', 'years', 1),
        $table = [
            ['day', 3],
            ['day', 7],
            ['month', 1],
        foreach ($table as $expire) {
            $unit = $expire[0];
            $interval_spec = 'P' . (in_array($unit, ['second', 'minute', 'hour']) ? 'T' : null) . $expire[1] . strtoupper($unit[0]);
            $return[$interval_spec] = strtr($string, ['%n' => $expire[1], '%t' => _n($unit, $unit . 's', $expire[1])]);
        return $return;

However, when a User does register themself and uploads a image the expire time (for the upload, checked via PHPMyAdmin) is set to NULL unless the user goes into their settings and hits "Save", where all 3 options are available. Without changing anything but pressing "Save" the next upload does have a expire time.

Is that a bug or do I need to do something else?