WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Mingle Forum] [mingle forum] Newest post on top

[Plugin: Mingle Forum] [mingle forum] Newest post on top

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nobody?

    I’ve been looking for a solution too. Have you had any luck?

    open wpf.class.php
    search for (from line 464)

    function get_posts($thread_id){
    		global $wpdb;
    		$start = $this->curr_page*$this->opt['forum_posts_per_page'];
    		$end = $this->opt['forum_posts_per_page'];
    		$limit = "$start, $end";
    		if($thread_id){
    			$posts = $wpdb->get_results("SELECT * FROM $this->t_posts WHERE parent_id = $thread_id ORDER BY <code>date</code> ASC LIMIT $limit");
    			return $posts;
    		}else{
    			return false;
    		}
    	}

    replace
    ASC LIMIT
    with
    DESC LIMIT

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Mingle Forum] [mingle forum] Newest post on top’ is closed to new replies.