Search in group Search
Simple rule not working
When I view the content for some reason below the debug says false, but that is not true?
Here is the message.
Rules debug information:
" Reacting on event Content is viewed.
0 ms Reacting on event Content is viewed.
22.433 ms Evaluating conditions of rule Away winning Home fav Halftime. [edit]
23.606 ms The condition node_is_of_type evaluated to FALSE [edit]
23.629 ms AND evaluated to FALSE.
23.679 ms Finished reacting on event Content is viewed.
Create data values using php
Hello
I am not very competent with PHP but understand the basics and have written some code which works!
I am trying to create a component which creates new content and this requires me to set some data values.
The approach I chose was to execute some PHP code to set a data value in a component. I can not use set variable because I wish to allow the user to select from a drop down list of valid variables. The examples here are just setting the variable value
I have tried several approaches but each time the code is ignored.
What is the best way to globally add data to the "site:" state?
DRP7, Rules 7.x-2.2
I'm working on a concept for keeping lists of taxonomy terms to have a 'related-entities' concept, in a custom module. E.g. Showing a node? here are the tids for the 'category' vocab, now I can create a block that show nodes with the matching tids.
I have a context implementation working well, but thought to add a Rules based implementation as well.
Read moreSet default value of field based on field value of referenced node
I have 2 content types gallery and image referenced to gallery with nodereference url widget module.
In most cases values of gallery fields will be the same as values of image fields, that's why I would like to set a default value of image fields by values of fields of their parents node (gallery).
Read moreMobile4Social.com Privatemsg integration - free mobile app for your community
Hello all,
We are happy to release the new project by Mobile4Social.com - an integration between Android app and Drupal Privatemsg module.
Please take a look at the demo video of the application, install it and try it out to see the integration we offer.
Need Guidance Combining Roles, Rules, and Ubercart
I have a site that I've designed that requires the use of changing a users role based on whether they've bought something from the store. I've decided that I want to do this using Rules.
I need it to check that the order is completed, then add the role Paid to the user.
So far I have the following:
Event: Order status gets updated (I had tried this on Checkout is completed but it wasn't working)
Conditions: NOT User has role(s) (Parameter: User: [site:current-user], Roles: paid user)
AND
Check an orders state (Parameter: Order: [updated-order], Order state: Completed)
Rule to stop a node being deleted..
Hi,
I need a rule to stop certain nodes being deleted based on the value of a field..
So as an example..
Event : Before node is deleted
Conditition : field1 = 1234
Action : Don't delete the node
Obviously (as far as I am aware) these events and actions don't exist..
Anyone have any ideas how to achieve this functionality?
Thanks..
Read moreSend the actually attached file's url within an e-mail
I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set up an another rule, which sends me an another e-mail, when somebody edits this node and uploads an attachment. Inside the mail, I want to see the full url to the uploaded file.
After a several test, I'm not able to insert the full path to the uploaded file. The [node:field-attachment:file] doesn't work at all. I'm able to insert (manually) the url where this file resides, but after I can not insert the file name (so even the filename would be enough for me).
So with the [node:field-attachment:file] I got an error: Fatal error: Call to a member function value() on a non-object in /home/xxx/sites/all/modules/entity/entity_token.tokens.inc on line 297.
Read moreHow to increment filed value of group type node when someone joins the group
So, I am desperately missing OG statistics module for 7.2. There seem to be a way to recreate count functionality it with some Rules help.
I need to build simple counter, which increases +1 when there is new member in the group
What I do:
- Create "field_user_counter" on group type node
- Clone rule "OG member subscribe (Active)" which comes included with OG
- On new rule "Actions"...
I'm stuck on this point.
Any ideas?
How to add user to some group during registration AUTOMATICALLY
Hi,
Have some kind of "default" group, and want user to became user of this group automatically during new user registration.
There is a similar module, but I want full automation.
How to write a rule for that?
Read more


