This is more of a Drupal distribution, known as LaunchBuzz, where it help users to create a single frontpage viral campaign website with very little configuration. Users are able to capture visitors' e-mail subscription and track the amount of successful referrals based on the generated registered link.

This project consists three (3) items and each of these have further details that contributes to this project. Therefore, I am actually applying to approve 3 different projects into Drupal.org:

I've set up a demo site which can be viewed here: http://launchbuzz.gix.my

This distribution is only developed for Drupal 7.x only.

If I have missed anything out, please do let me know. I would really wish this project to be out for the Drupal community to use :)

CommentFileSizeAuthor
#11 drupalcs-result.txt1.52 KBklausi

Comments

patrickd’s picture

You got some coding style errors, please try fixing them using http://ventral.org/pareview.
If you got any questions on this, please ask!

jonloh’s picture

Thanks patrickd! Great tool there ;)

As question though - I'm see-ing alot of Whitespace found at end of line, but I checked my file, I don't see any extra whitespace found at the end of line. Could you kindly advise how am I able to resolve that?

patrickd’s picture

The problem is that you editor seems to have auto-indenting turned on. so you got many lines like (# is a whitespace):

function lp_email_block_info() {
  $blocks['subscribe'] = array(
    'info' => t('Subscription Form'),
  );
##
  return $blocks;
}
jonloh’s picture

Thanks! I've settled most of the errors except for this:

FILE: ...tes/all/modules/pareview_temp/test_candidate/lp_referral/lp_referral.js
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
8 | ERROR | Files must end in a single new line character
--------------------------------------------------------------------------------

I already ended the file with a single new line character, but it still doesn't seem to be solved :(

patrickd’s picture

Please stop pushing to the master branch and see the instructions on top of the review results.

I checked lp_referral.js and it does not have a single new line at the fileend, maybe you'r using windows encoding?

jonloh’s picture

Woops sorry. I've branched it out and will remove the master branch.

However, I'm still getting errors even though I've added a new single line, as shown in the image here:
http://imageshack.us/photo/my-images/812/lpreferral.jpg/

As you can see, I've added the new line in line 10. Even though I remove the new line at line 10, I'll still have the same error stating that the file must end in a single new line character. Other files doesn't seem to have a problem on this.

And my editor is set to Unix Line Endings (LF).

Thanks!

patrickd’s picture

That's strange, but now I also got the new line in my editor.
But this is not a big problem, if you get this solved later it's okay.

jonloh’s picture

Alright, then I'll leave it for now while I check out on the other files to make sure the coding standards are fine.

Thanks!

patrickd’s picture

sorry but, please don't review your drupal distribution by ventral.org, this will currently break the server :/

jonloh’s picture

Cleaned up codes accordingly to Drupal coding standards and branched out the 3 items to its own branch 7.x-1.x.

Awaiting for review! :)

klausi’s picture

Status: Needs review » Needs work
StatusFileSize
new1.52 KB

Review of the LaunchPlug 7.x-1.x branch:

This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.

manual review:
lp_report_top_referrals(): make sure to run all user facing text through t() for translation.

Review of the LaunchSkin 7.x-1.x branch:

manual review:
base.css: Please format it according to the CSS coding standards http://drupal.org/node/302199

LaunchBuzz: do not copy Drupal to your drupal.org installation profile repository. You should only have your installation profile there and optionally a drush make file.

jonloh’s picture

LaunchBuzz: do not copy Drupal to your drupal.org installation profile repository. You should only have your installation profile there and optionally a drush make file.

Sorry, I don't quite get what you mean on this. Could you kindly explain in a little more detail on what I should do? Or if there's any documentation on this, that would be great.

jonloh’s picture

Status: Needs work » Needs review

Nevermind, I found what it meant to not have Drupal core files together with the installation profile. I've made the changes accordingly and awaiting for review.

manual review:
base.css: Please format it according to the CSS coding standards http://drupal.org/node/302199

The base.css is actually generated from HTML5 boilerplate, which defaults in the compressed CSS. I have other CSS stylesheet files that are in proper format to allow overwrite on the base.css. Hence, would it be alright if I can maintain base.css as the compressed CSS? Plus, it does help to decrease the file size a little bit.

patrickd’s picture

Status: Needs review » Needs work

Sorry for the long delay! I had a raw look on it:

LaunchBuzz installation profile

  1. Please add a @file documentation block to all php-code containing files
  2. use base_path() instead of globals (it's kind of the same..)
  3. don't push foreign modules (follow module) into your repo, please read the documentation about that. there were some changes about this on drupal.org recently
  4. don't concatenate strings within t()/st() use @/%/! placeholders instead
  5. prefix used variables with the full installation profile name
  6. many parts of the .install process came from standarts profile, as it enables a lots of stuff per default, it's better to use the minimal profile as basis. maybe you can still remove some stuff here to make it more lightweight, or is it all needed?
  7. Make a README.txt that follows the guidelines for in-project documentation.
  8. The theme launchskin is not contained here, but it's expected to be there in your .install file. remove the empty themes directory and add a dependency to it
  9. where is this "launchplug" module you've directory for?
  10. There's some stuff (even there are some false positive's so read with care) found by automated review: http://ventral.org/pareview/httpgitdrupalorgsandboxjonloh1360618git

LaunchPlug module(s)

  1. lp_email module is the dependency of the other two modules, instead of making "a set of modules" you should rather make a lp_email module with the other as submodules (would make more sense for me).. I'm also not sure if it's really necessary to split them up, but that's your choise
  2. Please make your README.txt follow the guidelines for in-project documentation.
  3. All used variable names have to be prefixed with the full module name
  4. Used variables have to be deleted by variable_del() at hook_uninstall() in the .install file
  5. All human readable strings must be encapsuled with t(). also default values for variables (but not strings in hook_menu)
  6. if (module_exists('lp_referral')) {
            $form['referral_fieldset'] = array(

    If the referral module needs alterations in the settings form, these alterations should be done by the referral module itself (hook_form_form_id_alter())

  7. I think most of the work your doing in the submit handler can also be done by system_settings_form_submit()
  8. $delta should be prefixed with the full module name
  9. // Avoid query duplication.have you tested this? is this really an issue, I mean is this possible? I got no idea..
  10. 'restrict access' => TRUE,this hook menu option is only for really critical permissions that make the user able to kind of take down the whole site or other security issues. I don't think that's the case here

regards

klausi’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

klausi’s picture

Issue summary: View changes

Added --branch 7.x-1.x command for Git.