diff --git a/b.php b/b.php new file mode 100644 index 00000000..f49e5361 --- /dev/null +++ b/b.php @@ -0,0 +1,19 @@ + diff --git a/inc/config.php b/inc/config.php index 9981f655..aaf709a6 100644 --- a/inc/config.php +++ b/inc/config.php @@ -940,12 +940,13 @@ // Characters used to generate a random password (with Javascript). $config['genpassword_chars'] = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+'; - // Optional banner image at the top of every page. - // $config['url_banner'] = '/banner.php'; - // Banner dimensions are also optional. As the banner loads after the rest of the page, everything may be - // shifted down a few pixels when it does. Making the banner a fixed size will prevent this. - // $config['banner_width'] = 300; - // $config['banner_height'] = 100; + // Banner settings. + // Banners are rotating, random images displayed to users at the top of thread pages and the catalog. + // You should upload your banners to static/banners. + $config['url_banner'] = '/b.php'; // Custom script may be used. + // Setting the banner dimensions stops the page shifting as it loads. If you have banners of various different sizes, unset these. + $config['banner_width'] = 300; + $config['banner_height'] = 100; // Custom stylesheets available for the user to choose. See the "stylesheets/" folder for a list of // available stylesheets (or create your own). diff --git a/static/banners/defaultbanner.png b/static/banners/defaultbanner.png new file mode 100644 index 00000000..8773c82b Binary files /dev/null and b/static/banners/defaultbanner.png differ diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html index 71669588..342b8b5a 100644 --- a/templates/mod/dashboard.html +++ b/templates/mod/dashboard.html @@ -1,3 +1,4 @@ +{% if config.url_banner %}{% endif %}
{% trans 'Boards' %} diff --git a/templates/mod/login.html b/templates/mod/login.html index 476897a6..6ffd950f 100644 --- a/templates/mod/login.html +++ b/templates/mod/login.html @@ -1,4 +1,5 @@ {% if error %}

{{ error }}

{% endif %} +{% if config.url_banner %}{% endif %}