Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ndboost Posted September 15, 2015 Posted September 15, 2015 I have a question, How can i send an email or a PM to members of a group rather than specifying members individually?
Kevin Carwile Posted September 15, 2015 Author Posted September 15, 2015 27 minutes ago, ndboost said: I have a question, How can i send an email or a PM to members of a group rather than specifying members individually? The email recipient blind carbon copy field for the email action can accept an array of members as the argument. So it would be a matter of setting the data source of the BCC field to PHP Code and then using php code to return an array of members from the group.
Kevin Carwile Posted September 15, 2015 Author Posted September 15, 2015 On 9/12/2015, 11:06:44, Joel R said: Okay, so I have a very simple use case of Automation Rules: I'd like to send notifications, status updates, and emails whenever a member achieves a new rank or reputation for community re-engagement. Will I need to create my own "rank" and "reputation" system within Automation Rules, or is there a way to base my data upon the ACP ranks and reputation that I've defined? I can see how the reputation event is based upon a member receiving a new reputation, but I don't see how I can trigger the condition of meeting the next reputation level. Any advice would be much appreciated. Its because core member ranks are calculated on the fly and there is no single promotion "event" to tie into. Therefore you must create your own. The ways to actually go about that are numerous. But you could add a custom data field to members to track their current rank, and then send emails when that data changes. swordfisherman and Joel R 2
OrdosAlpha Posted September 20, 2015 Posted September 20, 2015 Just tried to download Automation Rules Lite 1.2.2 in order to try it out, and Avast is blocking the download due to the file being infected with the PHP:Agent-UM trojan. Anyone else encountering this?
Kevin Carwile Posted September 21, 2015 Author Posted September 21, 2015 7 hours ago, OrdosAlpha said: Just tried to download Automation Rules Lite 1.2.2 in order to try it out, and Avast is blocking the download due to the file being infected with the PHP:Agent-UM trojan. Anyone else encountering this? Its not infected with any virus. It is however encoded as the non-encoded version only comes with the full purchase. Avast is just seeing that the files are encoded.
Paul.F Posted September 21, 2015 Posted September 21, 2015 (edited) Had to disable the trial as it was slowing the server to a crawl. Once disabled the site ran fine. weird Edited September 21, 2015 by pmflav
Kevin Carwile Posted September 21, 2015 Author Posted September 21, 2015 (edited) 7 minutes ago, pmflav said: Had to disable the trial as it was slowing the server to a crawl. Once disabled the site ran fine. weird Some have been reporting such performance issues, while others have no problems at all. I've not had the opportunity to examine any site that is experiencing an obvious performance issue to determine the cause. If you'd like to let me look under the hood I might be able to nail it down. Edited September 21, 2015 by Kevin Carwile
Paul.F Posted September 21, 2015 Posted September 21, 2015 (edited) How far under the hood do you need? Just wondering if it's the encryption that's bothering it Edited September 21, 2015 by pmflav
Kevin Carwile Posted September 21, 2015 Author Posted September 21, 2015 9 hours ago, pmflav said: How far under the hood do you need? Just wondering if it's the encryption that's bothering it FTP + ACP. I think its more likely that there are some processing loops going on for one reason or another.
wohali Posted September 21, 2015 Posted September 21, 2015 (edited) Ignore. Edited September 21, 2015 by wohali
NoGi Posted September 21, 2015 Posted September 21, 2015 (edited) About to try this out. I'm wanting to notify certain members that there are 0 post reply threads that have been open for 3+hrs which need attending to. I think I've got my rule setup right, but how are they run? Is there a way to manually run to see if it's working? Or is debug mode and waiting the only way? no-reply-to-topics.xml Edited September 21, 2015 by NoGi
NoGi Posted September 22, 2015 Posted September 22, 2015 Ok, what am I doing wrong? I've created a rule but it doesn't seem to run at all? Also, what's with the permissions for the app? Should it be on for all as atm I've only enabled for admin.
NoGi Posted September 22, 2015 Posted September 22, 2015 Sorry for the spam but you can't edit older posts. I just paid for the full version and installed, had some extra options which helped to setup my rule but it's still failing? The logs show: no-reply-to-topics.xml
Kevin Carwile Posted September 22, 2015 Author Posted September 22, 2015 @NoGi What is your strategy? If you want to check if a topic has not had any posts after 3 hours and then take action, you will need to schedule that process to happen for each topic after it is created. First, create a custom action in the rules ACP and add an \IPS\forums\Topic as an action argument. Then create a rule that is triggered by topic creation. Make sure to add a condition which checks that the boolean value "new" from the event is TRUE (since the same event is also triggered anytime a topic is updated). In this rule, add the action to schedule your "custom action" for 3 hours in the future. Use the created topic as the argument to your custom action. Finally, create another rule which uses your "custom action" as the event. Since your custom sction will be triggered for a topic 3 hours after it was created (because of that first rule), you add your conditions to check the number of replies on the topic and take appropriate actions here.
NoGi Posted September 22, 2015 Posted September 22, 2015 (edited) 7 hours ago, Kevin Carwile said: What is your strategy? If you want to check if a topic has not had any posts after 3 hours and then take action, you will need to schedule that process to happen for each topic after it is created. Hi @Kevin Carwile, yes this is pretty much what I am trying to do. I am struggling at the moment with how to do this, sorry to sound like a total newbie. I've created a custom action and scheduled it to run every 3 hours. Then I created the rule but no idea if this has been created correctly? Edited September 22, 2015 by NoGi
Kevin Carwile Posted September 23, 2015 Author Posted September 23, 2015 Ya, you dont want to be manually scheduling the action to happen every 3 hours. What you want is to schedule the action as a follow up when a topic is actually created. And your condition to check if the content is new is not going to work because you are using php code that returns nothing. You should use a truth value condition to check the "new" argument and not be attempting to use it as a content item. I'll put together something for you when I get a chance.
NoGi Posted September 23, 2015 Posted September 23, 2015 (edited) 1 hour ago, Kevin Carwile said: I'll put together something for you when I get a chance. Oh thank you so much if you can, that would be most helpful. I've managed to apply some of your suggestions though Edited September 23, 2015 by NoGi
Kevin Carwile Posted September 23, 2015 Author Posted September 23, 2015 (edited) 4 hours ago, NoGi said: Oh thank you so much if you can, that would be most helpful. Try this: inactive-topic-rules.xml You'll want to add your actions to the "Take action on inactive topics" rule. Edited September 23, 2015 by Kevin Carwile NoGi 1
NoGi Posted September 23, 2015 Posted September 23, 2015 Thanks, I don't think the new topic part is working. In debug I am seeing this on topic creation: Topic is new Evaluated FALSE
NoGi Posted September 24, 2015 Posted September 24, 2015 Has anyone got a rule working to test for a new topic? I keep getting FALSE as the response to the test.
Kevin Carwile Posted September 24, 2015 Author Posted September 24, 2015 2 hours ago, NoGi said: Has anyone got a rule working to test for a new topic? I keep getting FALSE as the response to the test. This appears to be a bug. Looking into it further... NoGi 1
Kevin Carwile Posted September 25, 2015 Author Posted September 25, 2015 (edited) 4 hours ago, NoGi said: Has anyone got a rule working to test for a new topic? I keep getting FALSE as the response to the test. This was a bug that was introduced in the last release. A new version (1.2.4) is now available which will fix this problem. You will need to edit your condition that checks the boolean value again, reselect the correct event argument, and save. Edited September 25, 2015 by Kevin Carwile
NoGi Posted September 25, 2015 Posted September 25, 2015 (edited) Ok, making some progress yah!! Boolean returns true now. Just need to sort out why the action failed: Schedule the follow up checkOperation skipped (missing argument) No argument available for: topic 09/25/2015 1:37 PM Edited September 25, 2015 by NoGi
Kevin Carwile Posted September 25, 2015 Author Posted September 25, 2015 1 hour ago, NoGi said: Ok, making some progress yah!! Boolean returns true now. Just need to sort out why the action failed: Schedule the follow up checkOperation skipped (missing argument) No argument available for: topic 09/25/2015 1:37 PM Glad to hear it. Moving forward, let's take this to a private message.
Joel R Posted September 29, 2015 Posted September 29, 2015 Hi, do you know if the Rules App creates a database table for rules_arguments? If so, I have a corrupt database that needs to be manually fixed. See image below for error.
Recommended Posts