[3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
colinshead
Registered User
Posts: 104
Joined: Sun Mar 29, 2015 11:37 am

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by colinshead »

Hi Andreas,

Does the upgrade require a database update ? That is will the data associated with the extension (at version 1) still work fine after the update ?

I would be concerned if user warning counts etc. were lost, as I have the reminder interval set to 120 days, so that user are deleted if they do not login for 360 days (i.e. effectively a year).

Is the RC2 version compatible with phpBB version 3.2.x ?

All the best

Colin
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

About data, please tell me which exact version you have. If you have any version prior to rc2 unfortunately you'll have to delete all data.
And also please show me the content of the /andreask/ium/migrations/*

ext is compatible with phpbb 3.1, 3.2 and 3.3

Many thanks!
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
colinshead
Registered User
Posts: 104
Joined: Sun Mar 29, 2015 11:37 am

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by colinshead »

Hi Andreas

In phpBB extensions manager the extension is listed as version 1.0.0

There are two php files in the directory you refer to:

add_data.php and add_module.php

Code listings follow:

<?php

/**
* This file is part of the phpBB Forum extension package
* IUM (Inactive User Manager).
*
* @copyright (c) 2016 by Andreas Kourtidis
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the CREDITS.txt file.
*/

namespace andreask\ium\migrations;

use phpbb\db\migration\migration;

/**
* Add needed data to database of phpbb
*/

class add_data extends migration
{

public function update_data()
{
return array(
array('config.add', array('andreask_ium_enable', 0)),
array('config.add', array('andreask_ium_interval', 30)),
array('config.add', array('andreask_ium_top_user_threads', 0)),
array('config.add', array('andreask_ium_top_user_threads_count', 5)),
array('config.add', array('andreask_ium_top_forum_threads', 0)),
array('config.add', array('andreask_ium_top_forum_threads_count', 5)),
array('config.add', array('andreask_ium_email_limit', 250)),
array('config.add', array('andreask_ium_self_delete', 0)),
// 0.9.0
array('config.add', array('andreask_ium_version', '1.1.0')),
array('config.add', array('andreask_ium_keep_posts', 1)),
array('config.add', array('andreask_ium_approve_del', 1)),
// 0.9.1
array('config.add', array('andreask_ium_auto_del', 0)),
array('config.add', array('andreask_ium_auto_del_days', 7)),
// 0.9.6
array('config_text.add', array('andreask_ium_ignore_forum', '[]')),
// 0.9.9
array('config_text.add', array('andreask_ium_ignored_groups', '[]')),
// cron config
array('config.add', array('send_reminder_last_gc', 0, true)),
array('config.add', array('send_reminder_gc', (60 * 60 * 24))),
array('config.add', array('reminder_limit', 250)),
);
}

static public function depends_on()
{
return array('\phpbb\db\migration\data\v310\gold');
}

public function update_schema()
{
return array(
'add_columns' => array(
$this->table_prefix . 'users' => array(
'ium_remind_counter' => array('UINT', 0),
'ium_previous_sent_date' => array('TIMESTAMP', 0),
'ium_reminder_sent_date' => array('TIMESTAMP', 0),
'ium_dont_send' => array('UINT', 0),
'ium_request_date' => array('TIMESTAMP', 0),
'ium_random' => array('VCHAR:255', 0),
'ium_type' => array('VCHAR:10', ''),
'ium_request_date' => array('TIMESTAMP', 0),
'ium_request_type' => array('VCHAR:10', ''),
'ium_random' => array('VCHAR:255', 0),
),
),
);
}

public function revert_schema()
{
return array(
'drop_columns' => array(
$this->table_prefix . 'users' => array(
'ium_remind_counter',
'ium_previous_sent_date',
'ium_reminder_sent_date',
'ium_dont_send',
'ium_request_date',
'ium_random',
'ium_type',
'ium_request_date',
'ium_request_type',
'ium_random',
),
),
);
}

}



<?php

/**
* This file is part of the phpBB Forum extension package
* IUM (Inactive User Manager).
*
* @copyright (c) 2016 by Andreas Kourtidis
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the CREDITS.txt file.
*/

namespace andreask\ium\migrations;

use phpbb\db\migration\migration;

class add_module extends migration
{

private $schema_name='ium_reminder';

static public function depends_on()
{
return array('\phpbb\db\migration\data\v31x\v316');
}

// public function effectively_installed()
// {
// return phpbb_version_compare($this->config['andreask_ium_version'], '0.9.1', '>=');
// }

public function update_data()
{
return array(
// add module
array('module.add', array(
'acp',
'ACP_CAT_DOT_MODS',
'ACP_IUM_TITLE'
)),
array('module.add', array(
'acp',
'ACP_IUM_TITLE',
array('module_basename' => '\andreask\ium\acp\main_module',
'modes' => array('ium_settings', 'ium_list', 'ium_approval_list'),
),
)),
);
}
}


All the best

Colin
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

In that case there will not be any data loss.
You have the version with the new structure.
So you can update without any worries.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
colinshead
Registered User
Posts: 104
Joined: Sun Mar 29, 2015 11:37 am

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by colinshead »

Thanks Andreas

All the best

Colin
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

Hello, anyone else has updated and using the last update of the ext?
I'm about to submit for validation!
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
Havym
Registered User
Posts: 62
Joined: Sun Jan 29, 2017 3:50 pm
Location: Netherlands
Name: Marco

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by Havym »

No not yet. I have some extensions that are not ready for 3.3.0 and im waiting for an update of those extensions.
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

Yes but you can still update the extension.
It's compatible with 3.1 3.2 and 3.3
But you'll need to change the lang files.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
Havym
Registered User
Posts: 62
Joined: Sun Jan 29, 2017 3:50 pm
Location: Netherlands
Name: Marco

Re: [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by Havym »

I have updated to 1.1.3. RC2 and still no problems yet.
User avatar
KlausiMaus
Registered User
Posts: 188
Joined: Sat Nov 15, 2014 4:55 pm

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by KlausiMaus »

I got this message
[phpBB Debug] PHP Warning: in file [ROOT]/ext/andreask/ium/cron/send_reminder.php on line 66: A non-numeric value encountered
The version is shown as 1.0.0 and version control does not work, there are also some missing translations in German.
Klaus (http://forum.kuhnert.ch/) :: Keep it simple, stupid :!:
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

Hi KlausiMaus,

Have you updated to the new version 1.1.3?
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
User avatar
KlausiMaus
Registered User
Posts: 188
Joined: Sat Nov 15, 2014 4:55 pm

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by KlausiMaus »

I've taken the release from github https://github.com/andreaskou/PHPBB_IUM ... 1.0.1-rc.2

Now I tried this one https://github.com/andreaskou/PHPBB_IUM ... stable.zip
It seems that is version 1.1.3, it's confusing :?

Now I have no German Translations anymore :!:
Only first part, like this:
IUM-Konfiguration
Einstellungen Inaktive Benutzer-Erinnerung

Enable Advanced Inactive User Reminder :
If enabled, the extension will start sending reminders to "sleepers".
Ja Nein

Send test e-mail:
A test e-mail will be sent to "max.mustermann.com"
Klaus (http://forum.kuhnert.ch/) :: Keep it simple, stupid :!:
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

Yes I've updated the link with the new version just yesterday.
And as I wrote earlier the translations needs fixing because I had to separate the file.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
Dezdan
Registered User
Posts: 180
Joined: Thu Apr 17, 2003 8:18 pm

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by Dezdan »

Thank you! I hope to see this Ext listed in the phpbb Ext DB one day!

I edited the file at ext/andreask/ium/language/en/email/sleeper.txt to fit my application/board. However, when I send myself the test email, my edits are not reflected. My default lang is en, so am I missing something? Fresh install of 1.1.4 on phpBB 3.3.0 on php 7.2.27.

*EDIT* Clearing my cache fixed the problem.

One problem I am still having is that "User is able to self delete" is set to 'Yes', however, that link is not in the test email.

Thanks!
andreask
Registered User
Posts: 636
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [3.3][RC] [3.1][3.2][RC] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask »

Hi Dezdan,

Thanks.

Well the selfdelete link is only for real request I have not made possible to login to it if the user has admin/mod privileges.
To risky I would say. And I really haven't thought about faking it (the page) for now.

What you can do is have a test account and send 2 reminders.
From the second reminder the account should receive the selfdelete link.
You can then test it with this account.

All the best!
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
Post Reply

Return to “Extensions in Development”