Skip to main content
deleted 180 characters in body; edited tags
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flaggedhas been published with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"published

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"published

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node`[node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

I've a content type 'Content' with the field 'Value' (an integer). Every time a Content has been published, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been published

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick node:field-value in the Points section. I also tried:

*Event: A node has been published

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

edited title; Post Made Community Wiki
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

Grant How to grant user User Points equal to value of certain fieldfield's value / calculated value?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field, but with a maximum of 5.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

  • Example 1: User1 adds Content1 and the field 'Value' = 3. When the administrator flags Content1, User1 gets 3 points.
  • Example 2: User2 adds Content2 and the field 'Value' = 7. When the administrator flags Content2, User2 gets 5 points.

Note: I solved my problem about the 5 points limit in another question. See: How to limit the amount of User Points users get?

Grant user User Points equal to value of certain field

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field, but with a maximum of 5.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

  • Example 1: User1 adds Content1 and the field 'Value' = 3. When the administrator flags Content1, User1 gets 3 points.
  • Example 2: User2 adds Content2 and the field 'Value' = 7. When the administrator flags Content2, User2 gets 5 points.

Note: I solved my problem about the 5 points limit in another question. See: How to limit the amount of User Points users get?

How to grant user User Points equal to certain field's value / calculated value?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

added 34 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flaggedContent is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' fieldgrant the Content's author some User Points, equal to the value in the 'Value' field, but with a maximum of 5.

I tried doing thissolving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

  • Example 1: User1 adds Content1 and the field 'Value' = 3. When the administrator flags Content1, User1 gets 3 points.
  • Example 2: User2 adds Content2 and the field 'Value' = 7. When the administrator flags Content2, User2 gets 5 points.

Note: I solved my problem about the 5 points limit in another question. See: How to limit the amount of User Points users get?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field, but with a maximum of 5.

I tried doing this with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

  • Example 1: User1 adds Content1 and the field 'Value' = 3. When the administrator flags Content1, User1 gets 3 points.
  • Example 2: User2 adds Content2 and the field 'Value' = 7. When the administrator flags Content2, User2 gets 5 points.

Note: I solved my problem about the 5 points limit in another question. See: How to limit the amount of User Points users get?

I've a content type 'Content' with the field 'Value' (an integer) and a flag called 'Publish Content and grant points to user'. Every time a Content is flagged with this flag, I'd like to grant the Content's author some User Points, equal to the value in the 'Value' field, but with a maximum of 5.

I tried solving the first part of my problem with the Rules module like this:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions: Grant points to a user: ...

However, it's impossible to pick flagged-node:field-value in the Points section. I also tried:

*Event: A node has been flagged, under "Publish Content and grant points to user"

*Conditions: Content is of type 'Content'

*Actions:
   
 - Calculate a value: `[flagged-node:field-value]` "+" 0. (Variable name = result)

 - Grant points to a user: ...

But then, the variable 'result' is not available. How can I solve this issue?

  • Example 1: User1 adds Content1 and the field 'Value' = 3. When the administrator flags Content1, User1 gets 3 points.
  • Example 2: User2 adds Content2 and the field 'Value' = 7. When the administrator flags Content2, User2 gets 5 points.

Note: I solved my problem about the 5 points limit in another question. See: How to limit the amount of User Points users get?

added 10 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
added 252 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
Deleted part of question
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
added 390 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
added 102 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
added 47 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
edited body; edited tags
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
deleted 182 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
added 524 characters in body
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65
Loading