Location: includes/functions_display.php:1454
Code: Select all
$user_rank_data = array(
'title' => null,
'img' => null,
'img_src' => null,
);
/**
* Preparing a user's rank before displaying
*
* @event core.modify_user_rank
* @var array user_data Array with user's data
* @var int user_posts User_posts to change
* @since 3.1.0-RC4
*/
$vars = array('user_data', 'user_posts');
extract($phpbb_dispatcher->trigger_event('core.modify_user_rank', compact($vars)));
Explanation:
Okay, I get, I can change the user rank to another, I can increase his post number.
But why can't i directly set the user rank? I thought that this would be possible, event name sounds like that.
I would suggest to add the rank_data and if filled, don't do the code below, just return the data array.