Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Auto Action don't work

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
10 years 11 months ago - 10 years 11 months ago #237742 by mfe13
[SOLVED] Auto Action don't work was created by mfe13
Hello,
I create a rule to limit the connection request to the user who has a picture in his profile and not the CB avatar.
If the user making the request does not have a picture, there is a redirect to the Userlist with a message.
My problem is:
All connection requests are redirected and do not follow the rule!
Can you tell me where is the problem ?
thank you
Attachments:
Last edit: 10 years 11 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 11 months ago #237751 by nant
Replied by nant on topic Auto Action don't work
I see 3 issues.

1 is your conditionals which are most likely wrong - have no idea how you are comparing a file type field (avatar) with a string name.

You need to see what the avatar column is your comprofiler table has stored and base conditional on that.

2. COnditional statements are AND, so you cannot expect your 3 conditionals to ever come true - as an avatar cannot have 3 values at the same time. If you need to do this, you need to create 3 separate auto actions with one conditional each.

As Kyle always states: remove the conditionals and test your auto action first.

Please Log in or Create an account to join the conversation.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
10 years 11 months ago #237753 by mfe13
Replied by mfe13 on topic Auto Action don't work

nant wrote: ...
1 is your conditionals which are most likely wrong - have no idea how you are comparing a file type field (avatar) with a string name.
You need to see what the avatar column is your comprofiler table has stored and base conditional on that.


I thought that the value could be the name of the picture in picture / comprofiler / gallery / :blink:

For Comprofiler table, I do not understand.
The avatar column values in table are: gallery/Homme.png, gallery/Homme.png, gallery/Homme.png
You mean that?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 11 months ago #237766 by nant
Replied by nant on topic Auto Action don't work

geniusyourself wrote:

nant wrote: ...
1 is your conditionals which are most likely wrong - have no idea how you are comparing a file type field (avatar) with a string name.
You need to see what the avatar column is your comprofiler table has stored and base conditional on that.


I thought that the value could be the name of the picture in picture / comprofiler / gallery / :blink:

For Comprofiler table, I do not understand.
The avatar column values in table are: gallery/Homme.png, gallery/Homme.png, gallery/Homme.png
You mean that?


The value you should compare to is the full filename from the table.

Please Log in or Create an account to join the conversation.

  • mfe13
  • mfe13
  • OFFLINE
  • Posts: 572
  • Thanks: 26
  • Karma: 5
10 years 11 months ago #237792 by mfe13
Replied by mfe13 on topic Auto Action don't work
Ok, thanks, it works ;)
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 11 months ago #237797 by nant
Replied by nant on topic Auto Action don't work

geniusyourself wrote: Ok, thanks, it works ;)


FYI - a good reference for you is the API documentation located in the Free download area as it contains a database scheme map of CB.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum