

Added follow and unfollow feature to node, taxonomy and user page so that they
track the statistics of user following particular content.
This module provide configuration for setting particular node, taxonomy and user
so that follow and unfollow feature get enable for them.
This module also provide email template configuration for sending mail for
following and unfollowing content.
This module also provide views integration.
Requirements
------------
This module requires the following modules:
* views (https://www.drupal.org/project/views)
Installing
----------
* Install as you would normally install a contributed Drupal module. See:
https://drupal.org/documentation/install/modules-themes/modules-7 for
further information.
CONFIGURATION
-------------
* Configure Follow & Unfollow in Administration » configuration » Follow &
Unfollow:
- Configure Content types.
Select content types that need to be used for module feature.
- Configure Taxonomy
Select Taxonomy that need to be used for module feature.
- Configure User
Select user that need to be used for module feature.
Follow below screenshot

- Configure Follow and unfollow email template.
Provide configuration for setting email template having subject and body
field on it.
Follow below screenshot

Similar / related modules
-------------------------
Flag (https://www.drupal.org/project/flag)
Git:
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/ajayNimbolkar/2805589.git follow_unfollow
cd follow_unfollow
Project link
https://www.drupal.org/sandbox/ajaynimbolkar/2805589
| Comment | File | Size | Author |
|---|---|---|---|
| Email_template_setting.png | 56.29 KB | ajaynimbolkar | |
| Content_setting.png | 45.39 KB | ajaynimbolkar | |
| unfollow.png | 11.01 KB | ajaynimbolkar | |
| follow.png | 10.64 KB | ajaynimbolkar |
Comments
Comment #2
ajaynimbolkar commentedComment #3
ajaynimbolkar commentedComment #4
PA robot commentedProject 1: https://www.drupal.org/node/2805591
Project 2: https://www.drupal.org/node/2756909
As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue. With this in mind, your secondary applications have been marked as 'closed(duplicate)', with only one application left open (chosen at random).
If you prefer that we proceed through this review process with a different application than the one which was left open, then feel free to close the 'open' application as a duplicate, and re-open one of the project applications which had been closed.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #5
PA robot commentedFixed the git clone URL in the issue summary for non-maintainer users.
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #6
jack_ry commentedGit default branch is not set
Comment #7
arun ak commentedPlease don't assign the project application issue to yourself if you want other people to review it. Please see this page about assigning ownership to issues.
Comment #8
ajaynimbolkar commentedHi jack_ry and Arun,
I have updated git default branch.
Thanks,
Ajay
Comment #9
pankajsachdeva commentedI am testing this application.
Comment #10
ajaynimbolkar commentedHi Pankajsachdev,
Please provide your testing bug if any.
Thanks,
AJAY
Comment #11
PA robot commentedTimeout when invoking pareview.sh for https://git.drupal.org/sandbox/ajayNimbolkar/2805589.git at http://pareview.sh/pareview/httpsgitdrupalorgsandboxajayNimbolkar2805589git
Do you have any third-party files committed? 3rd party code is not generally allowed on Drupal.org and should be deleted. This policy is described in the getting involved handbook. It also appears in the terms and conditions you agreed to when you signed up for Git access.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #12
ajaynimbolkar commentedHi,
I haven't used any third-party File.
Thanks,
Ajay
Comment #13
ajaynimbolkar commentedComment #14
pankajsachdeva commentedComment #15
visabhishek commentedHi ajayNimbolkar,
Please make sure all used variables should removed on hook_uninstall().
Some examples are
Security issue:
1) You really should sanitize/validate the arg() value while passing in
follow_unfollow_check_block_visibility($param) function or before using it.
Ex code :
2) You should implement a proper access callback permission instead of "'access arguments' => TRUE,"
Comment #16
ajaynimbolkar commentedHi visabhishek,
Thanks for replay.
I have done all changes.
Thanks,
Ajay
Comment #17
ajaynimbolkar commentedComment #18
arun ak commentedIf added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Comment #19
ajaynimbolkar commentedHi Arun Ak,
Thanks for replay.
I will keep in mind that.
Thanks for your suggestion.
Comment #20
harsh.behl commentedHi Ajay,
After configuring content type & taxonomy. I can see the Follow unfollow form appears on selected nodes. But when I hit follow button, I get this notice in status reports: Notice: Trying to get property of non-object in follow_unfollow_form() (line 133 of /var/www/html/drupal-dev/sites/all/modules/follow_unfollow/follow_unfollow.module).
Comment #21
ajaynimbolkar commentedHi Pen,
Thanks for replay,
I have done all changes suggested.
Thanks,
Ajay Nimbolkar
Comment #22
fadonascimento commentedAutomated Review
No issues, just a kindly recommendation:
https://pareview.sh/node/766
Manual Review
Just a recomendation:
You don't need pass variable "NULL" to variable_get function, the function already receive the value by default:
as below
Check more about it: https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/vari...
It's possible to pass any default values:
You can change this:
For just this:
The views module is listed as requirement in project description, You should add as dependency in module.info, like:
dependencies[] = viewsYou should use "text_format" instead of "textarea" or add the option "'#wysiwyg' => TRUE," to able use ckeditor when available in forms about email templates.
Comment #23
visabhishek commented@fadonascimento : Looks like you forgot to change the status. Is this now RTBC after your review or are there application blockers left and this should be "needs work"?
Comment #24
fadonascimento commentedHi @visabhishek
I think just recommendations, nothing block, I will update to RTBC, thanks!
Comment #25
fadonascimento commentedComment #26
ajaynimbolkar commentedHi fadonascimento ,
Thanks For replay.
I have incorporated changes suggested.
Thanks,
Ajay Nimbolkar
Comment #27
ajaynimbolkar commentedComment #28
fadonascimento commentedSounds good @ajayNimbolkar, keep pushing =D
Comment #29
visabhishek commentedHi ajayNimbolkar,
Your account already granted as 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue.
So You can directly promote your sandbox project.