Is it possible to change what newly invited users see for the first time they visit the site?
Currently they see top posts of all time - but in our case, we just launched our site as a closed beta and all the top posts are really bad posts (because they are just old and received a lot of hits while we built the site)
Is it possible to change the default landing page for newly invited users to ‘recent’ or similar?
How are you visiting that page? Are you logged in or an anonymous user? Are you returning to the site after being away for a while? What is the value of topics_per_period_in_top_page in your Admin > Settings?
As that site setting only affects the default view, there is logic in Discourse that may switch it to something else if you weren’t there for several days
That logic didn’t change. Wonder if it should have… as maybe the score is finding a value acceptable via :yearly on your setup.
I am visiting the site from two different logged in users: an admin user and a regular member user. Same behavior. I just created the regular user as a test and i am still presented with a yearly overview under top as default.
Not sure what you mean? Is that the intended behavior? In that case, what does the setting then do?
Well right now it is purely only in affect if the yearly period doesn’t have enough entries to warrant its display (based on the code). It seems yours does.
That code may need to be tweaked to behave differently, if the setting is to imply something else. Not sure what that should look like though.
One possible option would be to force the default timeframe to be the first entry in periods, so yes, it might get checked twice, but if the default view returns an applicable score and an applicable number of topics, it will get used.
In short, it ensures the default top page setting is returned by best_periods_for, it doesn’t mean it will get used, as it might not have a score > 0 or enough entries (and thus a different period may get returned), but it will at least give it a chance to be used.
Update: I really don’t understand what the top page default timeframe setting does? Just set Topics per period to 5 and set the top page default timeframe to yearly. Now it shows me top posts today when i click top. Makes no sense to me
That is covered by the checkbox you unchecked earlier (as it will put the user on the landing page). Which is 100% in your control.
Yeah, that setting needed to be applied further, which is what my PR does. Now it should behave in a more intended way. The earlier existence was only helpful to very low activity forums, anything that had remotely any activity wouldn’t ever make use of that setting.