Flag is a flexible flagging system that is completely customizable by the administrator.

learn more… | top users | synonyms

0
votes
1answer
11 views

Add flag counter in views Module(Search API index)

I want to add flag counter of content in views field. Authenticated users can flag(bookmark) contents. I want to know how many users flaged a content, And I want to add this in views field(display the ...
0
votes
0answers
9 views

How to add flag counter of content in views module(Relationship between Flag, Views and Search API Index)?

I want to add flag counter of content in views field. Authenticated users can flag(bookmark) contents. I want to know how many users flaged a content, And I want to add this in views field(display the ...
0
votes
2answers
40 views

How can I have Exposed filter of Flag type in views?

I want to add Exposed filters of flag types in Views. I have many flag types and I want users to be able to select their favorite Flag type to show result.
0
votes
0answers
26 views

How to add flag counter of content in views module(in “fields” part of views)? [closed]

I want to add flag counter of content in views field. Authenticated users can flag(bookmark) contents. I want to know how many users flaged a content, And I want to add this in views field(display the ...
0
votes
0answers
16 views

Creating node flag type causes site to crash

I use Flag module and whenever I try to create a Node flag type I get this error: PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT r.rid AS rid, r.name AS name ...
2
votes
2answers
30 views

is_flagged with Views

Is it possible to to check is_flagged in views ? If I send POST request to this URL it works fine http://website/rest/flag/is_flagged but I want do it in Views ? I am creating REST API using ...
2
votes
1answer
34 views

how to unflag programmatically [duplicate]

what is the code for making a node be unflagged programmatically? and what is the code for checking the flagged state of a node programmatically? I have a rule that is triggering flagging on some ...
2
votes
3answers
50 views

How to activate some flag field when create a content?

I have a many flag fields. When Authenticated users bookmark a content, they can enter value in flag fields. I want to activate some fields of flag field when I create (add) a content. For example, ...
1
vote
1answer
67 views

How to programmatically publish/unpublished node using flag link and without using Rules?

I have implemented the functionality on flag link click the content are unpublished and click on unflagging the content are published. By using the Rules module. But this time I want to implement ...
0
votes
0answers
10 views

What is the benefit of using Entity types over Entity bundles from a usability perspective

I have installed ECK and created different entity types for a project management website. For example Project, Group, Task, Report. Each entity type requires at least one bundle, so I named the ...
1
vote
1answer
28 views

How can I show list of users that bookmarked article?

How can I do it? I using flag module and I want to have the list of users that bookmarked article. Can I do it only with views?
0
votes
3answers
39 views

How to add flag on each field in a node in Drupal?

I have created a membership based website in Drupal 7. I want the user should create his portfolio and upload his work images. So i created a content type called portfolio having image field with ...
-2
votes
0answers
33 views

how to unpublished comment using rule module?

Hello I am new in drupal. I am developing a publish or unpublish functionality using flag module. If I click flag this item I want Comment is unpublish Else I click on unflag this item I want Comment ...
0
votes
1answer
12 views

How to use the view_mode in hook_preprocess_flag?

I'm using Drupal 7 and Flag. I try to modify the output of my flags according to the view mode with preprocess_flag : function mytheme_preprocess_flag(&$variables) { $variables['full'] = ...
0
votes
0answers
12 views

Refresh page only for flagged node author

I'm trying to refresh page for only the flagged node author with rules and views_nodejs. What is the right rule configuration to make this happen?
0
votes
1answer
33 views

Drupal flag the node after login

I am using flag module to bookmark the content. Authenticated user can normally flag the content. For anonymous user when they click on flag link it should go to login page. After successful login it ...
0
votes
0answers
23 views

Allow user to block another user from accessing their nodes/content

I am trying to figure out the best way to allow User 1 to block User 2 from viewing/accessing any of User 1's content (nodes they have created, Profile2 page, etc). Ideally, User 1 will not show up in ...
0
votes
0answers
9 views

Add Js to a view using views_flag_refresh

I have created a views, listing node titles, I am using a flag say [Hide Title] to hide node titles from the view. Using JavaScript toggle in flag setting, and Flag Refresh is set in views setting n ...
0
votes
0answers
32 views

Put flag in a menu link

I'm using Drupal 7 and Flag. I wish to put a flag in the main menu, to allow my users to flag a contents since the menu. In node.tpl.php, I put $flag = flag_get_flag('my_flag'); to obtain the ...
0
votes
0answers
18 views

Pathauto, flags and contextual filter not working

I have a content type called ev and a flag for this content type. I want a view that displays the users that flagged content. When I build the user view with a relatioship Flags: User's flaggings ...
0
votes
0answers
13 views

SOLR, Views, Flag - newly flagged users do not appear in search results

SOLR: index of user entity added field: Users who flagged the entity with flag my_flag Do reindex. Views (Solr Views): Type: user index Relationships: Indexed User: Users who flagged the entity ...
2
votes
1answer
50 views

How to add Flag to a rendered View

I've set up the default Flag (bookmark) and have added the proper links to my node.tpl.php pages so that the flags show up properly. Is there any way to add the same link to a rendered view (page?) I ...
5
votes
4answers
125 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 ...
1
vote
1answer
26 views

wishlist and commerce bundle

i have commerce_bundle module installed, and we use it to implement (shop the look) concept, the problem is that we already use flags to implement wishlist for separate products and view the items ...
0
votes
1answer
29 views

Drupal Views Datasource and Flag Links

I want to use Views Datasource module to output JSON, i then want to construct the JSON output using REACT JS or alike. I am currently stuck on how to output the Flag Link, it just comes back with an ...
1
vote
0answers
28 views

Is it possible to add a flag to a specific role user without using VIEW module?

I have downloaded profile2 module and I have created a specific role called artist. I also added some fields so to be shown only for the artist role users' on the registration form. Then I added a ...
4
votes
1answer
43 views

How to select a particular user role which could be flagged

There are two Roles: Authenticated Artist I have created a flag with flag type "USER". The flag is used so that the Authenticated Users can follow the Artists. As the flag is type of user, an ...
0
votes
1answer
12 views

Creating views or facets search with multiple flags

So I'm categorising with flags and I will have over 20 per node so that multiple people can flag a node with their opinion... Searching for the past two weeks I have found it hard to work out how I ...
4
votes
3answers
152 views

How do I customize the flag/unflag links? [duplicate]

I'm fairly new to Drupal theming, and I am trying to customize the HTML output the Flag module for Drupal 8 produces for flag/unflag links; more specifically, I would like to make the links appear as ...
1
vote
1answer
62 views

Delete all nodes of a user using flags and rules

I want to delete all nodes for a user whoes any one node has been flagged as spam. For example: If user has created 3 nodes of same/different content types, then If admin flag any one content as ...
0
votes
1answer
26 views

Node is flagged, flag has node reference field, how to show list of referenced nodes to author

This is a little convoluted, so I'll try to be as clear as possible by using concrete examples. It's basically a "relevant job suggestion" system. It works like this: A "candidate" user creates a ...
0
votes
1answer
20 views

Display user name with flags

I've this code who show the number of users who 'flagged me' (I'm using flag module) $flag = flag_get_flag('poke'); if ($flag) { print "The number of people who voted for this proposal:"; print ...
1
vote
1answer
40 views

Flag state as contextual filter in views

Please help me and provide a little explanation about the following thing: 1) What I have: a content type called "word" a flag for this content type called "learned". a view display with "word" ...
1
vote
2answers
53 views

How to list user flags in node

I have a node that people can flag to indicate their attendance/interest in that node's activity. However, I would like to show a list of users who have flagged a given node on that node's page. While ...
1
vote
1answer
64 views

Cannot Unflag a User Programmatically

This is all programmatic: in a module. I have a flag that I can set successfully, but I cannot unset/unflag. I do not know why, as the code seems so similar. The flag is set in a _submit function of ...
0
votes
1answer
64 views

Rules flag on flagging flag

I got a "flag A". this flag can be flagged with "flag B". I would like to send an email via the Rules module to the flagging-user of flag A, when flag A has been flagged with flag B. My problem is I ...
4
votes
1answer
31 views

How can I retrieve the value of a field in a flagging?

I have a global flag, spam, that has a textfield, reason, attached to it. According to the Flag API documentation, I know I can check whether a user is flagged like this: $spam && ...
1
vote
0answers
19 views

VBO is not 'seeing' hook_flag_validate

I have used VBO on a view for a particular set of nodes that have a flag associated with them. In the view I have included a javascript toggle button for each node so a user can flag the nodes they ...
1
vote
1answer
47 views

How to make the Rules module block flagged users from sending entityform submissions?

I am trying to create a simple block user functionality on my site. I have a "Block/Unblock User" Flag that other users can block and unblock so they stop getting contact emails from (via entityform) ...
0
votes
1answer
55 views

Flag module integration with Message module

I am using Rules, Message, Message Notify and Flag modules. I added a message to the activity stream when user flags a node as "Favorite". My problem is I am getting notification, but the node that ...
1
vote
0answers
23 views

When I flag a user with a rule, how can I set the value of a flagging field?

I have a rules action component that I use in VBO to flag users with a punish flag. The punish flag has a reason long text field. In rules, the component is an action set that consists of the action ...
0
votes
1answer
109 views

How to create a drop down message notification system? [duplicate]

I just learned how is it possible to do a user profile same as the one in this website: But notice the icon for the Inbox messages. How can I create such Drop down message notification system? I ...
3
votes
2answers
116 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 ...
0
votes
1answer
36 views

How to use Rules to flag a node on behalf of ALL users who had previously flagged it with a different flag?

Here's what I'm trying to do: I have a content type of Question. Questions have a field that identifies their status as "asked" or "answered". Questions marked "asked" can be flagged (using Flag ...
0
votes
2answers
26 views

Ability to create forms for each node in Drupal 7

I am creating articles in which I want to ask, on each article, that whether the it was helpful to read or not. The user would have two option boxes:- © Yes © No One of these will be selected and ...
1
vote
1answer
54 views

Flag, flag link ang flagging - create advance relationship

On my site I have two content types: event – with node flag “Attend” and Entity Reference field band And flags: “Attend” – node flag - with Entity Reference field “Accept” – flagging flag – ...
4
votes
2answers
317 views

How to redirect a user to previous page after successful login?

I have added flag links to content pages for anonymous user. When user clicks on that link, the user should be redirected to user login page but after successful login the user should be redirect to ...
0
votes
1answer
19 views

How to get all group content from group?

I am using OG, Flag and Rules module. I would like to do like this. When a user click Flag links in Group (name is follow_group) then all group content of that group will be flagged as following. ...
1
vote
0answers
18 views

Make challenges with prizes in D7

I've been working on a drupal commerce site where you can buy goods with points, you gain those points with a system I already implemented, everything is fine but now I have to make challenges. ...
0
votes
1answer
35 views

How to select a random user from a list of users that have flagged a content?

I'm trying to make some kind of contest site, in which users can publish random old stuff, which will be raffled later between the users that have marked that content. I crated a specific content type ...