[Return]

Report a post

Preview
after taking sum html from vichan I created catalog sorting... kind of. So far it only sorts bump (which is teh default anywayz so no changes) and creation date, it should be very easy to add more with teh use of mod_api.

//sort threads. If sort is set to bump nothing will change because that is the default order returned by fetchThreadList
if(isset($_POST['sort_by'])) {
switch($_POST['sort_by']) {
case 'bump':
$plist = $PIO->fetchThreadList($this->PAGE_DEF * $page, $this->PAGE_DEF); //thread list
break;
case 'time':
rsort($plist);
break;
//add more conditions here
}

}
Post number No.66694
Board Site Discussion@Heyuri
Optional. Describe what's wrong with it.