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.
DefaultPage
This discussion is related to the DefaultPage addon.
Comments
Posted: Friday, 28 September 2007 at 6:16AM
Yes it does.
The first time there it takes you to a different default page, usually Categories but every time after that it's right back to discussions, with or without the trailing slash.
Maybe a cookie is being set the first time?
Posted: Saturday, 29 September 2007 at 10:04AM
In the meantime you could try changing line 87 to:
header('Location: '.$Configuration['BASE_URL'].$DEFAULT_PAGE);
Wanderer it does work but not in the way you might think. DefaultPage directs you to your default page when you first access the forum or sign-in, it then sets a session variable to say that the redirection has been done and continues as normal i.e. it ignores the DefaultPage setting until you sign-out. This is by design.
The idea of DefaultPage is that it directs the user to a particular page when they first arrive. I agree that it is not possible to get DefaultPage to behave in the way you have your forum setup i.e. with a 'Home' button and you are correct in saying that if you need this type of behaviour then you will probably need to use mod_rewrite etc.
It will be possible with the next version of DefaultPage to set a different starting page for different roles.
Maybe you should call it: DefaultPageOnceOnlyPerVisit!
Posted: Saturday, 29 September 2007 at 9:08PM
Perhaps it should have been called StartingPage....
I've not given up yet though. Think I have a way to reproduce the behaviour you have been able to produce with mod_rewrite etc. Have been able to do it with a combination of DefaultPage and Page Manager. Just need to combine everything into DefautlPage.
Watch this space! ;-)
Notice: Undefined index: CssClass in /forum/themes/people_banner.php on line 5
If you experience this problem then just deselect the 'Return to the current page...' option on the DefaultPage settings page.
It is not necessary to select a 'default page' for this to work.
Thanks to Dexter and Wanderer for pointing out problems and shortcomings in the earlier versions which I hope have been fixed and addressed in the new version.
Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Not sure why you have posted this error here. Do you think it is related to the DefaultPage extension?
DefaultPage does not use any session variables. I have had this problem myself however (unrelated to Vanilla). It was caused by the 'Temp' folder not being flushed correctly.