Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
iacas Posted July 25, 2018 Posted July 25, 2018 (edited) @Kevin Carwile I'm seeing re-engagement emails being sent out to people who logged in as recently as the day before. I posted on your site ten days ago but haven't gotten a response. https://ipsguru.net/forums/topic/858-member-re-engagement-emails-going-to-active-members Any idea why the emails aren't being pushed back another two months when a user has been active on the site? Does it require an actual sign-in? Does the user have to POST something? Edited July 25, 2018 by iacas
Kevin Carwile Posted July 26, 2018 Author Posted July 26, 2018 You need to make sure that the action being scheduled for the follow up email has a "scheduling keyphrase" on it. If not, then the action will not be re-scheduled, it will have multiple occurances of the scheduled action.
iacas Posted July 26, 2018 Posted July 26, 2018 14 minutes ago, Kevin Carwile said: You need to make sure that the action being scheduled for the follow up email has a "scheduling keyphrase" on it. If not, then the action will not be re-scheduled, it will have multiple occurances of the scheduled action. It does, as the post on your forum shows. You advised to use the member ID as the unique key phrase.
Kevin Carwile Posted July 27, 2018 Author Posted July 27, 2018 Ok, then when you say they "logged in" as recently as yesterday... do you mean they visited the site, or they actually logged in using username and password? Because the "User has logged in" event which triggers the email to be rescheduled only occurs when they actually log in via the login form. That could be part of the problem if you have a very long session timeout on your server. You can also turn the debugging option on for the rule and make sure that it is operating without error and actually rescheduling the follow up action for users when they do log in.
iacas Posted July 27, 2018 Posted July 27, 2018 7 hours ago, Kevin Carwile said: Ok, then when you say they "logged in" as recently as yesterday... do you mean they visited the site, or they actually logged in using username and password? Because the "User has logged in" event which triggers the email to be rescheduled only occurs when they actually log in via the login form. That could be part of the problem if you have a very long session timeout on your server. Well that's probably it. Perhaps I'll look into changing it to when a user posts or something. Or is there a better way to do it so that current, active, logged in members don't get puzzling emails about how we miss them one day after they make 15 posts?
Kevin Carwile Posted July 27, 2018 Author Posted July 27, 2018 If your session timeout is 30 days, and you want to ensure at least 30 days since the member has last logged in, then you set the scheduled follow up action for 60 days in the future. This ensures that the minimum amount of time since a user has last logged in is at least 30 days and at most 60. If you want to use posting as a trigger, then you can do that also. That's the beauty of rules. Pick the best solution for you.
Unlucky Posted August 2, 2018 Posted August 2, 2018 Hi, I have installed rules lite app and imported the iawards rules that come in his expansion pack The rules task is running every minute however nobody who has more than the 50 piecies of content are getting an award My account has more than 50 topics and when I created a new one yesterday I didn't get an award. What could be wrong? Thanks
Kevin Carwile Posted August 2, 2018 Author Posted August 2, 2018 If there is a rule in particular that you are wanting to troubleshoot, edit the rule and turn the debug option on for it. Then you can perform the action again which you expect the rule to apply to and check the debug log to see if it contains an error or if it did not meet its conditions or if it even ran at all. That would be what I would start with.
Fighting 13th Posted August 7, 2018 Posted August 7, 2018 Hi there, I'm trying to do the following: When: Application submission approved If: empty Action: Notify applicant with a "Welcome Message," and Award applicant a welcome award. Setting it up the first time, it gave me the award and welcome message...I know why now, but I don't know how I can make it so the applicant gets these messages/awards. Any ideas? Thanks! Ryan
Kevin Carwile Posted August 7, 2018 Author Posted August 7, 2018 What is an application submission and how does it get approved?
Fighting 13th Posted August 7, 2018 Posted August 7, 2018 3 hours ago, Kevin Carwile said: What is an application submission and how does it get approved? It's one of the apps integrated into the rules application. They get approved through the moderator queue/admin panel. I'm guessing some sort of php code is needed?
christopher-w Posted August 7, 2018 Posted August 7, 2018 Loving this application. So many useful things you can do with it. :cool One very quick question. When I add tags to a post using a rule, it removes the post prefix, (although leaves other tags in place). Is there a workaround for this?
Kevin Carwile Posted August 8, 2018 Author Posted August 8, 2018 @Fighting 13th You may have a wrong setting selecting in your rule configuration. It's hard to say. But maybe you selected the wrong option for the user to grant the award to. It should be the application author and not the currently logged in user. @christopher-w Are you using the 'set tags explicitly' option on the rule action or are you using 'add tags'?
christopher-w Posted August 8, 2018 Posted August 8, 2018 (edited) 11 minutes ago, Kevin Carwile said: Are you using the 'set tags explicitly' option on the rule action or are you using 'add tags'? I tried both ways Kevin. Edit. Using Lite btw, let me know if I need to upgrade. Chris Edited August 8, 2018 by christopher-w
Kevin Carwile Posted August 8, 2018 Author Posted August 8, 2018 @christopher-w Try the following patch file and see if you get the expected results. ./applications/rules/extensions/rules/Definitions/Content.php Content.php
christopher-w Posted August 8, 2018 Posted August 8, 2018 @Kevin Carwile I'm running in the IPS cloud. Can I patch there?
Fighting 13th Posted August 8, 2018 Posted August 8, 2018 (edited) 5 hours ago, Kevin Carwile said: @Fighting 13th You may have a wrong setting selecting in your rule configuration. It's hard to say. But maybe you selected the wrong option for the user to grant the award to. It should be the application author and not the currently logged in user. I don't see any option like "application author." This is all I see: Edited August 8, 2018 by Fighting 13th
Kevin Carwile Posted August 9, 2018 Author Posted August 9, 2018 On 8/8/2018 at 8:57 AM, christopher-w said: @Kevin Carwile I'm running in the IPS cloud. Can I patch there? Nope. Sorry. It will require a new version build to be released (unknown timeframe). 22 hours ago, Fighting 13th said: I don't see any option like "application author." This is all I see: Well then I would question the event which you are creating the rule under. The event is going to determine what data is available. If it is the content approved event provided by rules, then the content item should be an event argument and the content author can be derived from that. If it is another event provided by the application plugin, then without the actual application as one of the event arguments, there is no way to know who the author of the application is if the rule doesn't even have access the application which has been approved. Fighting 13th 1
christopher-w Posted August 11, 2018 Posted August 11, 2018 On 8/8/2018 at 4:57 PM, christopher-w said: @Kevin Carwile I'm running in the IPS cloud. Can I patch there? On 8/9/2018 at 8:42 PM, Kevin Carwile said: Nope. Sorry. It will require a new version build to be released (unknown timeframe). Understood. I'll upgrade to the pro version for my sites as soon as it's updated.
christopher-w Posted August 18, 2018 Posted August 18, 2018 (edited) On 8/9/2018 at 8:42 PM, Kevin Carwile said: Nope. Sorry. It will require a new version build to be released (unknown timeframe). A quick FYI. 1.4.4 does not fix the prefix problem. I've tried various timings, immediately, after page load, 1 minute after etc. And in each case prefix is removed when a tag is added using a rule. Edited August 18, 2018 by christopher-w
Fighting 13th Posted August 18, 2018 Posted August 18, 2018 On 8/9/2018 at 3:42 PM, Kevin Carwile said: Well then I would question the event which you are creating the rule under. The event is going to determine what data is available. If it is the content approved event provided by rules, then the content item should be an event argument and the content author can be derived from that. If it is another event provided by the application plugin, then without the actual application as one of the event arguments, there is no way to know who the author of the application is if the rule doesn't even have access the application which has been approved. I got it working through a sort of work-around ? (Using the topic being accepted/not accepted as the event trigger). I have another rule I'm working on....would it be possible with this app to notify members the day of/day before a Calendar Event about the event itself? I was looking at conditions for an "Event was created" trigger and the best thing I saw was that you could do a "compare dates" condition and compare the current time to some aspect about the event--whether it's creation date/update date/last post date. There's nothing I can find in any of the triggers or conditions about the event taking place/finishing itself....am I missing something or is this correct?
Kevin Carwile Posted August 21, 2018 Author Posted August 21, 2018 On 8/18/2018 at 12:20 PM, Fighting 13th said: I have another rule I'm working on....would it be possible with this app to notify members the day of/day before a Calendar Event about the event itself? I was looking at conditions for an "Event was created" trigger and the best thing I saw was that you could do a "compare dates" condition and compare the current time to some aspect about the event--whether it's creation date/update date/last post date. You could dig into the IPS\calendar\Event object class to see what kind of methods you could use to retrieve a usable date within your rules. I found this one with a quick look over: /** * Find the next occurrence of an event starting from a specified start point * * @param \IPS\calendar\Date $date Date to start from * @param string $type Type of date to check against (startDate or endDate) * @return \IPS\calendar\Date|NULL */ public function nextOccurrence( $date, $type='startDate' ) Fighting 13th 1
Taylor M. Posted August 21, 2018 Posted August 21, 2018 trying to run a action every time a subscription is bought is this possible?
Kevin Carwile Posted August 21, 2018 Author Posted August 21, 2018 There are invoice actions available in the commerce rules expansion. You can check the invoice for your subscription product when it is paid and run your appropriate action then.
Fighting 13th Posted September 30, 2018 Posted September 30, 2018 I'm guessing it's true, but if I upgrade from the Lite to Full, I won't lose my rules I've built right?
Recommended Posts