Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 9

CurtisOdenericgilletteesttc74422 +4 guests

Minor Annoyance

In vanilla when you sign out it says "Click here to sign in again" but then im thinking argh just give me a link to go to index. I mean why would i click the sign out button only to sign in straight away again! Return to discussions link would be a great start. The only reason i may log out is to see what my board would be like to a guest or something. I dont sign out for the thrills of signing in again. :P Well thats over.

Comments

  • Posts: 1,010
    If you have your board set so only registered people can view it then it makes sense to go to the login panel. However, a link to the discussion index would be useful.
  • Posts: 5,574
    I was thinking this earlier and came to gigingers conclusions.
  • Posts: 819
    well maybe that can be an added variable. You know what i mean.
  • Posts: 1,876
    It is possible to correct this by rooting around in the People library code, but man is it a hassle.
  • Posts: 5,574
    Surely it'd be easier to edit the theme?
  • Posts: 1,876
    Well I edited both theme files and library files, but I can't remember which did what, and I think it's changed since then. This problem could be easily fixed if ReturnUrl worked for signing out like it does for signing in.
  • Posts: 4,883
    Make a new theme folder next to themes/vanilla/ called something like themes/mycustomvanilla/

    go into /themes/vanilla and copy the styles folder.
    go to your /themes/mycustomvanilla and paste in the styles folder.

    go to the root /themes folder and copy people_signout_form_validpostback.php
    go to /themes/mycustomvanilla and paste in people_signout_form_validpostback.php

    Open up /themes/mycustomvanilla/people_signout_form_validpostback.php and edit it to look like this:

    <?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, 'index.php').'">Go back to discussions</a></li>
    </ul>
    </div>';
    ?>


    Then sign into Vanilla and go to the settings tab.
    Click the "Themes and Styles" form.
    Under themes choose "mycustomvanilla".
    Under styles choose "default".
    Check "apply to all users".
    Click Save.

    Click the sign out button.

    Watch the magic.
  • Posts: 3,235
    redirect your users that log out to goatse as punishment like I do!
  • Posts: 211
    Could this be implemented as an add-on?
  • Posts: 3,235
    mark, if it's not too late, you could probably quickly jot this into the admin panel/configs and rewrite the template to suit, if left empty it does the default dance. It's more of a template modification than being worthy of add-on status, unless that means we're going to also start doing template bits'n'pieces too, are we?
  • Posts: 819
    would it be toom uch to ask to have set in the official thing a check saying, if forum is viewable to public have a link to return to discussions on sign out aswell as sign in again?
  • Posts: 211
    A custom address would of course be neat. There are loads of places one may want to send people who sign out.
  • Posts: 4,883
    I'm not making any more feature changes or additions before Vanilla 1.

    If you want this functionality, do what I said above. It's super easy to do and works a treat. I don't see what the big deal is.

    It will take you less time to implement than it took me to write the instructions to do it.
  • Posts: 3,235
    I shall dub it a "vanilla sopmod" then. IT IS SO!
  • Posts: 418
    mmm, what is sopmod??
  • Posts: 3,235
    Toivo, it's a millitary term for "Special Operations Peculiar MODification", not vanilla related, but I guess you can use it in that same context.
  • Posts: 819
    lol :P maybe there should be a extension for all the silly things :P it would be good. People keep fixing annoyances in it and when you install you choose which annoyances to fix or something. That would be good.
  • I'd like to show random pictures of sad look kittens on the logout.
  • Posts: 418
    of course. UTFG!
  • Posts: 926
    That could work, an extension, Anti-Annoyance. Make a panel with options to change all the small "annoyances".
  • Posts: 819
    yeah, so when does it start :P
  • Posts: 62
    This works great and mark is right. it is as quick to do as it is to moan about it.
  • Posts: 2,610
    It's not quicker to do for 1,000 people (or how ever many Vanilla forums) than it is for it to be integrated into the core by Mark ;)
  • I've resorted to the following simple expedient to get this functionality, just adding: <li><a href="index.php"><b>Click here to return to browsing the forum</b></a></li> to any required 'validpostback.php' files, which I guess is the essence of Mark's solution. It seems to work for me.
Sign In or Register to comment.