Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Sign Out Redirect

1246712

Comments

  • Dutch in Israel and now the Midwest?

  • I am in between places. Normally I would be in Nevada.

  • I've heard that there is a nice community there. One last anomaly before I shut down. I have been playing with the $Configuration. Try alternatives, but keeping the one you suggested, just commenting it out with //. Each time I do that, I lose my logo. I have to go back to the Dashboard > Banner and upload it again. That just doesn't make sense.

    Laila tov. Catch you on the flip side (as we used to say).

  • @rmeilech

    just commenting it out with //.

    you can't keep personal comments on a line in cofig.php

    it will just get removed when the config is resaved when editing via dashboard.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Sorry, I don't understand. What will get removed and when is config resaved?

  • @rmeilech said:
    Sorry, I don't understand. What will get removed and when is config resaved?

    commented lines that you personally make will be removed.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • OK, again sorry to be such a dunderhead, but are you saying that $Configuration statements that I add to config are not being saved? Or are yous aying that lines I comment out with //, the comments will be removed and the line will be treated as if its there?

  • are you saying that $Configuration statements that I add to config are not being saved?

    No, they will be saved,

    Or are yous aying that lines I comment out with //, the comments will be removed and the line will be treated as if its there?

    Yes. they will be removed on your next save.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Got it. Thank you for your patience. Unfortunately, despite vrijvlinder's incredible efforts, we still don't have solution for the redirect issue.

  • peregrineperegrine MVP
    edited April 2014

    post you config.php and remove all sensitive data like passwords, salts and keys.

    also post your .htaccess

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • <?php if (!defined('APPLICATION')) exit();

    // Conversations
    $Configuration['Conversations']['Version'] = '2.0.18.10';

    // Database
    $Configuration['Database']['Name'] = 'xxx';
    $Configuration['Database']['Host'] = 'xxx';
    $Configuration['Database']['User'] = 'xxx';
    $Configuration['Database']['Password'] = 'xxx';

    // EnabledApplications
    $Configuration['EnabledApplications']['Conversations'] = 'conversations';
    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';

    // EnabledPlugins
    $Configuration['EnabledPlugins']['GettingStarted'] = 'GettingStarted';
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';

    // Garden
    $Configuration['Garden']['Title'] = 'TorahRX Forums';
    $Configuration['Garden']['Cookie']['Salt'] = 'nzy7sufj';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Registration']['Method'] = 'Captcha';
    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '3';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = 'xxx';
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = 'xxx';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '-1 week';
    $Configuration['Garden']['Registration']['InviteRoles'] = 'a:5:{i:3;s:1:"0";i:4;s:1:"0";i:8;s:1:"0";i:32;s:1:"0";i:16;s:1:"0";}';
    $Configuration['Garden']['Email']['SupportName'] = 'TorahRX Forums';
    $Configuration['Garden']['Email']['SupportAddress'] = 'info@torahpractic.org';
    $Configuration['Garden']['Email']['UseSmtp'] = FALSE;
    $Configuration['Garden']['Email']['SmtpHost'] = '';
    $Configuration['Garden']['Email']['SmtpUser'] = '';
    $Configuration['Garden']['Email']['SmtpPassword'] = '';
    $Configuration['Garden']['Email']['SmtpPort'] = '25';
    $Configuration['Garden']['Email']['SmtpSecurity'] = '';
    $Configuration['Garden']['Version'] = '2.0.18.10';
    $Configuration['Garden']['RewriteUrls'] = TRUE;
    $Configuration['Garden']['CanProcessImages'] = TRUE;
    $Configuration['Garden']['Installed'] = TRUE;
    $Configuration['Garden']['Logo'] = 'PU82UW2Q4QPJ.png';
    $Configuration['Garden']['InstallationID'] = 'xxx';
    $Configuration['Garden']['InstallationSecret'] = 'xxx';
    $Configuration['Garden']['Theme'] = 'torahrx';
    $Configuration['Garden']['Locale'] ='torahrx';
    $Configuration['Garden']['Authenticator']['SignOutUrl'] = 'http://www.torahrx.com/forums/entry/signout/{Session_TransientKey}?Target=http://www.torahrx.com/';

    // Modules
    $Configuration['Modules']['Vanilla']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';
    $Configuration['Modules']['Conversations']['Content'] = 'a:6:{i:0;s:13:"MessageModule";i:1;s:7:"Notices";i:2;s:21:"NewConversationModule";i:3;s:19:"NewDiscussionModule";i:4;s:7:"Content";i:5;s:3:"Ads";}';

    // Plugins
    $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
    $Configuration['Plugins']['GettingStarted']['Categories'] = '1';
    $Configuration['Plugins']['GettingStarted']['Registration'] = '1';

    // Routes
    $Configuration['Routes']['DefaultController'] = 'a:2:{i:0;s:14:"categories/all";i:1;s:8:"Internal";}';

    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.0.18.10';
    $Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3';
    $Configuration['Vanilla']['Categories']['DoHeadings'] = FALSE;
    $Configuration['Vanilla']['Categories']['HideModule'] = FALSE;

    // Last edited by rmeilech (172.250.113.209)2014-04-11 12:02:37

    .htaccess

    Modifed

    If you modify this file then change the above line to: # Modified


    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    RewriteBase /forums
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

  • peregrineperegrine MVP
    edited April 2014

    first try changing

    from

    $Configuration['Garden']['Authenticator']['SignOutUrl'] = 'http://www.torahrx.com/forums/entry/signout/{Session_TransientKey}?Target=http://www.torahrx.com/';

    to

    $Configuration['Garden']['Authenticator']['SignOutUrl'] = 'http://www.torahrx.com/forums/entry/signout/{Session_TransientKey}?Target=http://www.torahrx.com';


    if that doesn't work this should

    • 1 try this - remove tany line beginning with this from your config.php

    $Configuration['Garden']['Authenticator']['SignOutUrl']

    • 2 add this file to your conf folder. and call it bootstrap.after.php

      so in conf/bootstrap.after.php

      <?php if (!defined('APPLICATION')) exit();
      
      if (!function_exists('SignOutUrl')) {
         function SignOutUrl($Target = '') {
            if ($Target) {
               // Strip out the SSO from the target so that the user isn't signed back in again.
               $Parts = explode('?', $Target, 2);
               if (isset($Parts[1])) {
                  parse_str($Parts[1], $Query);
                  unset($Query['sso']);
                  $Target = $Parts[0].'?'.http_build_query($Query);
               }
            }
      
      
            $Target="http://www.torahrx.com";
      
            return '/entry/signout?TransientKey='.urlencode(Gdn::Session()->TransientKey()).($Target ? '&Target='.urlencode($Target) : '');
         }
      }
      

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Do I need to clear cache or reenable anything after making changes?

  • peregrineperegrine MVP
    edited April 2014

    Do I need to clear cache or reenable anything after making changes?

    no.

    it never hurts to delete the .ini files from cache. when testing things that don't seem to get fixed. but you shouldn't have to in this case.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • OK, first option did not work. Try next one.

  • Second option did not work either. Just an amateur question, but where in either file of the second option does it say to redirect to http://www.torahrx.com?

  • I suggest you create a login test user and password temporarily on your forum and let us see.

    and post your test account name and password.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • peregrineperegrine MVP
    edited April 2014

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Test
    test1234

  • what is the forum url and make sure you can log in with the account and password you provided.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.