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

learn more… | top users | synonyms

0
votes
0answers
12 views

problem with flag module and ajax [on hold]

i use the flag module (7.x-3.7) with Drupal 7.42 for a like button, but on some pages it leads to an ajax loop. Can someone help me with this issue. on the frontpage it works very well (click on the ...
3
votes
2answers
26 views

Pluralize Flag/Unflag Link Text

I want to rewrite the link text for Flags such that it includes the number of flaggings for that node, as pluralizing the output. e.g. 1 Flag 3 Flags I can get as far as getting the flag count ...
0
votes
1answer
15 views

Combine own stream with flagged user

I am using follow flag latest version and edited the view fbss_ur_stream. I also created a following and followers view with the help of this tutorial Twitter style follow following I took the idea ...
0
votes
0answers
12 views

Exclude content from Views output based on User Relationships or Flags

My users have the ability to add a User Relationship called "blocked" with any other user. If User A visits User B's profile and adds this relationship to User B (it does not require approval), I ...
0
votes
1answer
29 views

How can I show the flag field using Twig?

I created a twig template for my node. If I want to show the body field, I use {{ content.field_body }}. Similarly, how can I show the flag field?
1
vote
1answer
16 views

Sending message notification based on flagged node being linked via entity reference

I'm trying to figure out how to make the following work: Sending notification based on flagged node being linked via entity reference. So i got a 'news' content type and a 'band' content type, that ...
0
votes
0answers
29 views

How to create a list of users who did not submit webform including past submissions?

When I use flag and rules, I can list only user who did not submit webform after the logic applied. How can I have the list including the past submissions. This is a followup question from How to ...
2
votes
1answer
48 views

How to find out if an entity has ever been flagged before?

The 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 has ever been flagged ...
1
vote
2answers
32 views

How to show a user's friends with only the Views and Flag module?

Is it possible to show user's friends on a user's page (located user/%/friends) with Views by using only Flag module? So without the Flag Friend module or any other modules.
0
votes
0answers
14 views

Flag counter code problem when using in views with global php

I added below code to show flag counter of content in views, but this code only shows "0". I want This code display the number of times a node is flagged by a certain flag by Users <?php ...
0
votes
1answer
55 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
13 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
47 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
18 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 ...
3
votes
2answers
33 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
41 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
52 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
77 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
29 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
44 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 ...
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
13 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
37 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
26 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
20 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
14 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 ...
3
votes
1answer
59 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
132 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
27 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
45 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
184 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
66 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
22 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
42 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
56 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
70 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
72 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
32 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
20 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
50 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
57 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
24 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
119 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 ...