Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2012 at 14:24 UTC
Updated:
18 Mar 2013 at 23:25 UTC
The Views Reveal module is a Views Style Plugin that can be used to output a view in a Reveal presentation. This module uses the JS plugin Reveal, made by Hakim El Hattab.
Reveal integrates very nice HTML5 presentations, like Power Point used to do.
This module will create a View Reveal type that will display nodes in a Reveal presentation. Settings are available for keyboard controls, theme, transitions effects, and more. With grouping rows, you can create vertical views or horizontal views.
Project : http://drupal.org/sandbox/ambika/1794520
Git : git.drupal.org:sandbox/ambika/1794520.git
This module is used for Drupal 7.
Comments
Comment #1
klausiWelcome,
please get a review bonus first. Then try to fix issues raised by automated review tools: http://ventral.org/pareview/httpgitdrupalorgsandboxambika1794520git
Comment #2
berdyshev commentedIt seems that your account isn't personal. This is not allowed according the terms (you can read this notice on the registration page)
Comment #3
AmbikaFR commentedOk, sorry about that. Can i close this issue and recreate one with my personnal account?
Comment #4
klausiYou can just change your username and all details on your profile: http://drupal.org/user/2309448/edit
Comment #5
AmbikaFR commentedOk, thanks for your answer. I ve just change my profile.
Comment #6
berdyshev commented@klausi, I don't sure, but it seems that this user has two accounts: his own (Ambika) and another account for his company (AmbikaFR). and this account is of company. So I don'i sure, if changing profile details is a good way.
Comment #7
AmbikaFR commentedAmbika and AmbikaFR are different companies. Ambika is an indian company, and AmbikaFR is a french company. I work in the french Ambika company, and AmbikaFR is now my own account, as a Ambika Drupal developer.
Comment #8
AmbikaFR commentedHere are my 3 reviews of "needs review" projects :
http://drupal.org/node/1637712#comment-6524558
http://drupal.org/node/1267234#comment-6528350
http://drupal.org/node/1722030#comment-6524250
Regards,
Comment #9
klausiDo not forget to set your application to "needs review" once you are ready. See http://drupal.org/node/532400
Do not forget to add the "PAReview: review bonus" tag, otherwise you won't show up on my high priority list. See http://drupal.org/node/1410826
Comment #10
AmbikaFR commentedOk klausi, and thanks for your help. i am looking for code style issues, reported by PHP Sniffer. 2 questions :
- I include an external plugin "Reveal.js", is the js and css code has really to respect drupal standard coding? Much of issues are in main.css from this external plugin. Anyway, the corrections will be removed if i upgrade the plugin.
- I declare a views plugin, wich involved lowerCamel issues, because views by convention, named his function and plugins with underscores. Could we also ignore this issues? (In fact, it's impossible to extend views core plugins without underscores in function names)
Regards,
Comment #11
stborchertI'm not sure the plugin is licensed under GPLv2 or later. If it is not licensed this way you can't include it into your module (see Licensing FAQ).
I would say, yes: dawehner noted recently "we can't change the (Views-) API just to satisfy the code style guidelines" ;)
Comment #12
klausiThe Libraries API module is a recommended method for adding 3rd party dependencies without directly including the code on Drupal.org.
Comment #13
AmbikaFR commentedOk Klausi, i am going to work with libraries to include Reveal.js. Thanks for your precisions.
Regards,
Comment #14
AmbikaFR commentedAdding PAReview: review bonus tag.
Comment #15
AmbikaFR commentedI have just push the last revision of Views Reveal :
Thanks in advance for your review,
Regards,
AmbikaFR.
Comment #16
berdyshev commentedFirst of all you need to move your code into version specific branch. you can read about this here.
It's the best way to create separate directory for views API implementation called 'views' and move there all files related to the views handling.
Does this hook is really should be implemented?
Could this code be moved into style render function?
The style of PhpDoc doesn't correspond to the Drupal code style standards. Please, read this recommendations.
Those options also should be made translatable (use t() function)
You do not need to use extra braces around empty() function. And in many other places.
this can be replaced with this code:
This is the first overview of the code. Maybe I will add something later.
Comment #17
AmbikaFR commentedHi Berdart,
At first, thanks for your manual review and sorry for the very long delay for my answer.
Yes, i need to implement this hook because reveal display is not aware of page variables if this hook is not implemented (nothing is passed to the template).
Do you mean a theme function ? I'am not sure it's the best place for this kind of code. The code just add css and js ressources in case of Reveal views displaying, it doesn't render HTML code.
I have just edit my code according your other suggestions. I have also move views and templates files in specific folders. I have also moved the project in a 7.x-1.x branch.
Regards,
AmbikaFR.
Comment #18
berdyshev commentedHi Ambika,
Regarding usage of
hook_preprocess_page(). This hook is called on every page load, but your views will be displayed only on a few of them. So, IMHO, this should be moved in more specific preprocess function, for example,hook_preprocess_views()or something similar.I dont see any changes regarding this in your code. Are you sure you pushed your changes to the repo? Or can you provide link to the commit?
Comment #19
AmbikaFR commentedHi Berdart,
Sorry for the very long delay again !
I am not sure it's really possible, beacause i have to suggest a page template to Drupal (not a views template), in order to display Views Reveal presentation in suitable way.
In fact, the code checks if the page is "views page" with views_get_page_view() function. After that, the code checks if the current view is a Reveal View.
I have push the code on a 7.x-1.x branch. Here is a link to the last commit.
Comment #20
Jordan_Fei commentedIn your reveal-integration.js, revealSettings object comes from backend array. So its any property you may need to check before using it. I found some you checked, but most of them you not. In order to build an robust code, you'd better check them before using them, or else javascript error would be led into.
Comment #21
AmbikaFR commentedHi Jordan_Fei,
Reveal settings are defined by Views options_form, in views_plugin_style_reveal Class. These options are populated by default by Views, with #default_value settings. Each #default_value is defined, in options_form. So, backend check that each Reveal settings are certainly define. In this configuration, i don't think that a JS check is necessary.
Comment #22
herom commentedfirst of all, you should make your 7.x-1.x branch the default branch, and remove your master branch.
(cloning from the default [master] branch left me confused for a while).
and, it seems you have missed some of the suggestions from previous reviews of your code, for example:
or the use of "!empty(...)" function instead of the "? FALSE : TRUE" code.
read this answer, and follow its link (section "Documenting hook definitions") for correct documentation of custom hooks, and move your documentation on the hook implementation to its stub.
http://drupal.stackexchange.com/questions/458/how-to-create-a-hook
views_plugin_style_reveal.inc
function option_definition() has been overriden, but is simply calling its parent function. you could remove it.
typos:
line 74: extra space in string (after "scroll.")
one last note: it seems you haven't actually added the "PAReview: review bonus" tag to your issue, and so you haven't been on the review bonus track yet. once you fix the mentioned issues, you can add the tag, and check here to make sure it has been correctly added:
http://drupal.org/project/issues/search/projectapplications?issue_tags=P...
Comment #23
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application.
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #23.0
PA robot commentedEdit issue description.