Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
About this module
The PLY NXS Viewer module provides a new configurable file field formatter called "3D Model(s)". This formatter use the 3DHOP JavaScript library to render 3D Objects (.NXS and .PLY files). See the 3DHOP library website for more information and examples.
How to use ?
- In any content type, create a new File field. This field must be a multiple file field, with a maximum of 3 files. Only .ply and .nxs extensions must be allowed.
- In the Manage display options, choose 3D Model(s) as Format type for this new field.
- You can now choose (in the formatter configuration) the Viewer Options to be displayed.
Notice: a unique 3D viewer per page is allowed.
Project page
I need a review before publishing a first release of this project.
https://www.drupal.org/project/ply_nxs_viewer
Code :
git clone --branch 7.x-1.x https://git.drupal.org/project/ply_nxs_viewer.git ply_nxs_viewer
Comment | File | Size | Author |
---|---|---|---|
#16 | pareview-sh.jpg | 30.96 KB | Satyam Upadhyay |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedc4ilus created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpsgitdrupalorgsandboxc4ilus2843513git
Fixed 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 #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
khurram_awan CreditAttribution: khurram_awan as a volunteer commentedHi c4ilus,
Your module is not using drupal coding standards.
please change
$element['alter_opacity'] = [
'#type' => 'checkbox',
'#title' => t('Apply opacities on objects'),
'#default_value' => $settings['alter_opacity'],
];
to
$element['alter_opacity'] = array(
'#type' => 'checkbox',
'#title' => t('Apply opacities on objects'),
'#default_value' => $settings['alter_opacity'],
);
Same with $formatter['ply_nxs_viewer_models'] = [
$theme['ply_nxs_viewer_formatter'] = [
https://www.drupal.org/docs/develop/standards/coding-standards#array
Thanks,
Khurram
Comment #6
khurram_awan CreditAttribution: khurram_awan as a volunteer commentedComment #7
klausiMinor coding standard issues are surely not application blockers. Anything else that you found or should this be RTBC instead?
Comment #8
khurram_awan CreditAttribution: khurram_awan as a volunteer commentedHi @klausi
Correct me if I am wrong but as far as I can see Drupal 7 does support PHP version 5.3 at the moment (https://www.drupal.org/docs/7/system-requirements/php). Using short array syntax will be a syntax error.
Thanks,
Khurram
Comment #9
klausiPHP 5.3 has long been unsupported, so I think it's fine if new modules rely on supported versions of php. That's why short array syntax usage should not be an application blocker.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedHi,
Thanks for your feedback, I correct the minor coding standard issues.
Romain.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous at Makina Corpus commentedComment #12
sachintyagi99 CreditAttribution: sachintyagi99 commentedHi @c4ilus
I have checked your module:
1:- Implement hook_help
2:- pareview.sh (https://pareview.sh/node/900) Need to working on coding standards.
Comment #13
sachintyagi99 CreditAttribution: sachintyagi99 commentedComment #14
Anonymous (not verified) CreditAttribution: Anonymous at Makina Corpus commentedHi @sachintyagi99
Thanks for your report.
Comment #15
Anonymous (not verified) CreditAttribution: Anonymous at Makina Corpus commentedComment #16
Satyam Upadhyay CreditAttribution: Satyam Upadhyay commented@c4ilus
Add .git extension to the end of "git clone --branch 7.x-1.x https://git.drupal.org/sandbox/c4ilus/2843513.git ply_nxs_viewer"
Regards
Satyam
Comment #17
Satyam Upadhyay CreditAttribution: Satyam Upadhyay commentedSorry forgotten to change status, now changing
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous at Makina Corpus commented@satyam-upadhyay
Please try again with the good URL: https://git.drupal.org/sandbox/c4ilus/2843513.git (without the ply_nxs_viewer, this last information isn't necessary for pareview) :)
Comment #19
sleitner CreditAttribution: sleitner commentedAutomated Review
Pareview details: https://pareview.sh/pareview/https-git.drupal.org-project-ply_nxs_viewer...
Review of the 7.x-1.x branch (commit 28cbf2d):
hook_help()
. See https://www.drupal.org/docs/develop/documenting-your-project/module-docu... .This automated report was generated with PAReview.sh, your friendly project application review script.
Manual Review
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #20
sleitner CreditAttribution: sleitner commentedComment #21
apadernoComment #22
apadernoIf you are still working on this application, you should fix all known problems and set the status to Needs review. (See also the project application workflow.)
Please don't change status of this application if you aren't sure you have time to dedicate to this application, or it will be closed again as won't fix.
I am closing this application due to lack of activity.