The QQ module based on OAuth protocol with QQ Login application. It allows QQ acount to log in drupal.You can apply the QQ Login application for your site by http://connect.qq.com/intro/login. View more api document,please click Tencent Open Platform.Now,the QQ module for drupal7. Besides drupal 6 version is ok, but it is not commited in drupal.org until the drupal7 one is published.

Apply the QQ Login application Steps:

  1. Open http://connect.qq.com/intro/login
  2. Verify your site,copy certain code in you web page head tag part. eg.my site code <meta property="qc:admins" content="1543255227642501453526727" />
  3. Edit basic information of your application,incude site name,url,description,logo,login page,callback page...
  4. Take APP ID and KEY of your application
  5. Apply for online your application
  6. Passed your apllication.END

qq log in drupal

CommentFileSizeAuthor
#22 qq_report.txt4.82 KBmisc
#10 qq-review.jpg76.07 KBjinlong
#1 qq_1.jpg31.28 KBjinlong
#1 qq_2.jpg30.18 KBjinlong
#1 qq_3.jpg33.78 KBjinlong
#1 qq_4.jpg17.48 KBjinlong
#1 qq_5.jpg44.91 KBjinlong
#1 qq_6.jpg24.32 KBjinlong

Comments

jinlong’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new24.32 KB
new44.91 KB
new17.48 KB
new33.78 KB
new30.18 KB
new31.28 KB

I have tested in demo site, QQ module is no problem.

1.QQ login

2.Modify acount

3.Validate form

4.Modify success,Redirect to user page

5.QQ login administrative configuration

6.Module permissions configuration

patrickd’s picture

Status: Needs review » Needs work

It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Review of the master branch:

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

Source: http://ventral.org/pareview - PAReview.sh online service

jinlong’s picture

Status: Needs work » Needs review

Fixed.Thank you.

rogical’s picture

+1 Nice module, actually I've made a QQ module, but as the SDK updates, it's a little old.

rogical’s picture

Some suggestions:
1. use the the QQ nickname as a suggestion on the final register page.
2. add support on syncing QQ nicknames, photos and so on.
3. add support on qq pengyou, weibo service, this is another big module.

jinlong’s picture

Project: Drupal.org security advisory coverage applications » QQ
Component: module » Code

Thank you for your good suggestions!

  1. QQ nickname sometimes including special characters,eg "︶ㄣ赱過ペㄣ"
  2. Now firstly publish this module just for QQ login,then gradually develop another module.
jinlong’s picture

Project: QQ » Drupal.org security advisory coverage applications
Component: Code » module
patrickd’s picture

jinlong’s picture

Status: Needs work » Needs review

DONE. Thank you patrickd.

jinlong’s picture

StatusFileSize
new76.07 KB

qq module review

spiritfelix’s picture

wow, jinlong, my user_band module allows QQ acount to log in drupal, too.
now, my module has not promot to be a full project yet.

jinlong’s picture

Come on ! -:)

rogical’s picture

that's fine, actually there're already several QQ modules, but no one seems get too much concern.

so it's time to us to focus on one QQ module, and this is it.

raynimmo’s picture

Priority: Major » Normal

Changed priority from 'major' to 'normal'.

Your priority should not be at 'major' it should only be at 'normal'. The former setting is only for projects that have been awaiting review for 2 weeks or more in line with the project review guidelines.

jinlong’s picture

OK. Thanks-;)

patrickd’s picture

Status: Needs review » Needs work

