Jump to content

IPS Rules Application

Featured Replies

 

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. 

  • Replies 575
  • Views 53.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • CoffeeCake
    CoffeeCake

    Perhaps it's time to open source the code and throw it up on Github for others to help maintain going forward?

  • Adriano Faria
    Adriano Faria

    You, me or even IPS can’t take ownership of other people's work. IPS is doing the only thing they can do: forbid the download and new purchases to try to minimize the damage for others.  If this

  • Hi @Kevin Carwile, I just downloaded and installed the IPS Rules Lite and actually see the functionality behind IPS Rules.  Some immediate feedback: 1) You have, hands-down, the cleanest and most educ

Posted Images

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

YeSSSSSSSS!!!!!!!!

@jair101 got it buddy

had to use this

 

download (56).png

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] 

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

ok

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

Ok, so Event/Global Data option is not working if the rule is made from a custom action?

yea, this is crazy for me...for some reason it's not giving me the Custom Action in Map Url

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. 

Yes, will talk to you in PM

@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

@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

 

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

Would it be possible to trigger a modal? Can only see options for inline message and notification.

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

 

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

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

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

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

  • Author

No. Generally, rules is not a tool that can be used to control UI.

 

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?

  • Author

There are stock actions built in for custom data fields.

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

image.thumb.png.22b6b501d49044b7173d334344a7bae7.png

I suppose if $content is returned here it should be fine, but I don't know. 

 

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

  • No registered users viewing this page.