Browser Based Targeting:- This modules provide the flexibility to show block in a region based on different browser.
* Added new feature :- This modules will display block based on device like mobile, i pad, desktop etc..
Direct link to git repository
git clone --branch 7.x-1.x-dev http://git.drupal.org/sandbox/ajesh/2061283.git custom_detect
Project Page Link
https://drupal.org/sandbox/ajesh/2061283
Drupal core version [7.x]
Manual reviews of other projects:
https://drupal.org/node/2059227#comment-7759421
https://drupal.org/node/2059227#comment-7762209
https://drupal.org/node/2066777#comment-7796749
https://drupal.org/node/2079165#comment-7817561
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxajesh2061283git
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 #2
ajesh CreditAttribution: ajesh commentedPlease give review comment or provide any suggestion on this modules.
Comment #3
ajesh CreditAttribution: ajesh commentedPlease give review comment or provide any suggestion on this modules.
Comment #4
drupalfever CreditAttribution: drupalfever commentedHi, ajesh!
I've noticed that you have requested that I review your module. I am already reviewing 3 other modules. It is a lot of work to review modules!
As you may have noticed, no one has reviewed my module yet.
Given our similar predicament I decided to suggest that we help each other. I could review yet another module if you are kind enough to returned the favor.
My module is located at:
https://drupal.org/node/2059227
I will be waiting for your response.
Comment #5
ajesh CreditAttribution: ajesh commentedHi DrupalFever,
Sure we will help each other in review part. I would suggest you to create the modules in [D7] as well because the stable version of D7 are release and every one want to adopt latest version. BUt for sure I will review your module.
Thanks,
Ajesh
Comment #6
drupalfever CreditAttribution: drupalfever commentedI have already downloaded your project and it seems to be working fine.
I will need more time, though, to make sure that everything is fine.
With regards to my module being upgraded to version 7, I agree with you. But I will leave this for after my first project is approves. As you know, the approval of my project will depend on people like you. :)
You will hear from me tomorrow. Till then!
Comment #7
drupalfever CreditAttribution: drupalfever commentedI tested your module in two Drupal installations and everything worked fine.
The only suggestion I would like to make is that you review the wording on the configuration tab. It is a little ambiguous. The interface is also somewhat counter intuitive.
The title says:
You could say, for example:
You could set the Checkboxes as selected by default.
If you agree with my suggestion to set the Checkboxes as selected by default, you could change what is currently there at the bottom:
You could type the following:
This is not a bug or error. It is just a suggestion that I think might improve usability.
Tell me what you think!
Comment #8
ajesh CreditAttribution: ajesh commentedHi Drupal Fever,
I would appreciate your review comment I will incorporate few of the comment that would make sence,
and Regarding the selected check-box..I have make this intentionally because this will default show all leading browser. if user want to show only the selected browser.
Thanks,
Ajesh
Comment #8.0
ajesh CreditAttribution: ajesh commentedadded drupal core version
Comment #9
uncommented CreditAttribution: uncommented commentedHi, I tested this module in the five browsers provided, and it works splendidly!
The only criticism I can offer is that it would be nice to make the list of browsers configurable (say I want to add some specific mobile user-agents for example), and perhaps add some common mobile browsers to the list. With mobile targeting in-place, I could see this module being a major asset to site owners who want to tailor their mobile experience.
Code Review (through the coder module) detected the following minor, pedantic errors:
Overall, great module! I don't see any reason why this should not become a full project.
Comment #10
ajesh CreditAttribution: ajesh commentedHI Robert Brownstein,
thanks for your quick review comment, I will defenetly add the suggested changes and add leading mobile browser as well in current project list.
Thanks,
Ajesh
Comment #11
ajesh CreditAttribution: ajesh commentedHI Robert Brownstein,
I have update the modules with suggested minor issue.
"Code Review (through the coder module) detected the following minor, pedantic errors:"
Thanks,
Ajesh
Comment #12
drupalfever CreditAttribution: drupalfever commentedAs I said before, the suggestions I made were only cosmetic.
I understand that you have a different point of view with regards to your module's interface.
In any other aspect your module is fine by me.
I will set is as OK.
Good luck with your full project application!
Comment #13
ajesh CreditAttribution: ajesh commentedHi Drupalfever,
I really appreciate your help in reviewing the project.
Thanks,
Ajesh
Comment #14
kscheirerI'll look at this now in the Project applications sprint.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #15
kscheirerWe prefer collaboration over competition, therefore we want to prevent having duplicating modules on drupal.org. If the differences between these modules are not too fundamental for patching the existing one, we would love to see you joining forces and concentrate all power on enhancing one module. (If the existing module is abandoned, please think about taking it over).
If that fails for whatever reason please get back to us and set this back to "needs review".
That is the most serious problem, but there is still a full review below.
WARNING: DO READ THE INSTALL FILE
when the user is already reading that file :);Information added by Ajesh Prakash packaging script on 09/08/2013.
from the .info file, Drupal will handle that for you.----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #16
ajesh CreditAttribution: ajesh commentedHi kscheirer,
Thanks for taking the time reviewing my module #15.
I will try to cover each of the points asap and update the modules.
I appreciate your help!
And just FYI the modules you mention above like "Browscap Block adds visibility options to block configuration settings to allow you hide or show blocks in mobile devices" and "Browscap" modules have differnt functionlaity.
Thanks,
Ajesh
Comment #17
ajesh CreditAttribution: ajesh commentedHi kscheirer,
I have incorporated the suggested review comment.
Thanks,
Comment #17.0
ajesh CreditAttribution: ajesh commentedother project review link
Comment #17.1
ajesh CreditAttribution: ajesh commentednew feature added..detect mobile device
Comment #18
ajesh CreditAttribution: ajesh commentedHi,
I have added new feature like mobile device detection for block in current modules. please review.
Thanks,
Ajesh
Comment #19
ajesh CreditAttribution: ajesh commentedHi,
I have added new feature like mobile device detection for block in current modules. I would appriciate if you please review.
Thanks,
Ajesh
Comment #20
klausiDon't forget to add the "PAReview: review bonus" tag as indicated in http://drupal.org/node/1975228 , otherwise you won't show up on my high priority list. (When you have completed 3 manual reviews and linked them in the issue summary)
Comment #21
ajesh CreditAttribution: ajesh commentedComment #22
ajesh CreditAttribution: ajesh commentedadded tag PAReview: review bonus
Comment #22.0
ajesh CreditAttribution: ajesh commentedupdated the clone path
Comment #22.1
ajesh CreditAttribution: ajesh commentedreview of other project
Comment #23
madhusudanmca CreditAttribution: madhusudanmca commentedHi,
You still seems to be working on master branch in git repository; if not, remove it.
Moving from a master branch to a version branch .
I can also see some of the unused variables:
1) $description = ''; line #47 - file: custom_detect.module
2) $module line #48 - file: custom_detect.module
3) $delta line #49 - file: custom_detect.module
4) $block line #50 - file: custom_detect.module
5) $bname line #152 - file: custom_detect.module
Thanks
Comment #24
gauravjeet CreditAttribution: gauravjeet commentedHi,
Suggestion : Please do not mention your name everywhere in the module.
PLease view and remove these syntax errors :
http://pareview.sh/pareview/httpgitdrupalorgsandboxajesh2061283git
.module file
It would be better to use db_select() instead of db_query() so that queries would become compatible with different databases.
Thanks.
Comment #25
klausiCorrection: Do not use db_select() for simple static queries, use db_query() instead. See http://drupal.org/node/310075
Comment #26
akishankarHi Ajesh,
Nice work done.
Comment #27
ajesh CreditAttribution: ajesh commentedHi,
suggested changes are incorporated in branch 7.x-1.x-dev
Comment #28
sanddycool47 CreditAttribution: sanddycool47 commentedHi Ajesh
Same option on line no 62. Please remove.
Otherwise nice module.
Comment #29
ajesh CreditAttribution: ajesh commentedfix issue#28, please verify
Comment #29.0
ajesh CreditAttribution: ajesh commentedreview link
Comment #30
gaurav.pahuja CreditAttribution: gaurav.pahuja commentedMaster branch still exist for this project and it is selected as default branch. Please delete that. Otherwise pareview.sh will provide review comments for master branch.
Comment #31
gaurav.pahuja CreditAttribution: gaurav.pahuja commentedAlso, I cloned 7.x-1.x-dev branch and found following issues after running coder module:
Comment #31.0
gaurav.pahuja CreditAttribution: gaurav.pahuja commentedmodify project description
Comment #32
klausiRemoving review bonus tag, you have not done all manual reviews, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.
I removed the automated review from the issue summary.
Comment #33
ajesh CreditAttribution: ajesh commentedHi,
I have incorporated the suggested review comment. I would request you all to review again.
Thanks,
Ajesh Prakash
Comment #34
klausiRemoving review bonus tag, there are only 2 review comments listed in the issues summary. Please complete it with a third review.
Comment #35
ajesh CreditAttribution: ajesh commentedHi Madhusudhan,
Thanks for your review comment, I will review and incorporate the suggested code change.
and regarding the repository issue, I have moved the code to branch 7.x-1.x-dev
and right now it will point to this branch.
Thanks,
Ajesh
Comment #35.0
ajesh CreditAttribution: ajesh commentedremoved automtated review
Comment #36
ajesh CreditAttribution: ajesh commentedComment #37
ajesh CreditAttribution: ajesh commentedHi,
I would request to all kindly review again and let me know if have any issue in this modules.
Thanks,
Ajesh
Comment #38
bappa.sarkar CreditAttribution: bappa.sarkar commentedFound permission which is never used.
Suggestion: You can add option Show this block for browser
IE
FF
Safari
etc
Comment #39
ajesh CreditAttribution: ajesh commentedComment #40
ajesh CreditAttribution: ajesh commentedHI Bappa,
Thanks for review and your valuable input, I have removed the unused permission hook function.
Thanks,
Ajesh
Comment #41
oboz CreditAttribution: oboz commentedPHP have a function get_browser() to detect browsers. In addition Drupal have a module Browscap, with which you can obtain an improved version of the function.
In custom_detect_block_list_alter() is better to use the function get_browser() or browscap_get_browser() if you use Browscap. Then the function custom_detect_getbrowser() is not needed.
In addition, there may be a good idea to add an administrative page with the ability to add their own types of browsers? But I'm not sure about this idea.
Comment #42
ajesh CreditAttribution: ajesh commentedHi oboz,
Thanks for your valuable review comment, Just FYI.. therea are some restriction for using get_browser() , Refer below
And if I use the browsecap module function then this moduels depend on this as well,
I have created this modules standalone so there would be no any dependncy on other modules.
Please suggest if you have suggestion on this.
Thanks,
Ajesh
Comment #43
oboz CreditAttribution: oboz commented@ajesh
On this side, you're right. Thanks for the explanation.
Comment #44
sanddycool47 CreditAttribution: sanddycool47 commentedHi Aajesh,
Thanks for this Module.
Comment #45
debrajn CreditAttribution: debrajn commentedHi Ajesh,
This module save my lots of works. We have some requirement like this.
Thanks
Debraj
Comment #45.0
debrajn CreditAttribution: debrajn commentedreview comment added
Comment #46
klausiIt appears you are working in the "7.x-1.x-dev" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
There is still a master branch, make sure to set the correct default branch: http://drupal.org/node/1659588 . Then remove the master branch, see also step 6 and 7 in http://drupal.org/node/1127732
The following git branches do not match the release branch pattern, you should remove/rename them. See http://drupal.org/node/1015226
Review of the 7.x-1.x-dev branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
manual review:
This sounds like a feature that should live in the existing browscap project, or at least it should be based/dependent on the existing browscap code. Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. Please open an issue in the PROJECT_NAME issue queue to discuss what you need. You should also get in contact with the maintainer(s) to offer your help to move the project forward. If you cannot reach the maintainer(s) please follow the abandoned project process.
If that fails for whatever reason please get back to us and set this back to "needs review".
Comment #46.0
klausifixed link
Comment #47
ajesh CreditAttribution: ajesh commentedHi klausi,
I have removed the master and created new branch,
Also I have update the code as suggested, and regarding the browse-cap modules, custom detect modules used independently and there is no any other dependency in other modules please let me know if you need more information.
Thanks,
Ajesh
Comment #48
ajesh CreditAttribution: ajesh commentedComment #49
kscheirerI think you are missing the point - your module *should* depend on browscap. Why? because browscap is already really good at figuring out which browser someone is using.
So instead of duplicating the same code in both modules, you can build on top of browscap.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #50
ajesh CreditAttribution: ajesh commentedHi kscheirer ,
As I have read Best practice on Drupal.org "Avoid too many modules" refer this article https://drupal.org/node/1141442
if we use more modules then it will slow down the application, please let me know if you have any other thought onto this. Thats why I have cretaed this modules. but still if you think I have to add this as a part of dependency then I will change the code. Please suggest.
Thanks,
Ajesh
Comment #51
ajesh CreditAttribution: ajesh commentedComment #52
klausiDo not RTBC your own application, see https://drupal.org/node/532400
manual review:
However, it is your decision to duplicate code, even if it is against common community interest. Since this was RTBC already and I don't see any other blockers ...
Thanks for your contribution, ajesh!
I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #53.0
(not verified) CreditAttribution: commentedreview other project