Metis automates the inclusion of the so called "Metis pixel" from the German association VG Wort. The pixel is included as an image that is 1px wide and high and it allows VG Wort to count visits to nodes. Based on that count, VG Wort pays authors (small) royalties obtained through the sale of printers, copiers, and other technical devices that might be used to copy texts.
Metis stands for "Reporting System for Texts on Websites" (Meldesystem für Texte auf Internetseiten).
More information about VG Wort and Metis (in German):
- http://www.vgwort.de/
- https://tom.vgwort.de/
- https://de.wikipedia.org/wiki/Meldesystem_f%C3%BCr_Texte_auf_Internetseiten
Module features:
- Add Metis codes (Zählmarken) to your Drupal installation
- Add the Metis codes to nodes as a CCK field with a simple checkbox
- Display a table of nodes with their respective Metis codes (only if Views module is installed)
Drupal version:
The module is written for Drupal 6. As soon as there is a stable release, I would like to create a version for Drupal 7.
Similar projects:
So far, there are no similar modules. There is another sandbox project for Drupal 7 that still needs work. My module is for Drupal 6 so far. I have contacted the maintainer to see if we can join forces. But the approaches are quite different.
Project page:
The project page can be found here: https://drupal.org/sandbox/yan/1357886
The git repository: git clone http://git.drupal.org/sandbox/yan/1357886.git metis
Reviews:
https://drupal.org/node/1820564#comment-6724164
https://drupal.org/node/1884178#comment-7026226
So far just two. My skills are limited and so is my time, but I'll try to review more.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Screen Shot 2012-11-15 at 12.15.38.png | 26.43 KB | wuh |
Comments
Comment #1
wuh commentedNothing is flagged by the coder module, everything looks good on that front.
I have found some more general problems though:
In file metis.install:
drupal_set_message($t('Metis settings are available under <a href="@link">Administer > Site configuration > Metis</a>', array('@link' => url('admin/settings/metis/settings'))));See the t() function pageIn file metis.module:
In Use
I wasn't able to test this properly in use, but another issue which leapt out at me is that the Metis CCK field, when displayed on node edit pages, is not wrapped in a fieldset. Screenshot attached.
Most of the code looks sound, but I haven't been able to verify that it does what's advertised. Perhaps someone who's familiar with "Metis pixel" and "VG Wort" might be better placed to do so.
Looks good on the whole yan, but I'd advise reading thoroughly the Drupal documentation on coding standards.
Comment #2
vineet.osscube commentedThere is still some minute errors in metis.module file.
398 | ERROR | Data type of return value is missing
489 | ERROR | Data type of return value is missing
500 | ERROR | Line indented incorrectly; expected 6 spaces, found 10
Comment #3
yan commentedThanks for your feedback.
I corrected those two. I thought I had copied the second one from some Drupal documentation page, but maybe not.
No, not really intentionally. It's more, because I don't know database structures very well. Should I use a primary key?
Thank you very much, that also fixed the problem I had with sub tabs!
I changed that, too.
I corrected those, too. See the report at http://ventral.org/pareview/httpgitdrupalorgsandboxyan1357886git
There are also two issues I haven't been able to resolve, maybe somebody can help:
Comment #4
maxgor commentedthe image could be shown using theme_image function:
metis.module, line 1034: use this function: theme_image($path, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE) to show the image
Comment #5
yan commentedI'll check taht. But please don't change the title. :)
Comment #6
maxgor commentedsorry for the title.
Comment #7
yan commentedI commited what is mentioned in #4:
http://drupalcode.org/sandbox/yan/1357886.git/commit/8e73208
Although I'm not sure if it was better to use theme('image', $vars) instead.
I also corrected a permission issue with the CCK field:
http://drupalcode.org/sandbox/yan/1357886.git/commit/d868dcc
Comment #8
klausiSorry for the delay. Make sure to review more project applications to complete the review bonus and this will get finished faster.
manual review:
But that are not application blockers, so I guess this is RTBC.
Comment #9
yan commentedThanks for the review, klausi.
I know. The problem is, that many modules are too complex for me to review them.
I fixed that: https://drupal.org/sandbox/yan/1357886
Ok, I thought it was necessary because the input comes from the user. But I fixed that.
I thought it was better that way because "Private metis code" is used several times and that way there is need for one single translation. But if that's bad practice, I'll change it.
I changed that.
It can all be seen here: http://drupalcode.org/sandbox/yan/1357886.git/commitdiff/40daa7b
Comment #10
yan commentedWill I have to do anything else to have my sandbox converted to a full project? Or just wait?
Comment #11
klausino objections for more than a week, so ...
Thanks for your contribution, yan!
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.
Comment #12
yan commentedThank you very much, Klausi and all the reviewers!
Comment #13.0
(not verified) commentedAdded a link to a review