Replacing banner ads on the ispmanager 6 dashboard
Why?
- To set a custom banner
- To disable a banner
Instructions
A banner link can be disabled or modified by changing or adding the DashboardBannerUrl
parameter in the configuration file /usr/local/mgr5/etc/ispmgr.conf
:
- If the parameter value is left empty, the banner will be disabled;
- When a direct link to a banner is specified, the standard ispmanager banner will be replaced with a custom one.
For example:
DashboardBannerUrl https://example.com/banner/banner.html
A file with banner content can be in any format supported by the HTML markup language, such as html
, jpg
, gif
, svg
, etc.
If different language locales require use of different banners, the __lang__
placeholder can be used to create variants. For example:
DashboardBannerUrl https://example.com/banner/__lang__.html
In this case, it is necessary to submit multiple versions of the banner with names corresponding to languages.
For example:
DashboardBannerUrl https://example.com/banner/en.html
- for a banner in English;DashboardBannerUrl https://example.com/banner/fr.html
- for a banner in French;DashboardBannerUrl https://example.com/banner/ru.html
- for a banner in Russian.
The banner will be updated after refreshing the page.