Skip to content

Banners, Rotating Spolier Images, Ban Images, etc

Gen2 edited this page May 14, 2017 · 1 revision

While it looks like the main site does have a rotating banner and spoiler script, it looks like the Git repo has been left out. Here is how to setup banner, spoiler, and ban image scripts on your imageboard. If the banner / rotation scripts are uploaded to the repo at a later date, you can ignore this documentation or use it as a reference.

Banner Setup

To make use of banners, you need a banner script.

I recommend the one from lainchan.org. See here

Place b.php inside your server root

sudo mkdir banners banners_priority

Note: Banners inside banners_priority are served 1/3rd of the time.

Place all your banners in their appropriate directories. After that, we need to edit instance-config.php to point to our banner script.

$config['url_banner'] = '/b.php';

$config['banner_width'] = 300;

$config['banner_height'] = 100;

If you decide to use banners, enabling board links is highly recommended!

Enabling rotating spoilers (like on 4chan's /tv/, /mlp/, or /co/)

For this you can make use of this handy script which appears to be under a pretty freedom-respecting and fair license.

Setup:

Create directory to contain your spoiler images: mkdir spoilers

Place rotate.php inside that directory.

Copy all of your spoiler images in that directory.

Edit instance-config.php:

$config['spoiler_image'] = '/spoilers/rotate.php';

Don't forget that you need to place $config['spoiler_images'] = true; in target_board/config.php

TODO: Documentation on images at the banning page