Kunena does not appear to be using the Rank value in the database. I've restructured the query to fix this issue.
Option 1: Replace query
In: cb.simpleboardtab.model.php
On: 105
From:
[code:1]
$query = 'SELECT ' . $_CB_database->NameQuote( 'rank_title' )
. ', ' . $_CB_database->NameQuote( 'rank_image' )
. "\n FROM " . $_CB_database->NameQuote( '#__' . $forum->prefix . '_ranks' )
. "\n WHERE " . $_CB_database->NameQuote( 'rank_id' ) . " = " . ( (int) $userDetails->rank ? (int) $userDetails->rank : 1 )
;
[/code:1]
To:
[code:1]
$query = 'SELECT ' . $_CB_database->NameQuote( 'rank_title' )
. ', ' . $_CB_database->NameQuote( 'rank_image' )
. "\n FROM " . $_CB_database->NameQuote( '#__' . $forum->prefix . '_ranks' )
. "\n WHERE " . $_CB_database->NameQuote( 'rank_min' ) . ' <= ' . (int) $userDetails->posts
. "\n ORDER BY " . $_CB_database->NameQuote( 'rank_min' ) . ' DESC'
;
[/code:1]
Option 2: Replace file
Attachment cb-ad3f20701c84ffdb91c22176d4d6fe44.zip not found