Download the PHP package texxasrulez/force_elastic without Composer
On this page you can find all versions of the php package texxasrulez/force_elastic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download texxasrulez/force_elastic
More information about texxasrulez/force_elastic
Files in texxasrulez/force_elastic
Package force_elastic
Short Description Roundcube plugin that forces the Elastic skin on mobile devices at runtime (without changing user prefs).
License GPL-3.0
Homepage https://github.com/texxasrulez/force_elastic
Informations about the package force_elastic
force_elastic — Roundcube plugin
Forces the Elastic skin for requests coming from mobile devices — without changing the user's saved skin preference or your system default. This keeps small screens functional even when users have selected legacy/non-responsive skins.
- Repo: https://github.com/texxasrulez/force_elastic
- Type:
roundcube-plugin - Requires: Roundcube 1.4+ (Elastic introduced in 1.4), PHP 7.3+
What it does
- Detects mobile clients early in request flow (
startupandauthenticatehooks). - Sets the runtime skin to
elasticand, when present, updates the Output object's skin. - Uses Roundcube's browser detector if available; otherwise falls back to a tight UA regex.
- Never persists preferences. Desktop users keep their chosen skin.
Install via Composer (recommended)
This path installs straight from Packagist/Git and lets Roundcube's plugin-installer wire it up.
1) From your Roundcube root directory:
2) Enable the plugin in config/config.inc.php:
3) Clear Roundcube caches (good hygiene after plugin changes):
Installing directly from Git (optional)
If you prefer to track the GitHub repo without Packagist:
Manual install (no Composer)
1) Copy the force_elastic plugin folder into Roundcube:
2) Enable it in config/config.inc.php as shown above.
Configuration
An optional config file is provided. Copy plugins/force_elastic/config.inc.php.dist to plugins/force_elastic/config.inc.php and adjust as needed.
No configuration is required for default behavior.
How detection works
- Prefer Roundcube's built-in browser detector (if available on your version/path).
- Fall back to a conservative
User-Agentregex for common phones/tablets. - Apply skin change at runtime only; no DB writes and no preference mutations.
Uninstall
- Remove
'force_elastic'from$config['plugins']inconfig/config.inc.php. - If installed via Composer:
composer remove texxasrulez/force_elastic. - Delete
plugins/force_elastic/if manually installed.
Troubleshooting
- Elastic isn’t applied on mobile: Check proxies/CDNs that might rewrite
User-Agent. If so, rely on Roundcube's detector by disabling UA sniff in the plugin config. - Conflicts with other skin/branding plugins: Ensure
force_elasticis loaded after any plugin that explicitly sets a skin for all requests. - Caching: Clear browser cache and Roundcube caches after first install.