Closed (fixed)
Project:
Drupal.org CVS applications
Component:
new project application
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2010 at 01:20 UTC
Updated:
13 Apr 2019 at 18:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
avpadernoHello, and thanks for applying for a CVS account.
As per Apply for contributions CVS access, the motivation should include details about the module that you intend to add to Drupal.org repository, and explain the differences between it, and any existing projects.
The archive containing the code needs to be uploaded here, in a comment.
Comment #2
tungt84 commentedHello, and thanks for your advice.
My building module is alexa4drupal.A module can display a alexa widget as a block.
You can choise 2 widgets: Alexa Site Stats Button Widget and Alexa Traffic Rank Button Widget.You can config site to display Alexa Widget.
Here is demo page:
http://box-idea.com
And code is uploaded in File attachments.
Thanks you.
Comment #3
tungt84 commentedHello, and thanks for your advice.
My building module is alexa4drupal.A module can display a alexa widget as a block.
You can choise 2 widgets: Alexa Site Stats Button Widget and Alexa Traffic Rank Button Widget.You can config site to display Alexa Widget.
Here is demo page:
http://box-idea.com
And code is uploaded in File attachments.
Thanks you.
Comment #4
avpadernoThere is already a module that shows traffic rank as reported by Alexa: http://drupal.org/project/sitestats.
Comment #5
tungt84 commentedModule sitestats just to Check Statistics of your site but alexa4drupal to display widget of alexa.
see demo:
http://box-idea.com
or attachment
Comment #6
avpadernoI am changing the status.
Comment #7
tungt84 commentedDo my module differ from sitestats?
Comment #8
tungt84 commentedComment #9
avpadernoI am changing status so users will review the project.
Comment #10
avpadernoAs the module is being installed, that SQL query cannot return anything, as the module database table is empty.
Strings used in the user interface should be in sentence case.
The menu callbacks should probably use a different permission; a site ranking widget doesn't show anything about the users of a Drupal-powered site.
Comment #11
tungt84 commentedComment #12
avpadernoThere is a Drupal function that limit the number of the rows returned, and it is
db_query_range(); the syntax used for the query is probably specific for a database engine (differently, the functiondb_query_range()would have not been created).Comment #13
tungt84 commentedComment #14
tungt84 commentedInstall Guide
EN : http://code.google.com/p/alexa4drupal/wiki/InstallGuide_EN
VI : http://code.google.com/p/alexa4drupal/wiki/InstallGuide_VI
Comment #15
adaddinsaneHi
I've had a look at your module and there are a number of issues that need addressing.
1. Inconsistent function naming: some functions begin with "alexamod" and some with just "alexa" they should all be "alexamod". Also the module directory should be the same and should not have the hyphen.
2. Your menu callbacks are unnecessarily complicated, for example instead of:
You can do this:
And you can lose the alexamod_alexatrafficgraph() function.
3. Having run your module through the "coder" module (http://drupal.org/project/coder) analysis:
a. Lots of places where there's no space after a comma;
b. Space between "array" and its following parenthesis;
c. "else" not starting on its own line;
d. TRUE, FALSE and NULL and SQL keywords need to be uppercase;
e. Many lines have trailing spaces;
f. @file block missing at the beginning of files;
g. HTML tags need to be lowercase;
h. PHP variables need to be all lowercase;
These issues are all described on the http://drupal.org/coding-standards pages.
Hope this helps.
Comment #16
avpadernoI am changing the status as per previous comment.
Comment #17
avpadernoThere have not been replies in the last week. I am marking this application as .
Comment #18
tungt84 commentedComment #21
tungt84 commentedComment #22
avpadernoThis issue is not fixed until you get a CVS account.
Comment #23
avpadernoThe first argument of
define()is a string.Comment #24
tungt84 commentedComment #25
tungt84 commentedComment #26
avpadernoSee my previous point #1, which is still valid.
Comment #27
tungt84 commentedComment #28
trungonly commentedI'd like to contribute some suggestions:
- In the zip package, your files should be placed in a directory.
- Inconsistent of like break between functions: Some functions have no line break between, while some have. See post #12 item 3.
- You should add comments for the implemented hooks such as
hook_install(),hook_block()etc...D7 like:
D6 like:
- While
'3m' => t('3 months')using plural of"months",'3y' => t('3 year')should use plural of"years"too.Comment #29
tungt84 commentedThanks trungonly.
Comment #30
trungonly commentedPlease clean & prepare CVS header for each files (
// $Id$for .php / .install,; $Idfor .info,$Id$for .txt files...).Comment #31
tungt84 commentedThanks trungonly.
I have cleaned & prepared CVS header for each files (// $Id$ for .php / .install, ; $Id for .info, $Id$ for .txt files...).
Comment #32
tungt84 commentedWhy my project is available at http://drupal.org/project/alexa_widgets?
Alexa WidgetsPosted by drupalshrek on December 22, 2010 at 8:43pm
AcknowledgementsAlexa Widgets
The Alexa Widgets module provides a block which displays one of the Alexa widgets
described at http://www.alexa.com/siteowners/widgets which is either:
* Site Info (Alexa Site Stats Button)
* Traffic Rank (Alexa Traffic Rank Button)
The block will be enabled on the http://example.com/admin/build/block page and has the title "Alexa Widgets".
This code is based on the module developed at http://code.google.com/p/alexa4drupal/
Any wrong?
Comment #33
avpadernoThis issue queue is for CVS applications; for the other question (for which I don't have a reply, as I didn't know that project was created) open an issue report in the Drupal.org webmasters queue.
Comment #34
drupalshrek commentedI have posted discussion of issue to http://drupal.org/node/1034730
Comment #35
avpadernoI am approving this application.
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 #37
avpadernoI am giving credits to the users who participated in this issue.