Sorry, you can only have one application in the queue. (http://drupal.org/node/1383930)
Please close one of them.

jinlong’s picture

Status: Needs work » Needs review
rogical’s picture

QQ is the NO.1 SNS service in China, hope this get passed soon

misc’s picture

Status: Needs review » Needs work

Did a manual review of the code, and it looks ok, but you still have files in the master branch, there should just be an README.txt pointing to the correct branch. I do not have an QQ account s I could not use for real, but I think it looks like it going t work anyhow. If you just remove the files from the master branch everything should be okay.

jinlong’s picture

Status: Needs work » Needs review

Done.Thanks very much!

rogical’s picture

A way to speed up review process [META] Review bonus

misc’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new4.82 KB

Sorry for the delay, missed this one.
Only Readme.txt in master, good, but it should only contain info about the correct branch. The instructions you leave in the 7.x-1,x branch. Some minor coding style issues, See attached file. Else, this is thumbs up from me.

patrickd’s picture

Status: Reviewed & tested by the community » Needs work

Sorry for the delay!

  1. Please delete the tags 7.x-1.2, 7.x-1.1, 7.x-1.0 because it looks like you're developing backwards
  2. Please put a single new line before and after functions/comment blocks
  3. Your indenting is still a little confusing in some places (eg. .module, line 80) please search and correct this (Also automated review is complaining about this http://ventral.org/pareview/httpgitdrupalorgsandboxhejinlong1353786git)
  4. Your setting items should be #required
  5. It would be better if you'd use camel-case for function names in classes (buildrequesturi -> buildRequestUri) (See coding standarts about classes)
  6. if ((bool) db_select('users')->fields('users', array('uid'))->condition('uid', $user->uid, '<>')->condition('name', db_like($form_state['values']['name']), 'LIKE')->range(0, 1)->execute()->fetchField()) {
    

    Please don't be afraid to splitt your code over multiple lines, as it gets really hard to read when you try to put it all into one line.

          $result = db_select('users')
            ->fields('users', array('uid'))
            ->condition('uid', $user->uid, '<>')
            ->condition('name', db_like($form_state['values']['name']), 'LIKE')
            ->range(0, 1)
            ->execute()
            ->fetchField();
          if ($result) {
  7. Your commenting your functions but IMHO neither the function descriptions nor the (non-existend) inline comments are very helpful to understand your code -> Please tell us what your doing / Why your doing it this way / Please use inline comments ! ;)
  8. All comments should end with ? ! .
  9. .module, line 211: All path's should run through url()
  10. drupal_add_js('misc/jquery.js'); is that line really necessary ?
  11. /**
      *  set config
      */
      function C($name) {

    Description and function name could be a little better

  12. If your initialising cURL you should always close it
  13. Anyway, why your not using drupal_http_request() there?
  14. header('Location: ' . $url . '?' . $query_strings);How can you be sure that not another header will be send later ? please try to use drupal_goto() or do at least something similar to it (correctly finishing drupal and exit()ing)

I'm afraid I can't approve this yet because,

  • Coding style is in need of improvement
  • It's really hard to understand this module as it's really lacking of inline comments

Please work on this,
regards

jinlong’s picture

Status: Needs work » Needs review

OK

patrickd’s picture

hi jinlong,
could you have a look at this application: https://drupal.org/node/1497394
Are your modules doing the same? I'd love to see you joining forces then

jinlong’s picture

Great -;)

rogical’s picture

Close one, co-operation in another, make a good module!

rogical’s picture

patrickd’s picture

Status: Needs review » Postponed (maintainer needs more info)

Please get in touch with willietse and make a clear statement whether this or https://drupal.org/node/1497394 should be promoted.

patrickd’s picture

No response yet, contacted jinlong personally.

Hi jinlong

I'd still like to see you and willietse (https://drupal.org/user/431026) collaborate together on the qq login integration module.

I'd like to grant willietse access to your sandbox, add him as co-maintainer and let him merge his additional features into your sandbox.

We can then continue to review the project application (qq https://drupal.org/node/1355762) and approve you both!

that would be really awesome,

please let me know what you think about this.

Cheers

jinlong’s picture

I agree with you . Welcome willietse as co-maintainer. Thank you -:)

patrickd’s picture

Status: Postponed (maintainer needs more info) » Needs review

This is great, thanks,
let's continue with this.

patrickd’s picture

Status: Needs review » Closed (duplicate)

I'm afraid there's now a full project of this module: https://drupal.org/project/qq
Sorry, please consider helping them as co-maintainer and join forces.

regards

patrickd’s picture

Issue summary: View changes

add module screenshot and git path

avpaderno’s picture

Title: QQ » [D7] QQ
Issue summary: View changes
Status: Closed (duplicate) » Closed (won't fix)