Page 1 of 1

Is ther any mod to achieve alphabetial topics sorting ?

Posted: Tue Aug 06, 2013 8:08 am
by sal_jim
Is there a MOD to achieve this type of alphabetical topics sorting ?
Please see pictures and below link.

First the user click the dictionary forum:
user clicks the dictionary
user clicks the dictionary
01.png (83.25 KiB) Viewed 4948 times
then the dictionary forum topics(definitions) could be sorted from below toolbar "ALL A, B, .... Z"
dictionary can be sorted via the below toolbar.
dictionary can be sorted via the below toolbar.
2.png (117.18 KiB) Viewed 4948 times
Please check the following link for the working:
https://www.phpbb.com/languages/index.p ... ckage_list

Thank you PHPBB supporters and contributors !

Re: Is ther any mod to achieve alphabetial topics sorting ?

Posted: Tue Aug 06, 2013 9:01 am
by KevC
Try this
viewtopic.php?f=72&t=2106076

*Read the whole topic as there are code changes suggested throughout and back up the files before you do it.

Re: Is ther any mod to achieve alphabetial topics sorting ?

Posted: Tue Aug 06, 2013 11:40 am
by sal_jim
Thanks, Kevin,

But it is not working. :?
I have added the code in the In the file viewforum.php available in the root directory.
Purged the cache; but still topics are not sorted alphabetically in the order from "A" to "Z".
http://projectmanagementforums.com/viewforum.php?f=104

Following is the code i have added:

Code: Select all

// Permissions check
if (!$auth->acl_gets('f_list', 'f_read', $forum_id) || ($forum_data['forum_type'] == FORUM_LINK && $forum_data['forum_link'] && !$auth->acl_get('f_read', $forum_id)))
{
	if ($user->data['user_id'] != ANONYMOUS)
	{
		trigger_error('SORRY_AUTH_READ');
	}

	login_box('', $user->lang['LOGIN_VIEWFORUM']);
}

// Sort Glossary Forum
if ($forum_id == 104)
{
    $sort_by_text = array('t' => $user->lang['SUBJECT']);
    $sort_by_sql = array('t' => 't.topic_title');
    $sort_dir = 'a';
}

// Forum is passworded ... check whether access has been granted to this
// user this session, if not show login box
if ($forum_data['forum_password'])
{
	login_forum_box($forum_data);
}
Secondly after achieving this please tell me how to to also add the All,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0-9 only in one forum; as shown in the picture 2.