Topic: Increasing number of "Latest Posts"?
einstein13![]() |
Posted at: 2018-09-11, 09:59
I don't like private messages auto-deletion. For example I have several old messages and I would like to read them. They are very old from computer perspective. Notifications are very hard ones to specify. There are many ways of doing them and every way has disadvantages. The most problematic thing here is that Widelands users aren't logging very often. Some of them have months between logs. And there is a bunch of people who log into very often, several times a day in peak. einstein13 ![]() ![]() |
king_of_nowhere![]() |
Posted at: 2018-09-11, 16:34
how about getting the best of both worlds? keeping notifications and private messages separate. notifications automatically cleanup after 2 months, private messages never delete automatically
![]() ![]() |
einstein13![]() |
Posted at: 2018-09-11, 16:56
@king_of_nowhere +1 @kaputtnik: How much effort is needed to get back notifications? Is it worth doing it? I can see more "latest posts" on the right. It is very good now einstein13 ![]() ![]() |
kaputtnik![]() |
Posted at: 2018-09-11, 20:53
They are already there, but not in the way you mean :-). In principle we have to readd the model Notice and maybe some other modification. The problem is: All enabled notifications will produce a Notice. E.g.: Many users have enabled to get a notice for each new topic. Creating a topic will create a Notice for each user who has enabled this setting, regardless if he/she is active on the forums or not. So creating one topic produces approximately hundreds of Notices (we have currently 4554 registered users). Same goes for some other noticetypes. Some history:
I don't know. If the majority of users think so, we can maybe do it. To be honest: We are currently running Django 1.11 on python 2.x. Django 1.11 is the last version who supports python 2.x. So updating to the next major version of Django means converting all the website code to python 3.x. See Update Website code to use Python 3.x. For me this has a higher priority. But may be can have another solution, see below.
You mean scripting = javascript? Or some ajax function? Currently i think ypopezious solution is the best one. Having an extra page can also have some filters like 'Show latest posts in Forum 'Game suggestions'". Maybe we can something like that also for the notifications? A page showing latest Posts/Maps/whatever for each subscription? I think this should be doable with some querys. Such a page can also have some filters ![]() ![]() |
einstein13![]() |
Posted at: 2018-09-12, 17:04
You're right that we should move to python3 first. I am not sure how hard it will be. I have developed one program that was designed to work with both Python2.7.x and 3.x. It wasn't too hard, but the project was tiny comparing to Widelands. Probably most effective way would be changing Python version on our "test instance" of the website. And I know that it is not the best idea, but enabling DEBUG=True probably will help somebody like me to track down bugs And also we can make a simple functional test list. What we should do, what we should expect. Something like:
For sure I can help with writing down this tests and then doing them on test instance. That would help with upgrading to other django & packages upgrades. What do you think about that? einstein13 ![]() ![]() |
kaputtnik![]() |
Posted at: 2018-09-12, 21:06
But every help for porting to Python 3 is appreciated
That's a no go, even on the alpha site. Better create your own copy of the website locally
I am not very familiar with tests. My imagination to 'fabricate' possible culprits is quite small, so i am in favor of testing manually. Or do i misunderstand your proposal? The way i would try to port to Python 3 is on an per app basis: Create a branch which only consist e.g. of the mainpage and start to port the main view and test it, then add another app (e.g. news) to the branch and port it to Python3, test it, then the wiki and test, and so on. But thats worth another topic, or better handling this questions in the bugtracker on launchpad. Back to the topic: ![]() ![]() |
kaputtnik![]() |
Posted at: 2019-03-15, 14:18
Since we have currently three posts in the latest post box, i have started to work on an additional page to show more latest posts. The Latest Posts box get an additional link "More latest posts", clicking on it will show the latest posts for the last 30 Days. One can adjust the days for which he wants to have the latest posts. The Posts are displayed by date (newest first) and grouped by the topics name. Here is a first screenshot: Any suggestions to improve the new page? ![]() ![]() |
Nordfriese![]() |
Posted at: 2019-03-15, 14:24
Good idea I would suggest to make the column header "Latest posts" a link to the Latest Posts site. Also, how about a dropdown or radioboxes on the page whether to group posts by topic, by forum, or no grouping? ![]() ![]() |
kaputtnik![]() |
Posted at: 2019-03-16, 10:36
Hm... this is a header and displaying it like a link will not show it like a header anymore. Having it shown like a header but let it be a link will be confusing since this is the only place where a header is a link and people do not recognize it like a link. Having the link at the end of the latest posts box, after other latest posts, is semantically correct in my opinion. But the header does not reflect the real content of the box. Better would be 'Latest Post in different Topics' but this definitely too long
This came also to my mind. I have to think about how this could be implemented. Displaying the posts with no grouping can be difficult to read, see e.g. the posts section of the search The reason for the currnt immplementation is: I guess people are most interested in the latest posts of a specific topic. ![]() ![]() |
GunChleoc![]() |
Posted at: 2019-03-16, 19:17
How about calling the link "More recent topics"? Busy indexing nil values ![]() ![]() |