Thankyou
This has corrected the Moderator and Administrator issue but the issue still exists where every user (not admin or moderator) still says they are 'fresh users' instead of the ranks i have created in kunena.
Any ideas?
Post edited by: peetree21, at: 2009/05/27 12:26
Please Log in to join the conversation.
Please Log in to join the conversation.
Kunena does not appear to be using the Rank value in the database. I've restructured the query to fix this issue.
...
Please Log in to join the conversation.
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]
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.