My module leverages the ChessTempo PGN Viewer (www.chesstempo.com), an excellent and very flexible PGN viewer. Though is is not covered by the GPL, my module is not comprised of any of the ChessTempo PGN viewer code, but simply calls the JavaScript and CSS as provided by ChessTempo.com and permitted under it's license.
I have given the user several different options: board alignment, piece style, board colors, and board size. I intend to expand the options to include the option for standard coordinates on the board and board flipping, an option to hide the move list, PGN download, improved block display, additional colour schemes, as well as improved board alignment functions.
I have created some examples on my site: http://www.joven.net/pgn_diagram_filter_demonstration_page and http://www.jovean.net/pgn_diagram_filter_demonstration_page_2 which show it's use in a node and a block.
Thanks for your time and consideration.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | pgn_diagram_filter.tar_.gz | 5.03 KB | Jovean |
| #7 | pgn_diagram_filter.tar_.gz | 4.98 KB | Jovean |
| #4 | pgn_diagram_filter.tar_.gz | 10.58 KB | Jovean |
| #3 | pgn_diagram_filter.tar_.gz | 8.03 KB | Jovean |
| #1 | pgn_diagram_filter.tar_.gz | 10.58 KB | Jovean |
Comments
Comment #1
Jovean commentedHere is a tarball of my module.
Comment #2
Jovean commentedI found - and squashed - a bug (the attribution string was being added to all text passed through the filter, regardless of whether or not there was a diagram on the page or not). The above tarball does not contain this fix.
Comment #3
Jovean commentedSetting status to "needs review" - this tarball is not the correct version. (Sorry!)
Comment #4
Jovean commentedRoom for improvement, but HERE is the latest version:
Comment #5
avpadernoHello, and thank you for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
I guess you mean that the PNG viewer is not licensed under GPL, but your module is.
Comment #6
avpadernoCore modules that cannot be disabled should not put between the dependencies of a module.
hook_uninstall(), or doesn't implement it to remove the Drupal variables it defines.Hook implementation comments should be like the following one:
As reported in Documenting hook implementations:
The comment at the end of the function is not standard in Drupal.
Strings used in the user interface should be translated.
l()should not be used together witht(). See the documentation for t(), where this code is reported to be wrong:The correct code to use is the following:
Modules that implement a filter don't define a permission to access a filter, as Drupal core code implements the permissions to use a input format (which is made of filters implemented by different modules).
Comment #7
Jovean commentedThanks. As far as I can see, I have resolved all the issues you mentioned (see attached tarball), except #6. I looked through 5 or 6 different input filter modules to see how this might be done, but none of them implemented any input filter-specific settings.
Regarding the licencing of the ChessTempo PGN Viewer, you are correct. It has a Creative Commons Attribution-NonCommercial-NoDerivs 2.5 licence.
Comment #8
avpadernoThe parameter
$formatpassed tohook_filter()is the ID of the input format that includes the filter implemented by the module.A filter module that has code for the operation
'settings'is returning form fields that are used to create a settings form that is specific to an input format. In fact, the settings handler uses Drupal variables likeallowed_html_$format, notallowed_html.Comment #9
Jovean commentedI see. Thank you.
hook_filter() updated to handle 'settings' operation (attached).
Comment #10
avpadernoI will review the code tomorrow.
Comment #11
avpadernoThe version line needs to be removed from the .info file.
Thank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.
I thank all the dedicated reviewers as well.
Comment #14
avpaderno