Jump to content

IPS Rules Application


Recommended Posts

Posted
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: 

image.thumb.png.c677c5abbf7df59af2c09541730e42ef.png

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. 

Posted

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

Posted

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 :)

Posted

Ok, after doing it exactly your way, this is what i get when getting to the Map Url

 59d15a0e2b2b7_download(57).thumb.png.29d78466b4a04cda0b80824ee6c83865.png

 

download (58).png

and the drop down for the Map Url is that what you see and the other is PHP Code

Posted

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. 

Posted (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.

schedule.thumb.jpg.a7c698596c133bf91da9e308c0fefce8.jpg

token.thumb.jpg.351041ef14e7a16a64799e8de3ae0f39.jpg

urlalias.thumb.jpg.c4c7e1da31f67d5aaa99d48ce403103c.jpg

Edited by joshuaj
Posted

@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

Posted (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 by Wildcard Chris
Posted (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 by Cyrem
  • 1 month later...
Posted

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

Posted
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.

Posted (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 by JTHastings
Posted
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?

Posted
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. 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...