Phorum 5.3 Proposition - $300 donation
Posted by Voltius
Phorum 5.3 Proposition - $300 donation December 02, 2011 03:54AM |
Registered: 15 years ago Posts: 106 |
Re: Phorum 5.3 Proposition - $300 donation December 02, 2011 04:59AM |
Admin Registered: 22 years ago Posts: 9,240 |
Thanks for your ideas.
Just my own opinion on this:
1-3 are possible to do without too much effort.
4 is a fully different beast though. This will be a big overhaul in the list processing and e.g. sorting alphabetically will make it slow as hell.
Sorting mods by name won't help much either. They'd need to be categorized and sorted inside those categories with most wanted stuff etc.
Thomas Seifert
Just my own opinion on this:
1-3 are possible to do without too much effort.
4 is a fully different beast though. This will be a big overhaul in the list processing and e.g. sorting alphabetically will make it slow as hell.
Sorting mods by name won't help much either. They'd need to be categorized and sorted inside those categories with most wanted stuff etc.
Thomas Seifert
December 02, 2011 12:38PM |
Admin Registered: 20 years ago Posts: 8,532 |
In 5.3, I already did all kind of work on the moderation features, one of them being the redirection after mod operations. I had to be compatible with the 5.2 templates, but managed to add some other useful moderation features in a backward compatible way (e.g. updating all subjects after thread merge and setting a time limit for showing a move notification).
On the new Phorum site that I am working on behind the scenes, I have solved "issue" nr. 2 through providing a different message.tpl template. In this template, I directly redirect the user to the final page, passing on the confirmation message via a URL request parameter. In the footer.tpl, I check for such parameter on each request and show a non-obstrusive popup message to the user. This is done in javascript. WHen a user does not have javascript, he will still see the original confirmation page.
If you want to disable the confirmations completely, then you could probably use the same kind of method and apply a header("Location: ...") redirect in a bit of PHP in the message template, to redirect to the target page. The perception for the user will be an immediate redirect in this case. He won't see an intermediate screen whatsoever.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
On the new Phorum site that I am working on behind the scenes, I have solved "issue" nr. 2 through providing a different message.tpl template. In this template, I directly redirect the user to the final page, passing on the confirmation message via a URL request parameter. In the footer.tpl, I check for such parameter on each request and show a non-obstrusive popup message to the user. This is done in javascript. WHen a user does not have javascript, he will still see the original confirmation page.
If you want to disable the confirmations completely, then you could probably use the same kind of method and apply a header("Location: ...") redirect in a bit of PHP in the message template, to redirect to the target page. The perception for the user will be an immediate redirect in this case. He won't see an intermediate screen whatsoever.
Maurice Makaay
Phorum Development Team



Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 12:29PM |
Registered: 15 years ago Posts: 106 |
Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 12:37PM |
Admin Registered: 22 years ago Posts: 9,240 |
Whats your timeframe on this?
I'm thinking of adding a hook in 5.3 at the right place which just returns the data for the given list page and a module there could do everything you'd need - be it slow or not.
Also I assume that you want that to be per forum, not sortable list headers, right?
Thomas Seifert
I'm thinking of adding a hook in 5.3 at the right place which just returns the data for the given list page and a module there could do everything you'd need - be it slow or not.
Also I assume that you want that to be per forum, not sortable list headers, right?
Thomas Seifert
Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 01:09PM |
Registered: 15 years ago Posts: 106 |
Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 01:18PM |
Admin Registered: 22 years ago Posts: 9,240 |
Well, I mean - is sorting specified per forum in your case or would the user click on a column label to sort by its values?
I would only think of the first option and yes, paging would be possible there.
Sorting by strings, which alphabetical order would imply, is always slower than sorting by numbers as its done now. So you will get a lower performance or higher load for sure.
Thomas Seifert
I would only think of the first option and yes, paging would be possible there.
Sorting by strings, which alphabetical order would imply, is always slower than sorting by numbers as its done now. So you will get a lower performance or higher load for sure.
Thomas Seifert
Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 03:29PM |
Registered: 15 years ago Posts: 106 |
Re: Phorum 5.3 Proposition - $300 donation December 03, 2011 05:38PM |
Admin Registered: 22 years ago Posts: 9,240 |
April 03, 2012 10:59AM |
Admin Registered: 24 years ago Posts: 4,495 |
Sorting alphabetically or any other way would not be slow assuming the work went into the queries to add the correct keys and the queries were adjusted to ensure proper key usage. It would increase index size for everything you want to sort by. And that will in turn slow down insert (post) time by some marginal amount. That may or may not be an issue. Posting is already the slowest process we have by default with the exception of paging very deeply into very, very large forums.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
March 03, 2013 03:54PM |
Registered: 17 years ago Posts: 61 |
Has anyone solved the alphabetical sort idea? I'd love to be able to sort posts on the list page of a certain forum alphabetically. I don't need the column header to be clickable with sort options; I just need to have one forum sorted by subject rather than date.
If anyone has worked on this or solved this with either a mod or a hack I'd love to know the details.
Jake Morgan
www.PULLOFF.com
Independent Pulling News
If anyone has worked on this or solved this with either a mod or a hack I'd love to know the details.
Jake Morgan
www.PULLOFF.com
Independent Pulling News
Sorry, only registered users may post in this forum.