jair101 Posted October 1, 2017 Posted October 1, 2017 5 minutes ago, FGN said: ok, one dummy question Maybe its been so long since i used Rules, but can you explain to me where i see to make the "argument"? I thought there was a tab that said that? @jair101 Thats when you create custom actions, its here: You can read more about it here:https://ipsguru.net/documentation/rules/general/customactions But as I mentioned, leave that part for now. Try to setup the rule with event account is validated, then register a user on your board and see if it works. Fierce God 1
Fierce God Posted October 1, 2017 Posted October 1, 2017 ok, so i tried this, and it still makes the same default url for the member But something to know, when i make that custom action from the first go at this...that is what caused the url settings to not display global data on the drop down idk, i will keep playing with it
Fierce God Posted October 1, 2017 Posted October 1, 2017 ok, so i got it to work.....but only when i put member account is created....and it changes the url path to this?? lol https://fungamingnetwork.com/member-token @jair101
Fierce God Posted October 1, 2017 Posted October 1, 2017 YeSSSSSSSS!!!!!!!! @jair101 got it buddy had to use this Ok, now we need to figure out how to make all already existing members already signed up to have this url https://fungamingnetwork.com /[member:name]
jair101 Posted October 1, 2017 Posted October 1, 2017 Yeah, you need to replace the token with the one provided by the rule Glad you figured it out. Now to create the rule that will make aliases for all existing members go to custom action, create one custom action and add Member as argument. Create a new rule and for event use the created custom action. For the action when it asks for "Map to url" you should have the member argument from the created custom action. For path, again add the token provided by the rules app. Report back here when done so we can do the scheduling after that Fierce God 1
Fierce God Posted October 1, 2017 Posted October 1, 2017 Ok, after doing it exactly your way, this is what i get when getting to the Map Url and the drop down for the Map Url is that what you see and the other is PHP Code
Fierce God Posted October 1, 2017 Posted October 1, 2017 Ok, so Event/Global Data option is not working if the rule is made from a custom action?
Fierce God Posted October 1, 2017 Posted October 1, 2017 yea, this is crazy for me...for some reason it's not giving me the Custom Action in Map Url
jair101 Posted October 2, 2017 Posted October 2, 2017 If you want to give me acp access, feel free to PM me. But otherwise it is difficult to give advice from distance. Looks like something about your custom action is a bit off and it still is not assigned to the event. Fierce God 1
joshuaj Posted October 3, 2017 Posted October 3, 2017 (edited) @FGN I got this to work. The key is you need to schedule the action manually. The rule won't execute until the event is triggered so you have to execute your action manually as @jair101 mentioned. Also, don't forget to use the proper token in Rule -> Action. Once you set up the rule , then you'll go to the Custom Action and execute it manually. Works like a charm. I wanted to do this to remove the member ID number from the url. Makes it look better in my opinion. Edited October 3, 2017 by joshuaj Fierce God 1
Fierce God Posted October 3, 2017 Posted October 3, 2017 @joshuaj Much appreciated We got this to work earlier, thanks so much for real!! But we are now working on trying to change the referral link to the same as the alias profile link I have all members as not being able to change names ever if you know how to do this, be much appreciated too
Wildcard Chris Posted October 3, 2017 Posted October 3, 2017 (edited) On 10/1/2017 at 1:45 AM, jair101 said: If you don't mind, maybe you can give more details about your idea. While it is difficult to check the notification, maybe it is possible to work with the event that creates this notification... Hey, It's actually PM's that I need to check, so say for example the logged in user gets a PM that contains a certain word I am going to have their browser execute a java script. I just need to know how to either check the PM the user gets or the Notification (as I have setup a custom notification also). Thanks! Edited October 3, 2017 by Wildcard Chris
Cyrem Posted October 6, 2017 Posted October 6, 2017 Would it be possible to trigger a modal? Can only see options for inline message and notification.
Kevin Carwile Posted October 6, 2017 Author Posted October 6, 2017 No, a modal isn't even part of the IPS UI. Besides, that is not a data operation, it is a UI operation, and rules operates on the data layer. You can't manipulate the UI with rules.
Cyrem Posted October 7, 2017 Posted October 7, 2017 (edited) 15 hours ago, Kevin Carwile said: No, a modal isn't even part of the IPS UI. Besides, that is not a data operation, it is a UI operation, and rules operates on the data layer. You can't manipulate the UI with rules. I didn't necessarily mean it needed to be an action, should have made that clear, any method to achieve it would be fine. Anyway, think I worked out how I'm going to do it, custom data field, a little js in the template... works just fine. Edited October 7, 2017 by Cyrem
Dll Posted November 27, 2017 Posted November 27, 2017 Hoping somebody maybe able to help with the php code for this, as we have no-one who does php here. In short, I'd like to create a custom data field which counts the number of reports a post has received. I have the rules set up to do other things when a post is reported, but so far have been unable to make the counter which we can use to trigger other actions. Any help will be much appreciated. Thanks
Kevin Carwile Posted November 27, 2017 Author Posted November 27, 2017 1 hour ago, Dll said: Hoping somebody maybe able to help with the php code for this, as we have no-one who does php here. In short, I'd like to create a custom data field which counts the number of reports a post has received. I have the rules set up to do other things when a post is reported, but so far have been unable to make the counter which we can use to trigger other actions. Any help will be much appreciated. Thanks What is the point you are stuck on? If you are doing other things when a post is reported, add another action in the same spot to increase your custom data field value by 1. No PHP needed.
JTHastings Posted November 27, 2017 Posted November 27, 2017 (edited) Is there a way to use rules to change themes? Something like... If a Member's Theme is equal to "X" Change Theme to "Y" Else Change Theme to "Z" Edited November 27, 2017 by JTHastings
Kevin Carwile Posted November 27, 2017 Author Posted November 27, 2017 No. Generally, rules is not a tool that can be used to control UI.
Dll Posted November 27, 2017 Posted November 27, 2017 1 hour ago, Kevin Carwile said: What is the point you are stuck on? If you are doing other things when a post is reported, add another action in the same spot to increase your custom data field value by 1. No PHP needed. It seems to need php to do anything with a topic based custom data field, unless I'm doing something wrong there?
Kevin Carwile Posted November 27, 2017 Author Posted November 27, 2017 There are stock actions built in for custom data fields.
jair101 Posted November 27, 2017 Posted November 27, 2017 @Kevin Carwile, I actually also tried to setup this and when you add the action to update the custom field, the only option for the source is PHP: I suppose if $content is returned here it should be fine, but I don't know. Dll 1
Dll Posted November 27, 2017 Posted November 27, 2017 1 hour ago, Kevin Carwile said: There are stock actions built in for custom data fields. Perhaps this is a bug then - as I see the same as @jair101 - the stock functions work great for member based data fields, but none show for topic or topic comment based fields.
Recommended Posts