Is ther any mod to achieve alphabetial topics sorting ?

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
sal_jim
Registered User
Posts: 9
Joined: Tue Jun 11, 2013 12:13 pm
Contact:

Is ther any mod to achieve alphabetial topics sorting ?

Post 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 4943 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 4943 times
Please check the following link for the working:
https://www.phpbb.com/languages/index.p ... ckage_list

Thank you PHPBB supporters and contributors !

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69899
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

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

Post 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.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

sal_jim
Registered User
Posts: 9
Joined: Tue Jun 11, 2013 12:13 pm
Contact:

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

Post 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.

Locked

Return to “[3.0.x] MOD Requests”