[SOLVED] How to sort Thread Prefixes menu in a new thread by name (not by ID)
Divvy Offline
Junior Member
**
Posts: 37
Joined: Jan 2012
Post: #4
RE: [SOLVED] How to sort Thread Prefixes menu in a new thread by name (not by ID)
You are right, sorry Smile

Here is the solution:

Find in /inc/class_datacache.php

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function update_threadprefixes()
    {
        global $db;

        $prefixes = array();
        $query = $db->simple_select("threadprefixes", "*", "", array("order_by" => "pid"));

        while($prefix = $db->fetch_array($query))
        {
            $prefixes[$prefix['pid']] = $prefix;
        }

        $this->update("threadprefixes", $prefixes);
    }


Replace with:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function update_threadprefixes()
    {
        global $db;

        $prefixes = array();
        $query = $db->simple_select("threadprefixes", "*", "", array("order_by" => "prefix"));

        while($prefix = $db->fetch_array($query))
        {
            $prefixes[$prefix['pid']] = $prefix;
        }

        $this->update("threadprefixes", $prefixes);
    }

03-25-2012 05:05 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: [SOLVED] How to sort Thread Prefixes menu in a new thread by name (not by ID) - Divvy - 03-25-2012 05:05 AM

 Standard Tools
Forum Jump: