icedream Posted May 26, 2015 Posted May 26, 2015 Hi Kevin,How do you do?I can upgrade to latest GC demo but fail to upgrade to latest rule lite, could you confirm this?
Wayne B Posted May 26, 2015 Posted May 26, 2015 Hi @Kevin CarwileWe are desperately trying to remove the need to join a collaboration so that it is auto join without having to make a request etc. I was hoping to establish this with ECA's for Rules by Event: Collab is being ViewedCondition: Member is not currently a member of collabAction: Add as member of collabOr something similar. Is there anyway you could make the addition to GC on a per category basis so we can disable the need to join at all and that all members auto join on visiting the collar for instance or build the additional ECA's into Rules to allow this to happen as above for example.Any thoughts?Thanks
Kevin Carwile Posted May 26, 2015 Author Posted May 26, 2015 Just by viewing a collab you become a member?Ok, well... as you said, that should be possible with rules after I am able to add those actions to the ECA set that ships with GC. I only added the events to the latest release due to time constraint. Actions will be included in the next.But you realize that if you set the group membership setting of the collab to be open without approval, anybody can join the collab just by clicking the join button. At that point, they automatically become an active member.
Wayne B Posted May 26, 2015 Posted May 26, 2015 Just by viewing a collab you become a member?Ok, well... as you said, that should be possible with rules after I am able to add those actions to the ECA set that ships with GC. I only added the events to the latest release due to time constraint. Actions will be included in the next.But you realize that if you set the group membership setting of the collab to be open without approval, anybody can join the collab just by clicking the join button. At that point, they automatically become an active member.Hi KevinYes I get that they can simply join by hitting the join button and that is as we have it set up now but it is not obvious they need to join for example and when accessing via tapatalk it simply delivers a permission denied message if they try posting because collabs come up in VNC even if the member is not a member. I understand you said you were looking to enhance the VNC for collabs in the fullness of time but we would still want the flexibility of determining if content from a collab category should show in VNC if member has or has not joined the collab for instance so we can customise it perfectly with as much flexibility on a collab category basis.In terms of the requirement to join without approval, that would work as would invites and approvals dependant upon the use, for example we are just about to introduce a clubs & hobbies collaboration category where the requirement to join would actually be perfect for however we have used a different category to segregate off certain aspects of our main forum to give a bespoke layout for those content areas so that category is actually part of the main forum, it is now just so much better with the flexibility GC brings however we want the membership of those to be seamless so I guess join on view with a not condition of if already a member of that collab as I could then add the conditions of if in a specific category and if in a specific group for example.It would really work well for one aspect of our site. Hope that makes sense and thank you for your response.Thanks
Kevin Carwile Posted May 26, 2015 Author Posted May 26, 2015 Ya, I understand. The complete set of ECA's that you'll need to fit those needs aren't far away. Hang in there.I like the way you're stretching the software out. Keep up the good work! Andy S and Wayne B 2
Wayne B Posted May 26, 2015 Posted May 26, 2015 They are both amazing pieces of kit @Kevin Carwile and you deserve an enormous amount of credit for both of them, they have absolutely transformed the way we use IPB4 and for me IPB should pay you a significant amount of money and incorporate these into the core so you can retire to a desert island and live the dream .... in the meantime I thank you for your flexibility in developing both applications. I have let you a review on the GC application back on the 29th April but it is still showing as hidden and not yet approved. Not sure who approves them, you or IPB but its there pending somebody seeing it Kevin Carwile and abetts 2
GrooveOnBeat Posted May 27, 2015 Posted May 27, 2015 In 3x, I used to create loads of conditional statements like if this member then this action, or if member viewing is in this group then this action, or if a member is viewing content by this member ID/name then this action, and etc. I see that you have member conditions in IPS Rules. First, can this application perform conditions as mentioned and even more? Secondly, do the rules apply to specified pages and/or all pages?
Kevin Carwile Posted May 27, 2015 Author Posted May 27, 2015 In 3x, I used to create loads of conditional statements like if this member then this action, or if member viewing is in this group then this action, or if a member is viewing content by this member ID/name then this action, and etc. I see that you have member conditions in IPS Rules. First, can this application perform conditions as mentioned and even more? Secondly, do the rules apply to specified pages and/or all pages?Yes to everything you said.It works on the ECA (Events, Conditions, Actions) design principle. So I guess you could say conditions is its middle name. GrooveOnBeat 1
GrooveOnBeat Posted May 28, 2015 Posted May 28, 2015 Yes to everything you said. It works on the ECA (Events, Conditions, Actions) design principle. So I guess you could say conditions is its middle name. Hehe, clever! Thanks for replying. So lets say I have a set condition that I want in the profile page that will replace the original template for specific members. Is it possible to do? I am considering the full version, but I want to make sure the app fits my needs before taking the plunge.
Kevin Carwile Posted May 28, 2015 Author Posted May 28, 2015 So lets say I have a set condition that I want in the profile page that will replace the original template for specific members. Is it possible to do? I am considering the full version, but I want to make sure the app fits my needs before taking the plunge.Not with rules. What you are describing is not any sort of workflow automation, it is theme switching. To do what you are describing will take modifications that operate on the theme layer. Rules provides automation tools for manipulating the data processing layer.There is a Rules Lite version of the application in the marketplace which is FREE. It's an excellent way to push buttons before you take any plunges. GrooveOnBeat 1
GrooveOnBeat Posted May 29, 2015 Posted May 29, 2015 Not with rules. What you are describing is not any sort of workflow automation, it is theme switching. To do what you are describing will take modifications that operate on the theme layer. Rules provides automation tools for manipulating the data processing layer. There is a Rules Lite version of the application in the marketplace which is FREE. It's an excellent way to push buttons before you take any plunges. It's ok. I can do the template edits. It's just a matter of adjusting to IPB 4 vs 3x conditional syntax. I still have many uses for IPS Rules for automating data stuff. One of the things I'm looking at is member incentives through rep integration using IPS Rules. I'm also interested in the Commerce suggestion earlier in the thread. Kevin Carwile 1
Rifling Matters Posted May 30, 2015 Posted May 30, 2015 Im trying to create a rule where if a topic is moved into a specific forum change the topic authors primary group. I'm guessing I need to use the "container" data but I'm not sure how.
Kevin Carwile Posted May 30, 2015 Author Posted May 30, 2015 (edited) You don't need anything fancy to accomplish that. Just use these settings:Event: Topic has been movedConditions:Topic is in certain forums(optional) Member is in a certain member group (to prevent members in other groups from being changed)Actions:Change the primary group of a member change-author-group-on-topic-move.xml Edited May 30, 2015 by Kevin Carwile
GrooveOnBeat Posted May 30, 2015 Posted May 30, 2015 So I took the plunge and purchased this mod. I'll start playing with it once installed. Kevin Carwile 1
Pinto Posted May 30, 2015 Posted May 30, 2015 Is it possible so when user signs in for first time they are redirected to edit profile I've been trying with no luck
Kevin Carwile Posted May 30, 2015 Author Posted May 30, 2015 Is it possible so when user signs in for first time they are redirected to edit profile I've been trying with no luck Rule: Redirect new members to edit profileEvent: Member logged in to systemConditions:Member attribute values (Member has joined within the last 24 hours)Actions:Redirect to another page (Redirect to the members profile edit page) redirect-new-members-to-edit-profile.xml Pinto and kar3n2 2
Pinto Posted May 31, 2015 Posted May 31, 2015 At first its a but confusing seeing all these examples is helping understand it better
GrooveOnBeat Posted May 31, 2015 Posted May 31, 2015 (edited) Rule: Redirect new members to edit profile Event: Member logged in to system Conditions: Member attribute values (Member has joined within the last 24 hours) Actions: Redirect to another page (Redirect to the members profile edit page) redirect-new-members-to-edit-profile.xml I noticed that a PHP redirect works, but not a direct URL? Another question. Sometimes new members don't log in immediately. If I were to set the time for a month, will the rule that a member logged in for the first time still apply? Assuming that the new member logged in within that month. Ok, one more question. Is there a way to disable Rules? Edited May 31, 2015 by GrooveOnBeat
Kevin Carwile Posted May 31, 2015 Author Posted May 31, 2015 I noticed that a PHP redirect works, but not a direct URL? Not sure what you mean here. The action will redirect to any url you give it. Another question. Sometimes new members don't log in immediately. If I were to set the time for a month, will the rule that a member logged in for the first time still apply? Assuming that the new member logged in within that month. The way I set that rule up is pretty basic. It redirects on login if the member was registered within the last 24 hours... regardless of the number of times they have logged in. If you want to only redirect one time and one time only, you will need a slightly more advanced rule which tracks if the redirect has been done for them yet. Ok, one more question. Is there a way to disable Rules? Yeah. Each rule has the enable/disable button on it. Just click it to enable/disable. GrooveOnBeat 1
GrooveOnBeat Posted May 31, 2015 Posted May 31, 2015 (edited) I must say this is a pretty fun mod to play around with. Not sure what you mean here. The action will redirect to any url you give it. Whenever I manually configure the redirected URL the action doesn't work. I stay on whatever page I logged in. Maybe it's because I'm using FURL's? Also, I get this error below when I go back to edit the action that was manually configured. I have to delete and redo the action. It doesn't happen when I use PHP redirects. If using PHP, instead of the "return" function is it also acceptable to use "header"? header("Location: http://www.redirect-url-here.com"); exit(); The way I set that rule up is pretty basic. It redirects on login if the member was registered within the last 24 hours... regardless of the number of times they have logged in. If you want to only redirect one time and one time only, you will need a slightly more advanced rule which tracks if the redirect has been done for them yet. I like simple. I'll need to play with it more then. What I want to do is a one time event which takes place the first time a member logs in. Either I'm messing up on the logic side, or that my conditions are off. It's like I'm missing that key piece. Maybe an attribute of less than 1 time: Member has joined, member has logged in, member has logged in < 1 time, redirect to URL Update: I think I got it. I used the "Number value", set the comparison type to 1 less than 2, data used Member that logged in, Source set to 1 Yeah. Each rule has the enable/disable button on it. Just click it to enable/disable. Silly me. I didn't even check to see that the green "ENABLED" toggles enable/disable. Thanks! Edited May 31, 2015 by GrooveOnBeat
Vikestart Posted May 31, 2015 Posted May 31, 2015 Feature request: Allow to add by group for "Manual configuration", and not just by invidual members. For instance, create a new member notification for all members of the specified groups.
Kevin Carwile Posted May 31, 2015 Author Posted May 31, 2015 Feature request: Allow to add by group for "Manual configuration", and not just by invidual members. For instance, create a new member notification for all members of the specified groups. Instead of manual configuration to select individual members, choose PHP Code and select all members from a particular group: $group_id = 1; // Change to ID of member group to select return iterator_to_array( \IPS\Db::i()->select( 'member_id', 'core_members', array( 'member_group_id=?', $group_id ) ) ); Vikestart 1
Kevin Carwile Posted June 1, 2015 Author Posted June 1, 2015 @GrooveOnBeat,The EX2 error turned out to be a bug. It's been corrected in the latest release. Go grab that.As far as the conditions to check if the member has logged in only 1 time, there is not a login counter built into IPS core that you can check with a condition, so in order to accomplish this you will have to create your own counter. That is why the configuration gets a little more complicated, but just by a little.Add a custom "integer" data field attached to member via rules ACPCreate a rule that is triggered when a member logs in. In the rule, add an action that increments the custom data field you created in step 1.Then in your other rule which does the redirect, you can check this custom data field to check if the counter is under your threshold of logins. GrooveOnBeat 1
GrooveOnBeat Posted June 1, 2015 Posted June 1, 2015 (edited) @GrooveOnBeat, The EX2 error turned out to be a bug. It's been corrected in the latest release. Go grab that. Whatever you did, the manually configured URL works and error has been corrected. Thanks! @As far as the conditions to check if the member has logged in only 1 time, there is not a login counter built into IPS core that you can check with a condition, so in order to accomplish this you will have to create your own counter. That is why the configuration gets a little more complicated, but just by a little. Add a custom "integer" data field attached to member via rules ACP Create a rule that is triggered when a member logs in. In the rule, add an action that increments the custom data field you created in step 1. Then in your other rule which does the redirect, you can check this custom data field to check if the counter is under your threshold of logins. I wondered whether IPS had a login counter. Ok, I'll play around with configuring such a rule using the integer data field. For the meantime I was playing around with a simple login redirect to the Calendar. With a rule that a Member is logged in, I created another rule (Boolean) of true with a 1 is less than 2. The threshold value is set to 1. On a test account with more than 1 login sessions, when I set the rule to less than 1, I do not get redirected when I log in. However when I set the rule to greater than 1, I get redirected to Calendar when I log in. Both results were correct. If IPS does not have a login counter, or some method to know whether a member has logged in or not, the rules should not have worked, but they did. How is that possible? Edited June 1, 2015 by GrooveOnBeat
Kevin Carwile Posted June 1, 2015 Author Posted June 1, 2015 On a test account with more than 1 login sessions, when I set the rule to less than 1, I do not get redirected when I log in. However when I set the rule to greater than 1, I get redirected to Calendar when I log in. Both results were correct. If IPS does not have a login counter, or some method to know whether a member has logged in or not, the rules should not have worked, but they did. How is that possible? My head just spun around on my shoulders. I have no idea what kind of rule you configured. PM me regarding this issue and include an exported version of your rule so I can check out what you've got going on.
Recommended Posts