Questions tagged [flags]

Use it for the module implementing a flexible flagging system, completely customizable by the administrator users: the Flag module.

Filter by
Sorted by
Tagged with
2 votes
1 answer
332 views

Which user related token(s) can be used to create a Rule for setting up a message type?

I have created few activity logs using the Message module. All works ok, but when I try to create a message type for example "username started following you on github". When setting up the rules for ...
Umair's user avatar
  • 441
1 vote
1 answer
415 views

How to show message view containing own and following activity?

I have created a message view using the Message module. I want this view to show the current user activity and activity of the user he is following using the "follow" flag (user). i.e own + following. ...
Umair's user avatar
  • 441
5 votes
6 answers
6k views

How to add a custom icon or symbol to a flag link?

I'm working on a 'sample request' implementation for a commerce site using Flag, Views, sessions and a little custom code. I'd like to add an icon or a symbol to let people know that an item they are ...
nizz0k's user avatar
  • 1,172
2 votes
1 answer
745 views

How to access commerce_product field of line-items using Rules to flag the Commerce Product?

Related to this question: How to mark product if it has already been purchased by current user? I have a Drupal Commerce shop, where I'm trying to use the Flag module to mark products to inform users ...
Nenotek's user avatar
  • 47
17 votes
6 answers
7k views

View of users flagged by a user, users flagging a user, and nodes from users flagged by a user

I have a user flag that is pretty much like a "follow" or "subscribe" function. Basically I want to create 3 views for my website's user profile pages: A list of users flagged by a user (e.g. a ...
Jamie Chang Liu's user avatar
8 votes
3 answers
5k views

How to display a flag to anonymous users?

I'm using the Flag module, but I have a problem in displaying a flag to anonymous users. I have 2 flags called "make feature" and "add to Favorites". I want to display this flag to anonymous users ...
Pranav Gandhi's user avatar
5 votes
2 answers
4k views

How to create basic Organic Groups functionality with flags and references?

I've used Organic Groups for the past 6 months and found it to complex for my simple use case. Creating even basic views to show users of a group or content of a group turns quickly into "rocket since"...
uwe's user avatar
  • 12k
4 votes
2 answers
3k views

How to debug a rule that doesn't want to fire?

I have nodes that can be flagged with a global flag. When a node is updated I want a rule to unflag that node. Rules Event: After updating existing content Rules Action: Unflag a node. I then select ...
uwe's user avatar
  • 12k
6 votes
1 answer
1k views

How to create a view of unread comments on own nodes for the user's profile page?

