Showcase using rules to play games inside Drupal 7
I started off with a question about a year ago.
My question was "Can I use Drupal to create a game that is playable by players”?
To build it in Drupal I had to think differently from what i used to CMS or OOP.
My most basic idea was that I will define a set of Entities that acts as my “game”.
Game – is the static game that will hold a title, description and some preset fields that will by determine by game type.
Game type – is the bundle of game and allows it to be field able.
Running game – is a running instance of the game at hand.
Using rules to disable flag access
Hi everyone. I'm a beginner on drupal and I'm building a site with booking management with rules and flag module. I met problems when implementing booking function,which disables flagging to user roles on specific node(content type) when exceeding limitation. Actually I have two plans, one is to hide the flag link, the other is to remove flag access on node with user roles, but I can't make either with actions provided by rules. Any suggestions? Of course not to implement the hook_flag_access() :(.
Read morerulesで配列内の複数のメールアドレスにメールを送るには?
rulesで配列内の複数のメールアドレスにメールを送るには?
という変数の中に下記のメールアドレスが入っています。
Array (
[0] => a@a.net
[1] => b@b.net
[2] => c@c.net
[3] => d@d.net
[4] => e@e.net
[5] => a@a.net
[6] => b@b.net
[7] => b@b.net
[8] => c@c.net
[9] => r@r.net
)
rulesで上記のメールアドレスの全てにメールを送るように設定したいのですが、どのように設定したらよいのかわかりません。
viewsのactionの項目の中にloopという項目があるので
それで出来そうな気がするのですが何度試してみてもどうしてもわかりません。
詳しい方がいらっしゃいましたら教えていただければ幸いです。
Read moreTextual Comparison not working when I search for <img tag in node body
I have been trying to create a trigger so that when someone updates a page node by inserting an image into the body it will send me an email. So, in other words, I want the trigger to act (send an email) if it finds an img tag in the body of the updated node.
Event:
After updating existing content
ON even After updating existing content
If
Two texts to compare:
Text1:
<?php
print $body;
?>Text2: /<img/gi
**I have evaluate text2 as regular expression checked. Read more
Alias automático en vistas filtradas por argumentos?
Saludos, estoy peleándome con rules de nuevo, les planteo mi duda:
Tengo una vista, que me muestra productos de una tienda usando como argumento el id del producto, generando una vista final con la url "producto/34" (o un número cualquiera).
Ahora, me gustaría que rules agregase un alias cuando añado un producto, sustituyendo la dirección con argumento de la vista "producto/[ID]" por "producto/[title]", previamente transliterado.
La opción de que el argumento sea directamente el title no funciona, la vista sólo se puede hacer con argumento ID, y se trata de una entidad.
Read moreSpara om en nod
Hej, jag behöver en funktion som gör att när man sparar en specifik nod, så ska den sparas igen direkt efteråt.
Jag har installerat Rules och Entities och lekt runt lite, men jag får inte till det.
Har dessa inställningar i Rules:
EVENT
Efter sparande av nytt innehåll
Conditions
Content is of type
Parameter: Innehåll: [node], Innehållstyper: Produkt
Åtgärder
Save entity
Parameter: Entity: [node]
Är detta korrekt? Förstår mig inte riktigt på Rules i Drupal 7.
Read moreComparison rule - taxonomy terms
Hi all, hoping I can get a bit of help with something.
I have a taxonomy (call it category) that I have added to both the node and the profile (user). On the node, a single category is required. A user can be assigned to multiple categories.
I have a rule triggered by workflow state change. I would like to add a condition that compares the node's categories with the list of categories on a user, and proceed if any of them match. I can see that this should be possible - via data comparison or the "in list" option, but I can't get it to work.
Read moreHow to add user to OG 7.x-2.x group with rules?
Hi,
Have a hard time figuring out how to add user to some OG group automatically on lets say user registration.
The first part is easy, event:
"After saving a new user account"
Condition: none
Action:
"Subscribe user to group"
...and then I am stuck.
For example, my OG group is nid 3.
Any clues?
Read moreSynchronization of Drupal Users/Roles & CiviCRM Contacts/Groups
In CiviCRM I have following categories of individuals that is relevant to permissions they would have in the system:
- manager
- team lead
- sales
- customer
Each of these individuals are belonging to one and only one country, and each country has one and only one manager.
1: Custom ACL
- A user logged in as a manager can create contacts of types team lead, sales and customer for the country he is responsible for.
- A lead can create sales contacts only. And they will belong to the same country, he is operating in.
- Sales and customers aren't allowed to create any contacts.
Rules Guru needed
Hey all,
Well, as title suggests, I need some help with a complex rule. Here is the what I am trying to accomplish.
On the registration page for new users, I am using profile2, I have a select list, this select list is within a field collection. Based upon the selection from this select list the user might join, one, multiple, or no groups.
Similar questions have been asked over the web, but there seems to be no answers.
I believe I have the bulk of it at least to test a simple version of the rule, before creating a rule set.
Event -> After saving a new profile
Read more


