Sort topics alphabetically

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
Sovereignty
Registered User
Posts: 6
Joined: Thu Jul 17, 2008 10:13 pm

Re: Sort topics alphabetically

Post by Sovereignty » Sun Jul 27, 2008 12:18 pm

I installed it, when I clicked a letter to sort, it shows topics that begin with this letter perfectly, but it sorts according to the "last post time", not their topic name.

You can see at subsilver2's screenshot. Does this mod work like that, or did I make a mistake?

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Sort topics alphabetically

Post by ameeck » Sun Jul 27, 2008 12:29 pm

The MOD works like that. I didn't set any sorting method as default as you can select them under the topic list.

User avatar
Sovereignty
Registered User
Posts: 6
Joined: Thu Jul 17, 2008 10:13 pm

Re: Sort topics alphabetically

Post by Sovereignty » Sun Jul 27, 2008 12:48 pm

ameeck wrote:The MOD works like that. I didn't set any sorting method as default as you can select them under the topic list.
Ok.thanks...

I think the mod becomes better if it sorts alphabetically with "topic names" when a letter is clicked.

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Sort topics alphabetically

Post by ameeck » Sun Jul 27, 2008 1:05 pm

The change shouldn't be too complicated.
&sk=s&sd=a
Find this line in viewforum.php:

Code: Select all

'U_LETTER' => append_sid("viewforum.$phpEx", "f=$forum_id&letter=$single_letter&$u_sort_param"), 
and replace it with this line:

Code: Select all

'U_LETTER' => append_sid("viewforum.$phpEx", "f=$forum_id&letter=$single_letter&sk=s&sd=a"), 
and then change the second 'U_LETTER' line just below it to this:

Code: Select all

'U_LETTER' => append_sid("viewforum.$phpEx", "f=$forum_id&letter=other&sk=s&sd=a"), 

User avatar
Sovereignty
Registered User
Posts: 6
Joined: Thu Jul 17, 2008 10:13 pm

Re: Sort topics alphabetically

Post by Sovereignty » Sun Jul 27, 2008 10:31 pm

Thank you 'ameeck', it works...

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Thu Jul 31, 2008 10:00 pm

Admittedly I am working on half a brain. I did the mod. No apparent problems. But I can't seem to get it turned on. I am only using prosilver. I dont see where in the forums setup to turn it on.... Please help an old dim feller
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Fri Aug 01, 2008 12:02 am

Nevermind, being not bright, I never redid the cache. Works great!
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Fri Aug 01, 2008 9:28 pm

Like I said it works great... in prosilver.

I made the changes in viewforum_body.html for 2 other styles but nothing shows when I view the pages. I even deleted all the caches. Any ideas?
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Sun Aug 03, 2008 11:09 am

Bump

Still not working on other styles
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Sort topics alphabetically

Post by ameeck » Mon Aug 04, 2008 8:24 am

Try refreshing the templates under the Styles tab in the ACP. ACP->Styles->Template->(style) - Refresh

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Tue Aug 05, 2008 11:55 pm

Confused!

I have refreshed the cache. I can see the changes in the code but nothing happens in two other styles but prosilver works just fine. I was torn anyways whether to keep the out of the box look or go with another style. I guess I will stick with prosilver....
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

dankybett
Registered User
Posts: 18
Joined: Fri Feb 29, 2008 12:57 pm

Re: Sort topics alphabetically

Post by dankybett » Wed Aug 06, 2008 3:18 pm

Great mod, works fine.

What would I need to edit for it to work with subsilver2?

Also

Is there a way to sort forums alphabetically in the same way, as I have many forums within forums. I know I can move them up and down in the control panel, but there is so many forums that it would take forever to do. This is really what I need, and hoped this mod would do.

Either way, this is a great mod! Thanks Ameeck!

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Wed Aug 06, 2008 9:13 pm

Still looking for why this does not work in another style for me. It works fine prosilver but not in my other style. Yes, I have refreshed, deleted, nuked and fried the cache but still no go HELP please!
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
Bard
Registered User
Posts: 449
Joined: Fri Sep 10, 2004 9:49 am
Location: Texas
Contact:

Re: Sort topics alphabetically

Post by Bard » Wed Aug 06, 2008 11:14 pm

Solved this by playing around and finding the right spot. In prosilver the first

Code: Select all

!-- BEGIN topicrow -->
was the insertion point. With this other style(s) the second

Code: Select all

!-- BEGIN topicrow -->
was the right insertion point. I also changed the code from

Code: Select all

<!-- IF S_SORT_ALPHABET -->

<ul>
<li>{L_SORT_ALPHABETICALLY}: <a href="{U_ALL_TOPICS}" style="font-weight: bold;">{L_ALL_TOPICS}</a>, 
	<!-- BEGIN alphabet -->
	<a href="{alphabet.U_LETTER}">{alphabet.LETTER}</a>{alphabet.DIVIDER}
	<!-- END alphabet -->
to

Code: Select all

<tr class="nav2">
		<!-- IF S_TOPIC_ICONS -->
		<td colspan="3" align="center">
		<!-- ELSE -->
		<td colspan="3" align="center">
		<!-- ENDIF -->
<!-- IF S_SORT_ALPHABET -->

<ul>
<li>{L_SORT_ALPHABETICALLY}: <a href="{U_ALL_TOPICS}" style="font-weight: bold;">{L_ALL_TOPICS}</a>, 
	<!-- BEGIN alphabet -->
	<a href="{alphabet.U_LETTER}">{alphabet.LETTER}</a>{alphabet.DIVIDER}
	<!-- END alphabet -->
</ul></td></tr>
A computer once beat me at chess, but it was no match for me at kick boxing.
Old Time Radio Talk | Visit OTR Talk Town

User avatar
girlintrouble
Registered User
Posts: 856
Joined: Fri Jan 25, 2008 8:35 pm
Location: UK

Re: Sort topics alphabetically

Post by girlintrouble » Sat Aug 23, 2008 11:42 pm

Hi
I wasnt sure if this mod was what I needed.

I was hoping this would actually sort all topic in a particular forum into alphabetical order. If Im correct a change you suggested above might give me that.

I am mid way through applying this mod.

Editing viewforum.php

However I dont have the following code in my file!

Find

Tip: This may be a partial find and not the whole line.
Code: Select All

Code: Select all

else
{
	$get_forum_ids = array_diff($active_forum_ary['forum_id'], $active_forum_ary['exclude_forum_id']);
	$sql_where = (sizeof($get_forum_ids)) ? $db->sql_in_set('t.forum_id', $get_forum_ids) : 't.forum_id = ' . $forum_id;
}
So what do I do please?

Locked

Return to “[3.0.x] MOD Database Releases”