Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorwohoo
    • CommentTimeApr 29th 2008
     # 1
    When clicking the "Sign Out" link on the top-right corner, Vanilla sends the user to an almost blank page with a "You have been signed out successfully" message. What would I need to change so the user will be kept on the same page or at the very least sent to the forum index upon signing out?

    Thanks a bunch!
    •  
      CommentAuthorWanderer
    • CommentTimeApr 29th 2008
     # 2
    Good question, that "almost blank" page annoys me too.

    It shouldn't be too hard to to re-direct to another page with relevant content.

    Sounds like an extension request to me.
  1.  # 3
    You could also make a theme with just one file overridden to suit your needs: people_signout_form_validpostback.php

    If you want to go the extension route, here's the relevant Delegates: Leave::PreValidPostBackRender, Leave::PostValidPostBackRender (location in library/People/People.Control.Leave.php)
    • CommentAuthorwohoo
    • CommentTimeApr 29th 2008 edited
     # 4
    Yeah, messing with people_signout_form_validpostback.php isn't getting me the desired effect.

    Can you explain what to change in the "/people/People.Control.Leave.php" to have it redirect to Vanilla index or another URL?
    •  
      CommentAuthorsjeeps
    • CommentTimeApr 29th 2008
     # 5
    You can create a new theme or just alter people_signout_form_validpostback.php to:


    <?php
    // Note: This file is included from the library/People/People.Control.Leave.php class.

    echo '<div class="FormComplete">
    <h2>'.$this->Context->GetDefinition('SignOutSuccessful').'</h2>
    <ul>
    <li><a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl).'">'.$this->Context->GetDefinition('SignInAgain').'</a></li>
    </ul>
    </div>';
    // Redirect back to index after signing out
    header('Location: '.GetUrl($this->Context->Configuration, 'index.php'));
    ?>
    • CommentAuthorwohoo
    • CommentTimeApr 30th 2008
     # 6
    Sweet, works like a charm. I'm working on a highly customized theme, so adding another template *.php isn't a big deal.
    Thanks sjeeps!
Add your comments
    Username Password
  • Format comments as