Announcement

Collapse
No announcement yet.

How do I redirect visitors to login form?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • slinky
    replied
    Old thread from 2011 but... I have been having serious problems with logging in on my site. Users are complaining that our login box doesn't work so I tried to get to the login.php?do=login page. Same problem as the other users so I decided to try it here on vBulletin.com. It does the same redirect here!


    Leave a comment:


  • Lynne
    replied
    Very weird. When I tried this on my test site, it worked fine. Now it doesn't. I'm not sure what I'm doing differently. If you try to login and are unsuccessful, then you can go to that page. Perhaps I did it that way.

    This is the login.php code that causes this action:
    PHP Code:
    if (empty($_REQUEST['do']) AND empty($vbulletin->GPC['a']))
    {
        
    exec_header_redirect(fetch_seo_url('forumhome|nosession', array()));

    So, I think you need to either modify that code directly or write a plugin or something to get passed that condition. If you need help with that, you should ask over on vbulletin.org, the modification site.

    Leave a comment:


  • adonfun
    replied
    vbulletin.com has the same behaviour for me as well.. I logged out and visited https://www.vbulletin.com/forum/login.php?do=login in which I get redirected to the forum homepage as well.

    It is a fresh install with the original htaccess still in it.

    Leave a comment:


  • Lynne
    replied
    It should not. It doesn't do that on my test site. Are you sure you don't have some .htaccess or modification script that is doing that?

    Leave a comment:


  • adonfun
    replied
    Hi Lynne, thanks for your reply... the thing is, I wasn't logged in and it redirects me to the forum homepage.

    Leave a comment:


  • Lynne
    replied
    If you try to go to the link /forum/login.php?do=login when you are logged in, then it will redirect to the forum home page. If you are NOT logged in and go to /forum/login.php?do=login, then you will see the login form.

    Leave a comment:


  • adonfun
    started a topic [Forum] How do I redirect visitors to login form?

    How do I redirect visitors to login form?

    On my non-vb pages I check if the user is logged in or not. If not I want to redirect the visitor to the vb login page: /forum/login.php?do=login

    When I access this URL, it redirects me back to the forum homepage. How do I make this page with loginform display? Is there a special URL for this?

Related Topics

Collapse

  • dgrose
    https login on beta25
    by dgrose
    Hi,
    I am trying to set up our forum to use https for login.

    I have set the 'baseurl_login' in the /config.php with the https address of our forum. Is this all I need to do?
    ...
    Fri 18 Jan '13, 12:24am
Working...
X