RDBANNER Module provides the facility to the admin to create multiple slider for a page. With this module, Admin can assign multiple custom slider on the page according to regions. Admin can choose & put different slider on different pages.
There are two steps to create & assign sliders on the pages.
i) - Create Rdbanners :- At this step, admin can create banner by filling following fields.
a) - Banner title : Title of the Rdbanner, Drupal creats a block with same title.
b) - Image style : Image style will be applied on all banners images.
c) - Type : This includes normal slider or carousel.
d) - Region : A list of all regions available in theme. Module will create & assigne block in selected region.
e) - Pages : can add multiple pages where, block will be displayed in selected region.
ii) - After create Rdbanners, Banner images need to be uploaded in this step. Admin can upload multiple image with this step with title (which will be used as a image caption.) and URL (banner image will be linked with URL) after selection slider from list.
Features & how it is different from other :
1) - This module creates responsive slider with jquery bx-slider plugin. Slider can adjust width according to region.
2) - Multiple slider can creates for a single page.
3) - Assign slider blocks in selected regions on selected pages with module interface without touching admin block page.
4) - Can select slider type i.e. normal slider or carousel. On same page, admin can assign normal slider or carousel or both.
5) - Admin can also create banners for the page. For this, need to select slider from "type" field and need to put only one image.
Sandbox URL : https://www.drupal.org/sandbox/ram0108/2326021
Git clone command : git clone --branch 7.x-1.x http://git.drupal.org/sandbox/ram0108/2326021.git rdbanners
Reviews of other projects
1 - https://www.drupal.org/node/2312955#comment-9101173
2 - https://www.drupal.org/node/2326909#comment-9101285
3 - https://www.drupal.org/node/2315327#comment-9101471
4 - https://www.drupal.org/node/2322009#comment-9117135
5 - https://www.drupal.org/node/2300519#comment-9117253
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | banner_listing.png | 30.13 KB | pushpinderchauhan |
| #16 | XSS_alert_on_view_page.png | 41.47 KB | pushpinderchauhan |
| #16 | XSS_on_view_link.png | 12.33 KB | pushpinderchauhan |
| #11 | pareview.sh_.png | 172.04 KB | ram0108 |
| #5 | pareview.sh_.png | 186 KB | ram0108 |
Comments
Comment #1
IcreonGlobal commentedThere are many information missing in your project application. you should follow up below articles to create a application in correct format. For example, project repo path and sandbox URL etc. are missing.
https://www.drupal.org/node/1587704
https://www.drupal.org/node/1659588
https://www.drupal.org/node/1127732
You should also run a automated review at http://pareview.sh/
Thanks,
Mukesh
Comment #2
PA robot commentedGit clone command for the sandbox is missing in the issue summary, please add it.
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 #3
ram0108 commentedComment #4
ram0108 commentedHi All,
First thanks for your time to review my module.
Sorry for this missing information, i just added sandbox URL.
Also i had already run a automated review for this module on http://pareview.sh/ for coding standard.
Comment #5
ram0108 commentedComment #6
ram0108 commentedComment #7
ram0108 commentedComment #8
ram0108 commentedI have put all missing information.
Comment #9
pkamerakodi commentedHi,
Thanks for the contribution.
Please find some notices that i found which could be improved
Manual Review
Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements
3rd party code
Yes: Follows the guidelines for 3rd party code.
README.txt/README.md
Yes
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
No. If "no", list security issues identified.
1) rdbanners_add_banner_form_submit input is not sanitized before saving
2) In function rdbanners_add_banner_images_form_submit its better to apply filter_xss before saving.
3) rdbanners_settings_form_submit input is not sanitized before saving
Coding style & Drupal API usage
4) rdbanners_edit_banner_form_submit input is not sanitized before saving
1) Remove the white space before 'rdbanners_list'
$query = db_select(' rdbanners_list', 'rdbl');
2) Not sure if you really need this variable $variables['count']
3) Missing hook_requirements to check if bxslider is present
4) Please add a check to make sure library is present before this code
drupal_add_css($lib_path . '/jquery.bxslider.css');
drupal_add_js($lib_path . '/jquery.bxslider.js');
5) Wrong way of adding js and css to block use attached as below to avoid issues when block caching is enabled
$block['content'] = array(
'#markup' => mymodule_testblock_content(),
'#attached' => array(
'css' => array(
drupal_get_path('module', 'mymodule') . '/css/mymodule.css',
),
'js' => array(
drupal_get_path('module', 'mymodule') . '/js/mymodule.js',
),
),
);
6) $rdbanners_options = array(); is not necessary.
7) use https://api.drupal.org/api/drupal/includes!theme.inc/function/theme_image/7 instead of img tag $file = '
uri) . '">';
8) Always a bad practice to call $image = file_load($fid[$i]); and $src = image_style_url($image_style[$i], $image->uri); from templates, please use preprocess functions.
Prajwal
Comment #10
pkamerakodi commentedComment #11
ram0108 commentedHello @pkamerakodi,
Thanks for your review.
I have done all changes in coding suggested by you and also checked coding standard on http://pareview.sh/.
http://pareview.sh/pareview/httpgitdrupalorgsandboxram01082326021git
Please have a look and let me know if you get any other issue.
Thanks!!
Comment #12
ram0108 commentedComment #13
ram0108 commentedComment #14
ram0108 commentedComment #15
pushpinderchauhan commentedCorrected Sandbox URL and Git clone command.
Comment #16
pushpinderchauhan commented@ram0108, thankyou for your contribution.
Automated Review
Best practice issues identified by pareview.sh / drupalcs / coder. None.
Manual Review
Also It would be good to extend your project page little bit more, you can take a reference from https://www.drupal.org/project/nivo_slider that almost does the same thing.
<script>alert('XSS');</script>in this form then I will get a nasty javascript popup when I visit the view page (admin/structure/rdbanners) and assigned page. At both places I get this popup. You need to sanitize user provided text before printing, make sure to read https://www.drupal.org/node/28984 again.!bxsliderand!curl_url, need to be fixed.'description' => $t("jquery.bxslider not found. <a href='!bxslider'>bxslider</a> library.", array('!curl_url' => 'http://bxslider.com')),stylesheets[all][] = css/jquery.bxslider.cssthrough .info file, even you are adding the same in .module file in correct manner.rdbanner_image.tpl.php), just to render the image, better to use either theme_image or theme_image_style.drupal_flush_all_caches();, why it is required in your module.drupal_flush_all_caches();is there, also you are inserting user provided input directly to database that need to be fixed. Also check the same for another form too.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.
Please don't remove the security tag, we keep that for statistics and to show examples of security problems.
Thanks again for your hard work!
Comment #17
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.