An e107 plugin that lets visitors switch the site language from a menu — either as a row of country flags or as a drop-down list.
ulflags is a renamed, standalone copy of the long-running Userlanguage Flags Menu plugin (folder userlanguage_flags_menu), with a much shorter folder name. Behaviour and admin options are identical.
The plugin renders a language selector based on the languages installed on your e107 site. Visitors pick a language and the site switches to it (using e107's standard setlanguage mechanism, so the choice is validated against installed languages).
It can be used in three ways:
- as an e107 menu (
ulflags.php), placed in a menu area via the Menu Manager; - via the shortcode
{ULFLAGS}in a theme or page; - via
{ULF_LANGITEM}for full control over the markup from a theme template (templates/ulflags_template.php).
- PHP 7.4 – 8.4
- e107 v2.4
- Multi-language site (more than one language installed)
Under Admin → User Language Flags:
| Preference | Description |
|---|---|
| Show menu title | Show or hide the menu caption. |
| Drop-down instead of flags | Render a <select> list instead of flag images. |
| Flag style | Choose one of four bundled flag image sets (0–3). |
| Flag size | Maximum flag width in pixels (1–99). |
| Align | Left / center / right alignment of the flags. |
ulflags is a standalone plugin with its own folder, classes (ulflags_*), preference
namespace, language-constant prefix (ULFLAGS_) and template id. It can be installed
independently of the original userlanguage_flags_menu without clashing. Install only one
of the two.
One of the oldest e107 community plugins, originally by JmoRava / Oxigen (e107.funsite.cz) and
maintained since by several authors. See changelog.md.