Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
October 1, 20177 yr 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.
October 1, 20177 yr 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
October 1, 20177 yr 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
October 1, 20177 yr 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]
October 1, 20177 yr 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
October 1, 20177 yr 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
October 1, 20177 yr Ok, so Event/Global Data option is not working if the rule is made from a custom action?
October 1, 20177 yr yea, this is crazy for me...for some reason it's not giving me the Custom Action in Map Url
October 2, 20177 yr 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.
October 3, 20177 yr @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, 20177 yr by joshuaj
October 3, 20177 yr @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
October 3, 20177 yr 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, 20177 yr by Wildcard Chris
October 6, 20177 yr Would it be possible to trigger a modal? Can only see options for inline message and notification.
October 6, 20177 yr Author 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.
October 7, 20177 yr 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, 20177 yr by Cyrem
November 27, 20177 yr 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
November 27, 20177 yr Author 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.
November 27, 20177 yr 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, 20177 yr by JTHastings
November 27, 20177 yr 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?
November 27, 20177 yr @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.
November 27, 20177 yr 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.