Use Rules to award userpoints for posting every day for a period
Hi,
I am new to the group, so forgive me if this is not the appropriate forum for this.
I am looking for some pointers/a recipe to encourage users to post content of a particular type daily by granting userpoints if they make it to a certain number of consecutive posts.
How can I create the rule to do this?
Minimally, it would be:
1) that a user creates a node of a particular content type that
2) meets a particular workflow state (i.e. must be published, not a draft) and
3) a minimum of once every 24 hours for a period of X days.
Newb: How do I link to a specific OG url? **SOLVED**
Hi,
solution>
My final setup looks like this:
[group:author:name],
[account:name] requests membership for group '[group:title]' in [group:url].
To activate this user, make sure you have logged in here: [site:login-url]
and then click the link below:
[group:url]#overlay=group/node/[group:nid]/admin/people&overlay-context=content/[group:group-group]
[og_membership:og-membership-request]
This takes the user straight to the page where they can activate the user.
/solution>
Read moreData not available To rules to set fields
I created a module using hook_rules_action_info. I can access the menu in Rules and I wrote a function in the module that takes numbers 1-10 and I shuffles them up to apply them to fields as to create a random pool. When I dpm the variable $numbers I see the array as integers displaying, but I am tiring in vain to use 'provide' as described in some tourtorials but I can not get it to be accessed by the entity api? I do have a return at the end of the function that does the number shuffle. I feel this is where I am doing something wrong? Or is there something else?
Read moreWeekly Email with Rules
I am trying to setup a Rules based email that is sent out weekly.
I have the 'Actions' set up, I just need some assistance with the 'Events' and 'Conditions.'
This email is not contingent upon a node or any sort of content being created, just day of the week, in this case every 'Monday' @ 5:00 AM.
I feel like this should be somewhat easy, but I am just missing something. Is there an easier way to do this?
I will possibly use 'Elysia Cron' going forward.
Recap:
- Sent an email with a static URL
- Weekly on Monday at 5:00 AM
- Repeats indefinitely
Thank you!
Read morehow to count multiple comment field's value
I added three comment field FA and FB and FC .
they are term field now. maybe i will change it to text field.
I need do this:
when 3 different user comment value in FA FB FC are same .
user A: FA is "good", FB is "33", FC is "posted".
user B: FA is "good", FB is "33", FC is "posted".
user C: FA is "good", FB is "33", FC is "posted".
(if user comment multiple time, base on his lastest comment value)
do something (close the comment,send message, etc .. )
can rules do this? or how to do this with PHP code?
Read moreSet node->changed with Rules? Rules Link examples?
The task ir pretty much simple: with the click on the link, node "changed" time is modified to current time.
Cannot modify node->changed time with data selection - it is forbidden, or with custom php code:
$node->changed=time();
return $node;
Some other actions do work.
I use Rules Link, if it does matter.
What I am doing wrong?
Read moreConditional message based on "start date" field
Scenario: I have a content type that describes an event that I want to keep visible after the start date but want to notify the visitor that the event is past the start date.
I found a module to hide the displayed start/end if "now" is greater than the start date but that's not really what I want.
I'm looking at how a "rule" might solve my problem but I'm a little lost.
What I've tried:
-
Created Component called "Expired Auction"
- Data to compare: start-date
- Operator value: Is Greater Than
- Data value: now
-
Created a rule called "Auction Expired"
- EVENTS
How to change the referenced entity field value?
I have a node that has a node reference to another content type. What I want is to update the referenced node field value on updating the node;
Let me clarify the issue.
For example I have a node of type "Basic Page" which having a relationship to a node of type "Article". I want to sync fields in two node let say I have a name field(Text) in both nodes.
On updating basic page node I want to populate the referenced node Name field with that of the value in the basic page node Name field. How can I do that?
This is what I have done so far:
Read moreError message while using User_block
Hi,
I am kind of new with Drupal, so I am not sure if I am writing in the right place.
I am using Drupal 7.28 with rules 7.x-2.7.
My goal is to control if admin validation is required depending on new user's role, but I get the following error message.
Integrity constraint violation: 1062 Duplicate entry '238-5' for key 'PRIMARY': INSERT INTO {users_roles} (uid, rid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => 238 [:db_insert_placeholder_1] => 5 ) en user_save() (C:\Apache24\htdocs\meetingpoint\modules\user\user.module).
Read moreRule to resave a node once a comment is published.
I'm not sure about this but I am trying to set up a rule that resaves a node whenever a comment (on that node) is published.
Is this possible?
Jon
Read more

