[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!
Suggested Hosts
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)
andreask
Registered User
Posts: 533
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Sun Oct 09, 2016 7:18 pm

Hi Markus,

The status "Active" is for the forum. Meaning that they are "activated accounts".
Since they are in that list that means that they have not visited your board for the last x amount of days (amount is set in reminder settings "Interval")

The ext should start sending reminders after a few (~minutes) when you will enable it in "Inactive user reminder settings", depending on your traffic since it uses the phpbb scheduler.
Check the admin logs (in maintenance) of your board to see if there is a line that says "{### reminders were sent.}"

Yes you are right. I will schedule that for the next release.

Thanks for the feedback.
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!!!

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

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Sun Oct 09, 2016 9:53 pm

andreask wrote: The status "Active" is for the forum. Meaning that they are "activated accounts".
Since they are in that list that means that they have not visited your board for the last x amount of days (amount is set in reminder settings "Interval")
Correction.

The list show the users that have not visited the board and the amount of the days for that list is under it (filters).
In the reminders settings "Interval" you set the interval of days from current and backwards till users last visit.
Meaning that if you set an interval of 50 days in the reminders settings, a user will not be considered as a "sleeper" unless 50 days have past since his last visit.
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
potku
Registered User
Posts: 850
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by potku » Thu Oct 13, 2016 10:37 am

This is such a great EXT that we just had to go live with it. :)
andreask wrote: The ext should start sending reminders after a few (~minutes) when you will enable it in "Inactive user reminder settings", depending on your traffic since it uses the phpbb scheduler.
Check the admin logs (in maintenance) of your board to see if there is a line that says "{### reminders were sent.}"
Maybe I am being impatient, but no reminders have been sent after about two hours since activating this EXT. Hopefully later today that will have changed. :)

EDIT (about 90 minutes after the original posting time): It did send those reminders. It might have taken a little more than two hours, but it did happen.

This EXT has great potential in attracting members who have been inactive. I find that very valuable. :)
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

whocarez
Registered User
Posts: 144
Joined: Sat Apr 18, 2009 9:19 pm

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by whocarez » Thu Oct 13, 2016 5:26 pm

@andreask
installed Beta 3 on a phpbb 3.1.10 board with PHP 5.4.45-0+deb7u5 (cli) (built: Aug 30 2016 20:15:34) and got the following error message when I try to choose one of these three configuration options
  • IUM configuration
  • Inactive Users List
  • Ignore/Delete Approval List

Code: Select all

PHP Fatal error:  Can't use function return value in write context in /var/www/forum/ext/andreask/ium/acp/main_module.php on line 216

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

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Thu Oct 13, 2016 7:10 pm

Hi,

Oh wow, thats a beautiful error! :)
I guess I need to updated the requirements for php to > 5.5
But I will also try to fix this for older versions.

@whocarez
Please give me some time and I'll do my best to fix this.

Thanks for your time!


@potku

Thanks,

Basically it depends on the traffic of your board and of course if nothing else is running on the scheduler.
If you want to see if something or when it is scheduled to run you can use cron status.
Thanks again.
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!!!

whocarez
Registered User
Posts: 144
Joined: Sat Apr 18, 2009 9:19 pm

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by whocarez » Thu Oct 13, 2016 7:35 pm

andreask wrote: Thanks for your time!
No problem, I'm waiting for this extension! :-)

User avatar
potku
Registered User
Posts: 850
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by potku » Fri Oct 14, 2016 7:29 am

I know these are n00b questions, but that's me. :)

The date is now x-x-x. How could it be changed to x.x.x.?

The topics in the e-mail are "Topic". How could that be changed to Topic?
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx

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

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Fri Oct 14, 2016 2:19 pm

whocarez wrote:@andreask
installed Beta 3 on a phpbb 3.1.10 board with PHP 5.4.45-0+deb7u5 (cli) (built: Aug 30 2016 20:15:34) and got the following error message when I try to choose one of these three configuration options
  • IUM configuration
  • Inactive Users List
  • Ignore/Delete Approval List

Code: Select all

PHP Fatal error:  Can't use function return value in write context in /var/www/forum/ext/andreask/ium/acp/main_module.php on line 216
Hi, could you please install the new release?
https://github.com/andreaskou/PHPBB_IUM ... 2-beta.zip
and let me know if it worked for you?

