#4760 - SU issue with "Guest" on multilingual sites
0 guests and 0 members have recently viewed this.
The top 3 point earners from 7th Dec 2025 to 14th Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| Master Rat |
|
|
There are no events at this time
Perhaps this is a valid point. Composr is mapping the username by language pack and ignoring what is in the DB, so it is inconsistent in its handling at least.
In some parts of Composr we use the 'GUEST' language string, and others we use the field value from the guest member row in the f_members table.
That is fine, but it means that we need to automatically recognise the contents of the 'GUEST' language string as guest (in whatever language is currently active) as that guest user, as well as the value from the database.
if ($ks == do_lang('GUEST', null, null, null, fallback_lang())) {
$ks = do_lang('GUEST');
}
It maps "Guest" to the equivalent in the current user's language pack and tries to look up that in the database, which will only succeed if the Guest user in the database was initially created with the language the current user is on.
My fix does resolve the issue, as well as the issue I thought this was about.