Hi,
This module is to detect devices and then retheme or redirect the response. This could be used to improve your website on mobiles, or increase accessiblity on tv browsers or help out with just about any device.
The 51Degrees theme switcher requires the library api and the 51Degrees.mobi PHP device detector (simply copy the contents into the sites/all/libraries folder).
We've applied before for full access a twice before, but this an attempt from the bottom up making extensive use of the forms api. Switching and redirection are controlled from the 51Degrees.mobi menu this module creates in the Configuration.
Project Page - http://drupal.org/sandbox/51Degrees/2003022
Git Instructions - http://drupal.org/project/2003022/git-instructions
Reviews of other projects:
https://drupal.org/node/2005244#comment-7520827
https://drupal.org/node/2006076#comment-7520969
https://drupal.org/node/1743162#comment-6749692
Comments
Comment #1
PA robot commentedWe 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
cravecode commentedI love that you're checking for the library and giving a direct link to the download location!
Great inline commenting!
I'm curious why the module is located in the sub-directory 51Degrees and is not in the root of the repository?
I reviewed this module using
PHP 5.3.22Automated Review via Code Sniffer
Running the module through Coder yields the following highlights:
drupal_set_message($message);
drupal_set_message($message, 'warning');
I know those are coming from form values that are only accessible by an authenticated user and thus could be a "trusted" user. I think it would be better to play it safe and make sure your value used from the form is ran through check_plain().
Manual Review
When I run clear caches from Drush, I get the following error consistently:
While attempting to save a new Rule I get the following error:
Fatal error: Cannot use string offset as an array in 51degrees_mobi_mobile_theme_switcher\fiftyone_degrees\fiftyone_degrees.module on line 168
To reproduce this I did the following from the Device Rules page:
Comment #3
cravecode commentedComment #4
51Degrees.mobi commentedThanks a lot for the review cravecode.
I wasn't sure where to put files in the repository. I've now moved the files to the root of the repository.
The Drupal messages now go through check_plain.
I'm still trying to track down the fault in 51Degrees.mobi.php. This file is from the external library which will of course be published separately when I've fixed the issue.
Finally, I believe I've solved the problem you had with string offsets as arrays.
Comment #5
cravecode commentedI tested your recent updates and it seems to work as advertised! I've got nothing else to add.
Congrats and good luck!
Comment #6
51Degrees.mobi commentedAdded my manual reviews.
Comment #7
klausiReview of the 7.x-1.x 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:
So there are a couple of major issues with the module, but not absolute critical blockers, so ...
Thanks for your contribution, 51Degrees.mobi!
I updated your account to let you 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 get 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 #8.0
(not verified) commentedAdded review links.