Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2012 at 13:46 UTC
Updated:
15 Feb 2013 at 19:13 UTC
This module sets a cookie the first time a user comes into the site and exposes a function called is_first_time_visit(); This is done via javascript to guarantee the code executes even if a proxy reverse is implemented.
Link to project: http://drupal.org/sandbox/johnnygamba/1851384
Link to git repository: git clone --recursive --branch master johnnygamba@git.drupal.org:sandbox/johnnygamba/1851384.git first_time_visit
Drupal 7
Thanks.
Comments
Comment #1
idflood commentedUsing the following as a structure for my review http://drupal.org/node/894256 and http://groups.drupal.org/node/184389
Manual review:
You can find the results of the automated report at http://ventral.org/pareview/httpgitdrupalorgsandboxjohnnygamba1851384git.
first_time_visit.js
On line 4, the class passed to the "once" function should be less generic I think. Maybe something like this:
first_time_visit.module
Maybe rename "is_first_time_visit" to "first_time_visit_is_first" or something like that.
Comment #2
johnnygamba commentedhi thanks for the review, your help is much appreciated.
Comment #3
johnnygamba commentedHi @idflood, i did everything you pointed me, can you review it again please? thanks.
Comment #4
johnnygamba commentedreview please
Comment #5
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #6
johnnygamba commentedOk i will give it a try, i will be letting you know, thanks.
Comment #7
johnnygamba commentedI have already reviewed one, but it hasn't passed yet, i'll be informing you about my progress helping the community.
cheers
Comment #8
monymirzaHi,
need to clear some errors/warnings. see here: http://ventral.org/pareview/httpgitdrupalorgsandboxjohnnygamba1851384git
first_time_visit.module
(optional) can be add
hook_help()You still have good review at #1. plz complete your work following that.
Comment #9
johnnygamba commentedhi, thanks for the review, i just fixed everything, cheers.
Comment #10
lolandese commentedDon't forget to change status then. :)
Comment #11
johnnygamba commentedSorry man change the status to what?, i don't know what to do next.
thanks for your time.
Comment #12
pere orgafirst_time_visit.module
You should use
isset()insidefirst_time_visit_is_first().You could implement the function as follows:
or better:
first_time_visit.js
You have:
Honestly, I don't see how this can work. If the cookie is not set or is false, you set it to true. If the cookie is true, you set it to false. But the next time, the cookie will be set to true again.
Maybe you want to do this: ??
Please also align all the javascript code properly.
README.txt
The file is short. Could be extended explaining how the module works and what it uses.
Comment #13
pere orgaComment #14
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
If you reopen this please keep in mind that we are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)