[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: 522
Joined: Fri Feb 13, 2015 1:28 pm
Name: Fouad B

Re: [RC] Sort Topics Alphabetically

Post by BF79 »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [RC] Sort Topics Alphabetically

Post by mrgoldy »

Can we no longer use the Search feature?

search.php?keywords=&terms=all&author=B ... mit=Search
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
pierredu
Registered User
Posts: 1274
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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: 522
Joined: Fri Feb 13, 2015 1:28 pm
Name: Fouad B

Re: [RC] Sort Topics Alphabetically

Post by BF79 »

thanks to posey and Bruninoit for reply !!

we can do like this..

Image

but just extension is easy and faster.. nothing
User avatar
mrgoldy
Former Team Member
Posts: 1394
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: [RC] Sort Topics Alphabetically

Post by mrgoldy »

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..
phpBB Studio / Member of the Studio

Contributing: You can do it too! Including testing Pull Requests (PR).
phpBB Development and Testing made easy.
User avatar
pierredu
Registered User
Posts: 1274
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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: 522
Joined: Fri Feb 13, 2015 1:28 pm
Name: Fouad B

Re: [RC] Sort Topics Alphabetically

Post by BF79 »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

BF79 wrote:first letter of author should be good :)
I'll open a new topic...
User avatar
pierredu
Registered User
Posts: 1274
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: [RC] Sort Topics Alphabetically

Post by pierredu »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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

Re: [RC] Sort Topics Alphabetically

Post by Bruninoit »

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

Return to “Abandoned Extensions”