phpBB 3.2.0
phpBB 3.3.0
► Support de l'extension
Code: Tout sélectionner
/* remove joined date from viewtopic*/
$joined = $event['user_poster_data']['joined'];
$event['post_row'] = !empty($event['user_poster_data']['annual_star']) ? array_merge($event['post_row'], array('POSTER_JOINED' => '')) : array_merge($event['post_row'], array('POSTER_JOINED' => $joined));
► ext/rmcgirr83/annualstar/event
Code: Tout sélectionner
// year 20 and over
if ($reg_years >= 20)
{
$css_array = [
'star_color' => 'style="color:#27408B;cursor: pointer;"',
'year_color' => 'style="color:white;"'];
}
// year 10 through 20
else if ($reg_years >= 10)
{
$css_array = [
'star_color' => 'style="color:#3A5FCD;cursor: pointer;"',
'year_color' => 'style="color:white;"'];
}
// year 5 through 10
else if ($reg_years >= 5)
{
$css_array = [
'star_color' => 'style="color:#4876FF;cursor: pointer;"',
'year_color' => 'style="color:white;"'];
}
//year 1 to 5
else if ($reg_years >= 1)
{
$css_array = [
'star_color' => 'style="color:#0076B1;cursor: pointer;"',
'year_color' => 'style="color:white;"'];
}