-
Notifications
You must be signed in to change notification settings - Fork 17
Banners, Rotating Spolier Images, Ban Images, etc
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.
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!
For this you can make use of this handy script which appears to be under a pretty freedom-respecting and fair license.
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