[ABD] Sort Topics Alphabetically

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
BF79
Registered User
Posts: 269
Joined: Fri Feb 13, 2015 1:28 pm

Re: [RC] Sort Topics Alphabetically

Post by BF79 » Thu Dec 24, 2015 11:28 am

okey THANKS

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Thu Dec 24, 2015 12:05 pm

BF79 wrote:okey THANKS
Now I remember that you can do it with native system... On footer of viewforum you can sort topic by author.
Or do you want, like this ext, the first letter?

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1089
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [RC] Sort Topics Alphabetically

Post by mrgoldy » Thu Dec 24, 2015 12:09 pm

Can we no longer use the Search feature?

search.php?keywords=&terms=all&author=B ... mit=Search

User avatar
pierredu
Registered User
Posts: 931
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu » Thu Dec 24, 2015 12:52 pm

I tested this second version and I still have the same problem on a real board, with forums having hundreds of topics. The first page is correct, but the second one not. I tested with my own style and with prosilver. No difference.

I installed an empty board and created dummy topics. About 30-35. There are 27-28 with the A intial, and this time, I get a first page of A and a second page with the rest. If I select B, I get the three only ones.

So, this works for a little count of topics, not for a real one.

Does this ring a bell?

On the other hand, did you try to integrate this sorting feature at the bottom, with the other sorting options?

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Thu Dec 24, 2015 1:06 pm

pierredu wrote:I tested this second version and I still have the same problem on a real board, with forums having hundreds of topics. The first page is correct, but the second one not. I tested with my own style and with prosilver. No difference.
I installed an empty board and created dummy topics. About 30-35. There are 27-28 with the A intial, and this time, I get a first page of A and a second page with the rest. If I select B, I get the three only ones.
So, this works for a little count of topics, not for a real one.
Does this ring a bell?
As you can see there, it works on my servers also with more pages than one. I don't know why on your server cookie are not created.
pierredu wrote: On the other hand, did you try to integrate this sorting feature at the bottom, with the other sorting options?
I can think about this... But probably there are any event.

BF79
Registered User
Posts: 269
Joined: Fri Feb 13, 2015 1:28 pm

Re: [RC] Sort Topics Alphabetically

Post by BF79 » Thu Dec 24, 2015 1:15 pm

thanks to posey and Bruninoit for reply !!

we can do like this..

Image

but just extension is easy and faster.. nothing

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1089
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs
Contact:

Re: [RC] Sort Topics Alphabetically

Post by mrgoldy » Thu Dec 24, 2015 1:17 pm

Yeah I understand a one-click extension would be easier, but that will clutter your viewforum and viewtopic even more.. The search function is there for a reason ;)
But if someone wants to make it, go for it I suppose..

User avatar
pierredu
Registered User
Posts: 931
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu » Thu Dec 24, 2015 2:10 pm

Bruninoit wrote: As you can see there, it works on my servers also with more pages than one. I don't know why on your server cookie are not created.
It works, but look at the parameters. If I Select A, I have viewforum.php?f=8&letter=A, with topics Af and Ae. If I look at the link for page 2, it is viewforum.php?f=8&start=2 (without the 'letter=A' parameter). For page 3, start=4, because you have a pagelength of 2 topics.

If I click, the topics displayed are Ad and Ac. On the third page, the topics are Ab and Aa. Why is this in the reverse order? I thinks it is so because the posts are displayed in the reverse creation order with the initial A. I think you should add an 'order by' item to the SQL request.

A few moments later: don't you think that you have a cache problem? I think the board software is clever enough to look whether the requested page already exists. That means that you should purge the cache when starting a sorted list of topics.

Me again: that's it. I don't know how to solve the matter.

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Thu Dec 24, 2015 6:02 pm

Yes, at moment Topics are ordered by time not by letters. But I can add simply this...
Pierru I don't know who to say... I used the normal phpBB system to add cookies... It's strange that they aren't added only in your forum... Are you sure of this? Recontrol, comparing my forum cookies with yours.

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Thu Dec 24, 2015 6:08 pm

BF79 wrote:thanks to posey and Bruninoit for reply !!

we can do like this..

Image

but just extension is easy and faster.. nothing
How do you want it in viewforum? Do you want a form to enter username? Or the first letter of author (like this ext)?

BF79
Registered User
Posts: 269
Joined: Fri Feb 13, 2015 1:28 pm

Re: [RC] Sort Topics Alphabetically

Post by BF79 » Thu Dec 24, 2015 6:24 pm

first letter of author should be good :)

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Thu Dec 24, 2015 7:01 pm

BF79 wrote:first letter of author should be good :)
I'll open a new topic...

User avatar
pierredu
Registered User
Posts: 931
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu » Fri Dec 25, 2015 7:27 am

Bruninoit wrote:Yes, at moment Topics are ordered by time not by letters. But I can add simply this...
Pierru I don't know who to say... I used the normal phpBB system to add cookies... It's strange that they aren't added only in your forum... Are you sure of this? Recontrol, comparing my forum cookies with yours.
I have your cookies. *_bruninoit_cf contains 2 and *_cl contains A.
But it seems that this is not enough.

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Fri Dec 25, 2015 8:54 am

pierredu wrote:
Bruninoit wrote:Yes, at moment Topics are ordered by time not by letters. But I can add simply this...
Pierru I don't know who to say... I used the normal phpBB system to add cookies... It's strange that they aren't added only in your forum... Are you sure of this? Recontrol, comparing my forum cookies with yours.
I have your cookies. *_bruninoit_cf contains 2 and *_cl contains A.
But it seems that this is not enough.
Bho... I'll recontrol the conditions... But very strange if cookie are stored... :?

Bruninoit
Registered User
Posts: 499
Joined: Thu Jun 13, 2013 2:34 pm
Location: Florence (Italy)
Name: Bruno Andrew
Contact:

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit » Fri Dec 25, 2015 2:27 pm

pierredu wrote: I have your cookies. *_bruninoit_cf contains 2 and *_cl contains A.
But it seems that this is not enough.
Try this.
Open event/sta.php
Search

Code: Select all

if($letter=="*")
Before add in a new line

Code: Select all

echo "cl $cl - cf $cf - letter $letter - fid $forum_id";
So go to viewforum and see some pages and report the string that appears in header

Locked

Return to “Abandoned Extensions”