[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)
whocarez
Registered User
Posts: 144
Joined: Sat Apr 18, 2009 9:19 pm

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

Post by whocarez » Wed Oct 19, 2016 8:22 am

andreask wrote:Hello,

new release 0.9.3-beta released.
Fixed some bugs...

Download here
thanks ...
There is still this bug with html in topic titles """.
The date for REGDATE or LAST_VISIT should be in the board format.

then I recognized in a live mail this header:

Code: Select all

X-AntiAbuse: 
Username -
X-AntiAbuse: 
User_id - 1
X-AntiAbuse: 
User IP - 127.0.0.1
Top topics are not taken from this intervall. For example I chose 90 days and 9 topics in the reminder mail there are topics shown with the last post in 2009.
And today is the 19.10.2016 and a user who was the last time 26.08.2016 online got a mail. But that are only 44 days, not 90 ...

so, still some work to do :-)

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 » Wed Oct 19, 2016 5:42 pm

Ηι,

REGDATE or LAST_VISIT are formated according to user preferences on board. If the user has not specifically selected any date format I guess the format is as set default on board.

Top topics (user's or forum's) do not take under consideration any dates.
-For the user's top topics, are the topics that the user has posted the most (regardless date).
For this part I don't know if there is something that could be done. because my thought was to remind the user his activity and I think this is the way to do it.

-For the forum's top topics, are the topics that have the most topics (again regardless date).
Here perhaps I could I set start date the last visited date of user just to give him an idea of what is active while he did not visited the board.

I don't know about the antiabuse header in mail, I don't really know if they actually do something.
Perhaps I just should remove them.
If you have any suggestions I'm open!

Last thing and most important, yes correct ext was not taking under consideration users last visit date ( :shock: OMG). In few minutes I'll update repository and links to a fixed release.
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 20, 2016 6:23 am

andreask wrote: -For the forum's top topics, are the topics that have the most topics (again regardless date).
Here perhaps I could I set start date the last visited date of user just to give him an idea of what is active while he did not visited the board.
In my humble opinion, this would be a good move. :)
Potku.net

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

- Groucho Marx

User avatar
Hartenheer
Registered User
Posts: 776
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

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

Post by Hartenheer » Thu Oct 20, 2016 8:39 am

andreask wrote: Last thing and most important, yes correct ext was not taking under consideration users last visit date ( :shock: OMG). In few minutes I'll update repository and links to a fixed release.
My English is very poor.

It is a particularly good extension
Register if you have again upload improvements?
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum

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 20, 2016 2:06 pm

Hello,
andreask wrote:Ηι,

REGDATE or LAST_VISIT are formated according to user preferences on board. If the user has not specifically selected any date format I guess the format is as set default on board.
sorry, not at all. In reminder.php are LAST_VISIT and REG_DATE defined as follows.

Code: Select all

				'LAST_VISIT'	=>	date('d-m-Y', $sleeper['user_lastvisit']),
				'REG_DATE'		=>	date('d-m-Y', $sleeper['user_regdate']),
Thats what potku mentioned here.

One can of course change it for themselfs, but it would be more convenient to have the user or board format automatically.

X-AntiAbuse headers are the standard ones. I don't know, whether it is right or not to show the localhost as the user who invoked this mass mail.

Code: Select all

			// mail headers
			$messenger->headers('X-AntiAbuse: Board servername - ' . $this->config['server_name']);
			$messenger->headers('X-AntiAbuse: Username - ' . $this->user->data['username']);
			$messenger->headers('X-AntiAbuse: User_id - ' . $this->user->data['user_id']);
			$messenger->headers('X-AntiAbuse: User IP - ' . $this->user->ip);
Top topics (user's or forum's) do not take under consideration any dates.
-For the user's top topics, are the topics that the user has posted the most (regardless date).
For this part I don't know if there is something that could be done. because my thought was to remind the user his activity and I think this is the way to do it.

-For the forum's top topics, are the topics that have the most topics (again regardless date).
Here perhaps I could I set start date the last visited date of user just to give him an idea of what is active while he did not visited the board.
But they should so, because it doesn't make sense to show the "missing" or "sleeping" user old threads. We want them back, so they should be attracted by new posts and new hot topics since there last visit. If a board gets older and it's growing, than you'll have of course big threads in the past, but users love fresh things and so we should bring these fresh interesting topics to the front. At least the topics should be sorted by date and the newest first.

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 20, 2016 3:52 pm

Huh me and my short term memory! :lol:

Now I remember that I tried to format the dates to the user's preferences but for some reason it did not work.
It had to do with the fact that I had to load the users instance and through it load the dateformat which did not work because something was missing. I'll have to go back to this if this is so important. Which I don't think so.
In this case we need only the date if I involve boards format it will show time as well. Something that is not really needed.

For the topics is like I said.
User's topics are there to remind the user where he was active. So perhaps instead of that, send topics which the user was most active and were most active during the period he was not visiting the board.
For forum's topics.
It could be as mentioned earlier. Set start date the last visited date of user just to give him an idea of what is active while he did not visited the board.

Please give me some time to materialize this...
In the meantime i've updated the link to yesterdays fix (so it should be working fine now). whoever is brave enough, please try it. :D
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 » Fri Oct 21, 2016 9:13 am

What exact changes did you make? In any case, once the Active Topics have been changed to the more recent ones, we will surely update. :)

One "negative" side effect there is, though: it's frustrating to see how hundreds or very likely thousands (remains to be seen...) of users have outdated e-mail information. Bastards... :mrgreen:
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 21, 2016 10:53 am

Whenever I do a new release I also put a small description of what was changed. here:
https://github.com/andreaskou/PHPBB_IUM/releases

In this case it was "Reminder was not taking under consideration user_lastvisit".
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 » Fri Oct 21, 2016 11:25 am

OK, that sounds like a good practice. :) I don't dare visit Github very often because it scares me...

Code: Select all

Reminder was not taking under consideration user_lastvisit
What does that mean as far as the functionality of this EXT? :)
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 21, 2016 9:23 pm

That means that reminders would sent to users that have visited the board even after the set interval.
say that you put the interval to 30 days, so today it's 21/10 - 30 = 21/09 (if I'm not mistaken)
Reminder could be sent to users that visited the board after the 21/09.
In other words "not good".
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 » Sat Oct 22, 2016 4:56 am

OK, got it, thanks. :)
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 » Sun Oct 23, 2016 1:24 am

Well, I've modified the query for user's and forum's topics. plus I did some minor changes for the x-antiabuse and send email template to admin.

x-antiabuse now uses for username the board url, userid is set to 1 (anonymous), for user ip is used the ip of the host.
When sending email templates for user_lastvisit date the interval that is set in configuration of ext is used so that there are always some topics in mail.

have fun! :D
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 » Sun Oct 23, 2016 6:19 pm

Sounds good! :)

Would there be a way to exclude certain forums or pick topics from certain forums only?
Potku.net

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

- Groucho Marx

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 » Mon Oct 24, 2016 9:04 am

andreask wrote: 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;
These have probably changed, right?

By the way, I really like the fact that you can send test e-mails. :)
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 » Mon Oct 24, 2016 9:56 am

Thanks Andreas for this new version.
Installed it and is yet running without errors. Will monitor it ...

Feature request:
a log entry for sent emails to members not only for "SENT REMINDER TO ADMIN".
Something like that: "Sent xy reminders" or "Sent reminders to x, y, z ..."

Post Reply

Return to “Extensions in Development”