Hello.
Splah not work for translated roles.
in file splashify.display.inc
if($config['when_roles']){
// If use role setting is checked set variable not to show.
$is_role = FALSE;
// Check if any roles match and then sat show to true.
dd($user->roles);
dd($config['when_roles_options']);
foreach($user->roles as $v) {
if(in_array($v, $config['when_roles_options'])) {
$is_role = TRUE;
}
}
}
For dd($user->roles):
Array
(
[2] => authenticated user
)
For dd($config['when_roles_options']) russian localization:
Array
(
[авторизованный пользователь] => авторизованный пользователь
)
Simple path:
if(in_array(t($v), $config['when_roles_options'])) {
Comments
Comment #2
ivnishComment #3
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.