*Orbit Media Flexslider Module*
The point of this module is to be a drop in slider for Orbit Media studios.
The configuration will be as follows.
Under the admin section (open to change) there will be a page where the
user/admin can create new blocks. these blocks are loaded into the table names oms_flexslider.
After a block has been created it will be available in the structure->blocks section.
These blocks will all have a configuration section, like other blocks
where a user will be able to change Flexslider settings. Please refer to the Flexslider page.
http://www.woothemes.com/flexslider/
There will be a new content type created where a user can assign a slider to the created block,
options being made available through a dropdown from the content type. We can add as many
fields as we want to the content type, such as image, etc.
All other displays will be handled by the style.
Project page: https://drupal.org/sandbox/jasonrichardsmith/2009844
Git repository: git clone --branch 7.x-1.x jasonrichardsmith@git.drupal.org:sandbox/jasonrichardsmith/2009844.git oms_flexslider
Comments
Comment #1
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://ventral.org/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009...
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
diolan commentedThe OMS Flexslider seems to be a useful module, but there are still things to be fixed:
Automatic review:The number of errors are discovered by vental.org (http://ventral.org/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009...).
Manual review:
In
oms_flexslider_block_configure()function you include theincludes/oms_flexslider.block_form.incfile. In this file you initialize the$formarray and then simply return it from theoms_flexslider_block_configure()function.I think this would be better to wrap the code in oms_flexslider.block_form.inc into a function and call it, e.g:
$form = oms_flexslider_block_configure_form();Comment #3
jasonrichardsmith@gmail.com commentedI really don't have time to go through this. I will see if someone at work wants to review and fix it.
I fixed the above function.
Comment #4
jasonrichardsmith@gmail.com commentedThe changes have been made to all files aside from the flexslider specific files: js, css and txt files
I am getting some false positives on no having doc blocks when I do,
Not sure what is causing that
http://ventral.org/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009...
Comment #5
jasonrichardsmith@gmail.com commentedOk all my code passes review.
The other files come from flexslider.
Comment #6
jasonrichardsmith@gmail.com commentedchanged title
Comment #7
jasonrichardsmith@gmail.com commentedElevated after two weeks
Comment #8
PA robot commentedProject 1: https://drupal.org/node/2009900
Project 2: https://drupal.org/node/2009846
Project 3: https://drupal.org/node/1388672
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 #9
jasonrichardsmith@gmail.com commentedComment #10
jasonrichardsmith@gmail.com commentedI have moved this project to critical. This is a pretty simple module, if someone could take the time to review it real fast.
Comment #11
jasonrichardsmith@gmail.com commentedAm I doing something wrong? How do I get this reviewed?
Comment #12
captainpants commentedHey Jason,
Great module but it does have an issue.
Although the text of OMS slider content is saved as plain text, it is not rendered as plain text, meaning that I can put something like malicious javascript inside the text box and have it run. Take a look at the check_plain() function to eliminate the rendering of html elements wherever field_oms_slider_text is put on the page.
Comment #13
jasonrichardsmith@gmail.com commentedAngelo,
Thanks for looking at my module.
I made the change suggested.
Comment #14
jasonrichardsmith@gmail.com commentedComment #15
kscheirerThe Libraries API module is a recommended method for adding 3rd party dependencies without directly including the code on Drupal.org.
We 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".
You have a few issues listed here: http://pareview.sh/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009..., ignore the ones generated by flexslider code of course.
Remove .gitignore file from the repo.
In your schema
'uid' => array('description' => 'Block ID.',but in oms_flexslider_block_query() it looks like that column is a user id.You should consider integration with the Bean module, which allows you to create block types (similar to content types but for blocks). That might be easier than handling all the custom portions yourself.
Setting to "needs work" for the first 2 issues, which are blocking.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #16
jasonrichardsmith@gmail.com commentedThanks for the feedback. I have no ambition to integrate with the bean module at this time.
Beans being a rather obscure module, it is weird you would suggest it.
I will remove the library and add instructions on where to install it. I will possibly integrate with libraries at a later date.
I do not feel this is duplication, since it does not require views or any other module outside of core to create a flexslider. This is literally a drop in solution.
Comment #17
jasonrichardsmith@gmail.com commentedOk the changes have been made, please review the module.
Thank you.
Comment #18
kscheirerLANGUAGE_NONE is a constant, not a string, so you can use it like
$content .= file_create_url($slide->field_oms_slider_image[LANGUAGE_NONE][0]['uri']);(no quotes around it). That should work just the same as 'und'.The project page still looks the same?
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #19
jasonrichardsmith@gmail.com commentedkscheirer,
Is that what prevents this project being approved? If so, I will have the most wonderful page you ever saw.
I would just hate spending the time and then go back to square one again, because someone thought it was a duplicate or some other reason.
Comment #20
kscheirerLet's get a second opinion on the duplication issue first then.
Comment #21
discipolo commentedyou said
but it seems http://drupalcode.org/project/flexslider.git/blob/dc3884f:/flexslider.info only depends on libraries (which yours should) and on ctools (exportables?) outside of core, could you elaborate on the differences between your module and flexslider?
on a different note: the bean module might be a bit obscure but its great for multiple fielded blocks so you can easily create a bean type with a flexislider field (like i did with field_slideshow https://drupal.org/sandbox/discipolo/1972366)
edit: i just simplytest.me your project:
that said: very intuitive and fast interface to create blocks under admin/structure and assign content to them using a predefined nodetype.
that interface/workflow is distinctly different from the one provided by flexslider on install in that it doesnt require to setup nodes or views.
having one block precreated on install might be sensible cause we can expect users that enable the module will want at least one.
It should still be investigated if flexislider module can use some of this but that may happen once this is approved and being used.
Comment #22
jasonrichardsmith@gmail.com commentedI would like to thank everyone for reviewing the project.
I will deal with the above notices with a drupal_set_message for flexslider admin over lunch today.
I think the Flexslider module is pretty cool and extendable, but it seems more often than not, we are building sites that have one slider on the front page and that is it. So this drop in solution works pretty well for getting something up quick and easy.
If approved I would add the ability to theme with templates and integrate with Libraries. Honestly I was afraid to make any changes until I got through approval.
I would also like to apologize for not being more active with reviews and such. Not to make excuses but I have a newborn, and leading up to birth was hectic and now I just have not been getting any sleep.
Comment #23
jasonrichardsmith@gmail.com commentedI have made the updates. Please review.
Comment #24
kscheirerBased on #21 it seems like your module is significantly different. The project page does need to be updated though, this is a blocking issue. And you have a few minor errors that would be nice to take care of, reported at http://pareview.sh/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009....
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #25
jasonrichardsmith@gmail.com commentedCreated project page.
https://drupal.org/sandbox/jasonrichardsmith/2009844
Pareview passed
http://pareview.sh/pareview/httpgitdrupalorgsandboxjasonrichardsmith2009...
Added Language none with out the quotes.... (that was stupid)
Comment #26
kscheirerAwesome, thanks!
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #27
kscheirerIt's been a month with all problems resolved, so...
Thanks for your contribution, jasonrichardsmith@gmail.com!
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.
----
Top Shelf Modules - Crafted, Curated, Contributed.