You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change the theme in the profile (with modules/profile installed), and save, the new theme is saved in database but not in session.
So Xoops still displays the old theme.
On file /modules/profile/edituser.php , line 85 . I change : unset($_SESSION['xoopsUserTheme']);
To : $_SESSION['xoopsUserTheme']=$edituser->getVar('theme');
It works for me and the change takes effect immediately.
Is there any reason for the unset ?
Steps to Reproduce
With module profile installed :
Edit profile
Change current theme to another (you must have enabled multiple themes choice in system preferences)
Save
The theme doesn't change but if you go back in your profile, it is.
The text was updated successfully, but these errors were encountered:
I found out why the theme was not saved in session
function themeSelect() in xoopskernel.php handles it. It expects a $_POST['xoops_theme_select'].
But the form in modules/profile/edituser.php send a $_POST['theme'].
To correct this, we have to replace theme by xoops_theme_select in the column field_name in table xoops_profile_field .
XOOPS Version
2.5.12 beta4
PHP Version
8.3
Operating System
Linux
Description
Hi,
When I change the theme in the profile (with modules/profile installed), and save, the new theme is saved in database but not in session.
So Xoops still displays the old theme.
On file
/modules/profile/edituser.php
, line 85 . I change :unset($_SESSION['xoopsUserTheme']);
To :
$_SESSION['xoopsUserTheme']=$edituser->getVar('theme');
It works for me and the change takes effect immediately.
Is there any reason for the unset ?
Steps to Reproduce
With module profile installed :
The text was updated successfully, but these errors were encountered: