Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Dis-"Allow non-members to browse the forum" problem

edited September 2006 in Vanilla 1.0 Help
#1) Love Vanilla #2) I did search around to find this answer before posting Ok when I uncheck "Allow non-members to browse the forum" so that you have to register to browse the forums... it hides it from everyone. When I try and go to the forum it timesout in firefox. I assume, that I should get the register/sign in box when this is unchecked and I'm not signed in with a cookie. Instead i just get nothing. Manually checking this in settings.php and uploading it makes the forum reappear. What am I doing wrong? Thanks Scott


  • Wierd. Got any of your other users/friends to check? php/mysql/apache versions?
  • edited September 2006
    don't you hate it when you find something right after you post... OK, if I go to /forum/people.php I get the login screen (yeah!) BUT /forum/ and /forum/index.php don't redirect you to people.php - is this possible to setup? mysql 5 PHP Version 4.3.10-16 Apache/1.3.33
  • I believe index.php should redirect you if you're not logged in and it's not publically viewable..hmm... I take it you're not running friendly urls?
  • no friendly urls.... i had heard some ext. didn't play nice with them. Would that fix it? (the redirecting?)
  • I doubt it but it might be worth a go. I cant actually see (at a glance and i've gotta go in a sec) where vanilla decides whether to show the user the discussions list or redirect elsewhere so i cant even begin to work out what it's doing in the meantime but hopefully someone else will be along or i'll try and remember to look later.
  • It is in People.Class.Session.php I think:
    function Check(&$Context) { if (($this->UserID == 0 && !$Context->Configuration['PUBLIC_BROWSING']) || ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN)) { if ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) $this->End($Context->Authenticator); header('location: '.AppendUrlParameters($Context->Configuration['SAFE_REDIRECT'], 'ReturnUrl='.GetRequestUri())); die(); } }
This discussion has been closed.