The first project I am looking at is Ranks. Ranks is a hierarchy ranks system. The system is designed so that when you get promoted or demoted in rank, your Drupal role will change. The idea is ease of administration for large clan/guild websites where your rank controls your permission level. This also allows someone to check the date of there last promotion and well as some additional administrative features to help track when someone is eligible for a new rank.
The second module is ts3viewer. This module allows you to view your teamspeak server on your website. It has a complete list of channels and the current user signed in. This also creates a link to connect to your teamspeak server.
Comments
Comment #1
matuck commentedadding attachment of ranks module.
Comment #2
matuck commentedreset status i set wrong
Comment #3
matuck commentedAdded screenshots of module.
Comment #4
avpadernoHello, and thanks 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.
What is the difference between ranks, and roles? Why would a site use ranks when Drupal already uses roles?
Comment #5
avpadernoComment #6
matuck commentedRank is logical. the ranks system controls the roles you have.
ranks are more of a logical structure one role could be associated with multiple ranks. or one rank could be associated with multiple roles.
Comment #8
matuck commentedHow long does it take for someone to review
Comment #9
michelleGiven that Kiam is pretty much the only one doing it and the queue is long... It takes a while. I tried helping out but I suck at code reviews. :( If you're any good at doing code reviews, you could always help out and move things along faster. :)
Michelle
Comment #10
matuck commentedadding new attachment the only change in this is version line removed from .info file.
Comment #11
matuck commentedI guess I'm sorta self reviewing my code. after reading some of the comments in the other cvs requests I have went back and found a few more issues. A few small coding standards issue created by a find/replace. And missing a few hook comments attaching a new version of code
Comment #12
matuck commentedAny update yet on a reviewer
Comment #13
matuck commentedAny update here it has been a few weeks.
Comment #14
matuck commentedany update yet it has been nearly 2 months since my initial request and no review yet.
Comment #15
michelleI know it's not much consolation but this is most definitely a case of "It's not you, it's us". See #703116: Our CVS account application requirements are obtuse and discourage contributions
Michelle
Comment #16
matuck commentedAdding new version. I have added alot of commenting to the code. Rewrote several db_query() calls.
The sql inside each was incorrect and not up to the drupal api.
Comment #17
Scyther commented1.
2. This is wrong! Don't put variables in t like this.
3. Use check_plain() on variables that is user inputs.
4. Use http://drupal.org/project/coder and check your code. I have not done that, but by only looking at your code there is some faults if you will following http://drupal.org/coding-standards
Comment #18
matuck commented1. I missed one. Had already changed the others. That has been corrected.
2. MIssed that one. but has been corrected.
3. I believe this is fixed; however, I have a question.
should #default_value be check_plain($name); Or does form rendering take care of that?
4. I have ran through coder and fixed all errors/notice's it shown.
Thanks for the review.
Attached new version with fixes.
Comment #19
matuck commentedreset status back to needs review
Comment #20
Scyther commentedOn your question, in your ex with a form "object" you don't need to use check_plain on #default_value.
example from http://drupal.org/node/28984
- - - - -
1. Why use escape \ here, when you can use " " around the query and have ' ' inside?
2. Why do you use " " sometimes and sometimes ' ' on SQL querys? Why not use " " all the time?
3. Another tips, not to use escape chars so much.
4. You might want to use theme('image', ...) here instead and on other places that you have img. See http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_image/6
5. There is a theme('table', ...) for making tables, see http://api.drupal.org/api/drupal/includes--theme.inc/function/theme_table/6
6. Not secure!
7. Why "rr", makes no seens.
8. Why have a if and else, when you can change the if statment and remove the else.
- - - - -
Comment #21
matuck commented1. is fixed.
2. Have no idea... Guess I should have standardize that
3. Removed most escaped characters.
4. Fixed. I actually like that looks much cleaner.
5. Fixed. and as a side affect makes code and display look much better
6. Fixed another missed query.
7. Fixed. copy paste error.
8. Fixed. I think i was gonna do something else there and then didn't.
Thanks again for your reviews.
Comment #22
Scyther commentedSome tips.
1. Why do you add this to almost all menu items? It's the same as the default so you could save some lines of code.
2. Indenting is bad on some places, it gets easier to read if you do it little better.
- - -
Errors
1.
2.
3. Use quotes around a string literal array index, this is not only a style issue, but a known performance problem
Comment #23
matuck commentedTips:
1. Fixed
2. I think I got all of these
Errors:
1. All fixed
2. Fixed
3. Can't believe missed that one but Fixed.
Thanks for review again.
Comment #24
michelleSince matuck has shown great patience and tenacity through this process, I went ahead and approved the account. If Scyther wants to keep reviewing and get all the kinks out, that would be great. In the mean time, matuck now has access to set up an account and get the code into CVS so he can make use of versioning and the issue queue. I'll leave this at needs review so I don't prematurely stop the great reviewing that's going on here but you folks can marked this as "fixed" whenever you're ready.
Michelle
Comment #25
matuck commentedThanks Michelle.
I will continue to check back here for a review. I value the input and it helps me become a better drupal coder.
Comment #26
Scyther commentedI can give review on the module later on the project page. If you are intressted in a co-maintainer matuck, send me a message through my contact form.
Comment #27
avpadernoI am changing the status as the CVS account has been already approved.
Comment #30
avpaderno