CVS edit link for oliverhuynh

Hi

I've searched in the community a module which allows user to redirect to previous page after log in or register but it seems fail. I'm wondering if I can contribute to the community this module.
The module will allow user to redirect to previous page after login/register, or redirect to a URL that is configured in the admin settings page.

Comments

AjK’s picture

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

Using Google I found many modules and ways to redirect after login. Do we need another?

oliver huynh’s picture

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

I don't think so, there is ways, but not any module provides this.
My module lets user redirect to any specific page or previous page after log in. Please take a test. It is simple but it works.

avpaderno’s picture

Status: Needs review » Needs work
  1. version = "1.0"
    core = "6.x"
    project = "destination_login"
    datestamp = "1236442546"
    

    That part should be removed, as it is added from the packaging script.

  2. See the Drupal coding standards to understand how a module code should be written.
  3. I agree with AjK that there are already too much modules with the same purpose.
    See what reported on Apply for contributions CVS access:

    It's important to note that CVS applications are often denied when a tendered module duplicates the features and functions of an existing module and in these cases applicants are referred to the module's maintainer to offer collaboration on improving that existing module.

oliver huynh’s picture

Status: Needs work » Needs review

Hi KiamLaLuno
1. Okay
2. I follow the code standard as much as I can. Please verify this again.
3. I've read "Apply for contributions CVS access" carefully. I can't find any module provide this functionality. If you can, please provide one.

avpaderno’s picture

Status: Needs review » Needs work

You didn't upload the new code.

oliver huynh’s picture

StatusFileSize
new1.53 KB

Hi
Sorry, this is the code. Please check.

Thanks,
Oliver

oliver huynh’s picture

Status: Needs work » Needs review

Hi KiamLaLuno

Please review my recent upload

avpaderno’s picture

  1.     if(arg(0) != "user")
          return ;
    

    The code is not formatted as suggested by the coding standards (this is a very minor issue).

  2. I still have doubts about what the module does. What does the code do that is different from what Drupal core code already does? Using the action Redirect to URL and triggering it when the user logs in, I could obtain the same result.

I will leave to somebody else the decision about this CVS application.

oliver huynh’s picture

StatusFileSize
new1.59 KB

Hi KiamLaLuno

1. Fixed.
2. Let me give you a demo of this:
URL: http://jufist.com/demo/destination_login
- Open http://jufist.com/demo/destination_login/node/2
- Click User Login
- Login as user demo/demo
- You will be redirected back http://jufist.com/demo/destination_login/node/2

oliver huynh’s picture

Please review. Thanks.

avpaderno’s picture

  1. Go to http://drupal.org, and log out, if you are logged in.
  2. Visit http://drupal.org/node/598774 (without to first close the browse).
  3. You will see a block that you can use to log in in Drupal; enter your user name and password; click on the button to log in.
  4. You will notice that you are still in the page you were watching before to log in (http://drupal.org/node/598774).

Then, what is the difference with what your module does?

As I said, I will leave the decision about this module to somebody else; differently I will be once again said to be despotic (you can always thank the user who said such thing, if your application will wait for somebody else approval).

Also, I apologize if inadvertently my words, or my tone could result offensive for you. It's not my intention to offend, and my task is only to verify if a module / theme is worth to be placed in Drupal.org CVS, and if to approve CVS applications made from people. I don't judge the person who is applying for a CVS account in any way.

avpaderno’s picture

Issue tags: +Module review
oliver huynh’s picture

Hi KiamLaluno

As your steps:

1. Go to http://drupal.org, and log out, if you are logged in.
2. Visit http://drupal.org/node/598774 (without to first close the browse).
3. You will see a block that you can use to log in in Drupal; enter your user name and password; click on the button to log in.
4. You will notice that you are still in the page you were watching before to log in (http://drupal.org/node/598774).

You've logged in through the block, and the URL was still http://drupal.org/node/598774

It is different with my module's function. User goes to http://jufist.com/demo/destination_login/node/2, then he logs in by go to other URL: http://jufist.com/demo/destination_login/user and after logging in successful he is redirected back to http://jufist.com/demo/destination_login/node/2

If you are still here, please take a deep look.

avpaderno’s picture

I understood what your module does; still, the difference is between having a block (which is then handled by Drupal core code), or not having it displayed.

To notice that I have not spoken of the second option, Drupal actions.

As I have already made my point, I will stop in explaining it any further before to get boring.
To notice that two of all the persons who approve CVS applications have already raised doubts about the proposed module; that doesn't mean anything, and somebody else who approves applications can have a different opinion (and maybe s/he can approve this application).

oliver huynh’s picture

Okay. Anyway, thanks for your taking time to review. You can close this topic.

avpaderno’s picture

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

Basing on the last comment, I am marking this report as won't fix.