I'd like to create a view for the user's profile page that displays all unread comments on the nodes he/she created. When I say 'unread', I mean that the page where the comment is situated (namely, ...
Jeroen's user avatar
  • 2,518
4 votes
3 answers
7k views

drupal_add_js within AJAX callback

How can i add some data to drupal setting object using drupal_add_js withing some ajax callback? For example I have ajaxified flag link on my page, and have implemented hook_flag in my module, how ...
nextanz's user avatar
  • 138
9 votes
2 answers
6k views

How can I flag content programmatically?

The Flag module is still in development for Drupal 8, but it's working nice. However, I didn't find how to add a flag programmatically; the API documentation seems to speak of the Drupal 7 version. ...
Flo Develop's user avatar
7 votes
1 answer
2k views

How can I simplify the use of flags with Views Bulk Operations?

I have an administrative display (made with views) that lists content that is pending approval. In the case of my site, approval means flagging with the approval_for_pub flag (which triggers a custom ...
Patrick Kenny's user avatar
5 votes
1 answer
5k views

How to create custom rules action event conditions?

Is there any universal formula or module to create custom rules actions, events and conditions? So that I just have to replace the required values and rest of the code remains the same. I searched, ...
Umair's user avatar
  • 441
4 votes
1 answer
2k views

Convert a Flags Link into a Checkbox

Is there a way to convert Flags links into check boxes within a view? I tried the Flag Form module, but it did not work (at least not in a view). I've reviewed the Flags Add Checkboxes as Display Type ...
James Stallings's user avatar
3 votes
2 answers
464 views

Can the Flag module be used to lock content while editing to prevent concurrent edits?

We are trying to figure out a way to use the Flag module to prevent concurrent editing. In our research, we found the Content locking (anti-concurrent editing) module, but we thought since we are ...
sf_admin819's user avatar
0 votes
1 answer
720 views

How to implement RSVP Functionality?

I have created event using Calendar in Drupal Commons. I need to implement RSVP for these events Details like FB event section. Kindly guide me to create RSVP plugin in Drupal Commons. I just ...
VIVEK-MDU's user avatar
  • 147
0 votes
1 answer
509 views

Ability for user to flag or select multiple nodes from view listing

I am creating a page where I have a view listing about 100 nodes of a specific content type and then underneath that I have a contact form. When visitors (logged out users) come to my site I would ...
Dan's user avatar
  • 696
0 votes
2 answers
616 views

Any way to flag users who previously submitted a webform on revisit?

My business team needs users who submitted a specific form to be flagged in order to allow them to gain access to a certain piece of content, which we've hidden behind a conditional check on whether ...
mph's user avatar
  • 65
-2 votes
1 answer
92 views

How do I flag new user accounts or updated accounts?

I created a custom module to automatically flag new user accounts and updated accounts. When I create a new user or update an existing account, it is not automatically flagged and there is no error ...
sdfff's user avatar
  • 61
5 votes
3 answers
4k views

How to use the Rules module to flag a node that has just been created?

I need to automatically flag a node after it has been published. All nodes of a certain content type will be flagged. In order to solve that problem, I have installed the Rules module hoping that I ...
Marcos Buarque's user avatar
4 votes
4 answers
1k views

Give flagged products in search API a higher search score?

I have a product catalog running on Search API and Search API SOLR Search. Now I was hoping that when a customer flags a product (with the flag module), there would be a way to boost the search score ...
Neograph734's user avatar
  • 8,379
4 votes
2 answers
1k views

how to put "add friend" link with flag friend with views

Flag Friend Add Friend Link with views. Flag friends shows a link to add friend in my account page but i want to display this link on in a field for a view.
Sun Rhythms's user avatar
4 votes
2 answers
153 views

How to create missing rules event when user flags a statuses updates?

The problem: Rules events are missing. EVENT 1. user flagged a statuses and EVENT 2. user flagged a fbss_comment. Everything is available, just need to add these events. Status updates are created ...
Umair's user avatar
  • 441
4 votes
3 answers
3k views

Restrict forum access based on user (user list)

I need to restrict access to forums so that only selected users can access an individual forum. (The users should apply for a forum and a moderator should decide if the user should be allowed to ...
Елин Й.'s user avatar
  • 7,299
3 votes
1 answer
86 views

How to use "replacement tokens" created for a Message type in Views?

In my case a user with the role ("team member") flags a node created by normal user. I want to display "@team member_id flagged @node_id created by @user_id". Maybe later on I would like to add ...
Yassin Siouda's user avatar
3 votes
1 answer
1k views

Displaying Content Flagged by User Name with Flag Module

I'm using Drupal 7.38 with the Flag (v7.x-3.6) module, along with Views. I'm setting up a flag for content. My goal is to display a list of users whom are flagging content (along with aggregated ...
frankwebstadium's user avatar
3 votes
2 answers
165 views

Flag Module: "Never Flagged" Status

Flag Module is a very effective module for tagging entities which - apparently - only handles two status: "flagged" and "unflagged", while I need now to know if an entity was even been flagged ...
Augusto's user avatar
  • 773
3 votes
3 answers
907 views

Voting a post several times by same user

I have a case where authenticated users can Vote a content many times. I want a button at the top of the Node saying Vote This and when the users click the button it'll ask for confirmation Do you ...
user avatar
3 votes
1 answer
224 views

How to run the Flags module after the Rules module?

As a sequence on this question, I'd like to deduct 2 User Points when a user's first reaction on an Article is deleted (I mentioned my flag 'First reaction' there). I created a Rule 'Reaction removed' ...
Jeroen's user avatar
  • 2,518
3 votes
1 answer
301 views

How can I make a view that shows users all the who have flagged a single user?

Background I want to add a tab to the user profile that shows the logged in user which other users have viewed his/her profile. I want to control this list in Views. Until recently, I have been ...
Patrick Kenny's user avatar
3 votes
2 answers
418 views

How to add a 'flag link' in an email?

I want to add a 'flag link' in an email. I have an event content type, and every time a new event created, the users get an HTML Email. I have a flag that the users can flag this event if they want to ...
Елин Й.'s user avatar
  • 7,299
3 votes
1 answer
343 views

How to redirect user to an url when node is flagged?

My problem is related to the Drupal 8 versions of these two modules: rules and flag. What I want to achieve Some node types on my site are offering a global flag as a link (for e.g. "report error" ...
dercheffe's user avatar
  • 151
3 votes
1 answer
2k views

How can I get flag count of a flag?

I see extensive Drupal 7 documentation for the Flags module, but very little for Drupal 8. I have a Signup flag on a Drupal 8 node (which is an event). I need to suppress the Signup link when a ...
MEI's user avatar
  • 145
3 votes
1 answer
257 views

How to show data of user that flagged a content(5 flag types or more)?

This is a followup question about this Old question I have 5 flag types for a content type. consider we have 5 flag types and we don't know how many flags our user used. I mean, the first user can ...
Hamed's user avatar
  • 319
2 votes
2 answers
178 views

How to show data of user that flagged a content(2 flag types)?

I have 2 flag types for a content type. both flags have flag field. consider the user flagged a content by both flags. I want to show user data. I have problems in this situation. I add flag A and ...
Hamed's user avatar
  • 319
2 votes
1 answer
118 views

How to use fields of a flag instead of only toggling the flag?

I have created a flag (using the Flag module) called status and a field to it and named it remarks. Now, how do I let users to flag other users and fill in the remarks field for that particular flag. ...
innocent rock's user avatar
2 votes
2 answers
185 views

How to apply flags retrospectively for group subscriptions using Organic Groups?

We've a large site running Drupal 7 with OG, Flag, Rules, etc. OG uses a subscription model where you have to confirm you want to join a group (or leave a group) so we've decided to move to a Flag ...
studiocomms's user avatar
2 votes
2 answers
287 views

How to create a User Feed using the modules Message and Flag?

What I'm trying to do is in theory easy : **User** flagged **Article**. But I'm having hard time figuring out how to build a user feed like this with Message and Flag modules. I looked a little bit ...
khoy's user avatar
  • 99
2 votes
2 answers
1k views

How to create view with user's flagged content?

I created a flag 'Add to favorites' with the Flag module and I'd now like to create a view for the user's profile that sums up all his/her favorite content. I tried to add the relationship Flags: ...
Jeroen's user avatar
  • 2,518
2 votes
3 answers
2k views

Content Translation : Language filter not available in views

I use a view to show a list of nodes flagged by a global flag (any user, any language) and would like to return only current language related nodes. For that I should be able to add a filter in the ...
SeifBh's user avatar
  • 73
2 votes
4 answers
2k views

How to remove all roles from a user?

Users on my site generally have several roles. However, every once in awhile I get a spam user, and so I close that account by flagging it with a spam flag, which triggers a rule to block the account....
Patrick Kenny's user avatar
2 votes
2 answers
471 views

How do I send notifications for followers of a group when group content is updated?

I want to build such functionality that allow the user to follow the other users, and when the followed person is updating the information, the follower can get notified for what they are doing. I ...
helxsz's user avatar
  • 347
1 vote
1 answer
506 views

How to send an email to all members of a group after the group is flagged?

I use the Group module. I create a flag to mark groups. I wish that when a group is marked, an email is sent to all members of that group. How to do this ? I created the following rule, but I find ...
user avatar
1 vote
1 answer
191 views

Block Node Access After A Certain Amount of Views

I've come across a client requirement in Drupal that is very new to me. The website is subscriber based, so users pay to subscribe at which point they are granted a subscriber role. They then have ...
Matt's user avatar
  • 163
1 vote
1 answer
89 views

How to create a rule to flag users when they're approved as a Trusted Contact?

I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
dnoncoder's user avatar
1 vote
1 answer
66 views

How to use Views and Rules to activate a new node flag for existing OG members?

We have a flag for nodes called subscribe_og. From this point in time users will click that flag to join, or leave, a group. If you are not a member of the group, the flag says 'Join'. If you are ...
studiocomms's user avatar
1 vote
1 answer
94 views

How to "flag" product that had already been purchased before "flaging feature" was added?

In reference to this question and answer: How to mark product if it has already been purchased by current user? Now that I know how to "flag" the items in a way that lets me notify customer to avoid ...
Nenotek's user avatar
  • 47
1 vote
2 answers
129 views

How do I make a link to a flagging edit page?

I'm using Drupal 8 with Flag 4.0-beta1. On my flag, I have several fields. I want users to be able to edit these fields after making the flag. How can I make a link to edit the flagging? I tried ...
Patrick Kenny's user avatar
1 vote
2 answers
208 views

How do I redirect on flag save programmatically?

I want to redirect users to a view when they flag a taxonomy term. This question is about how to use Rules to redirect on flag save. I want to do this programmatically. I tried to use hook_form_alter(...
Patrick Kenny's user avatar
1 vote
1 answer
303 views

How to list out Flag content User in event page in Drupal Commons

I tried to create the equivalent of the RSVP module (for which no D7 version exists ...) in combination with Drupal commons. But I didn't succeed in that. So I then decided to use the Flag module, ...
VIVEK-MDU's user avatar
  • 147