Thanks!
potku wrote:I know these are n00b questions, but that's me. :)

The date is now x-x-x. How could it be changed to x.x.x.?

The topics in the e-mail are "Topic". How could that be changed to Topic?
No problem!

For the dates.
in andreask/ium/classes/reminder.php find:

Code: Select all

'LAST_VISIT'	=>	date('d-m-Y', $sleeper['user_lastvisit']),
'REG_DATE'		=>	date('d-m-Y', $sleeper['user_regdate']),
replace with:

Code: Select all

'LAST_VISIT'	=>	date('d.m.Y', $sleeper['user_lastvisit']),
'REG_DATE'		=>	date('d.m.Y', $sleeper['user_regdate']),
For the topics.
in andreask/ium/classes/reminder.php find:

Code: Select all

foreach ($top_user_topics as $item)
				{
					$topic_links .= PHP_EOL;
					$topic_links .= '"' . $item['topic_title'] . '"' . PHP_EOL;
replace with:

Code: Select all

foreach ($top_user_topics as $item)
				{
					$topic_links .= PHP_EOL;
					$topic_links .= $item['topic_title'] . PHP_EOL;
in andreask/ium/classes/reminder.php find:

Code: Select all

foreach ($top_forum_topics as $item)
				{
					$forum_links .= PHP_EOL;
					$forum_links .= '"' . $item['topic_title'] . '"' . PHP_EOL;
replace with:

Code: Select all

foreach ($top_forum_topics as $item)
				{
					$forum_links .= PHP_EOL;
					$forum_links .= $item['topic_title'] . PHP_EOL;
I would suggest to install the latest release as well of course!
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
RomaamoR
Registered User
Posts: 176
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by RomaamoR » Fri Oct 14, 2016 5:46 pm

Hello. In a template you can change the text of the letter?

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

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Fri Oct 14, 2016 6:22 pm

of course but keep in mind that template variables are standard. unless you change those too in the ext.
If you have any suggestions for the templates please let me know.
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!!!

whocarez
Registered User
Posts: 144
Joined: Sat Apr 18, 2009 9:19 pm

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by whocarez » Fri Oct 14, 2016 6:39 pm

andreask wrote: Hi, could you please install the new release?
https://github.com/andreaskou/PHPBB_IUM ... 2-beta.zip
and let me know if it worked for you?
Thanks, it's working. So I can play around with the options.
As far as I see the "users_per_page" value isn't shown on the Inactive user page, but I can change it from 10 to 999. But the max value is 50.

User avatar
RomaamoR
Registered User
Posts: 176
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by RomaamoR » Fri Oct 14, 2016 7:05 pm

I need to an email was in Russian. How to make?

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

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by andreask » Fri Oct 14, 2016 7:33 pm

whocarez wrote:
andreask wrote: Hi, could you please install the new release?
https://github.com/andreaskou/PHPBB_IUM ... 2-beta.zip
and let me know if it worked for you?
Thanks, it's working. So I can play around with the options.
As far as I see the "users_per_page" value isn't shown on the Inactive user page, but I can change it from 10 to 999. But the max value is 50.
Thanks, I fixed the users_per_page problem (will be on next update) min max (in pagination) I think they are hardcoded I don't think there is something that I can do. I've set min to 10 and max to 50 because less is pointless and more than 50 I think it's too much.
RomaamoR wrote:I need to an email was in Russian. How to make?
напишите на русском, я понимаю (я половина русский).
Я просто не могу писать, я использую Google Translate.
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
RomaamoR
Registered User
Posts: 176
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by RomaamoR » Fri Oct 14, 2016 7:43 pm

Добрый вечер. Как сделать что бы письма с напоминанием, на почтовый ящик пользователей приходили на русском языке ?

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7633
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: [BETA] PhpBB IUM (Inactive User Manager/reminder)

Post by JimA » Fri Oct 14, 2016 7:52 pm

RomaamoR wrote:Добрый вечер. Как сделать что бы письма с напоминанием, на почтовый ящик пользователей приходили на русском языке ?
Please post your messages on this board in English.
That way other users can all read your messages and potentially be helped as well. :)
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

Post Reply

Return to “Extensions in Development”