Source code of Leftypol imageboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ccd0 16adc1ff05 escape ampersand 11 years ago
LICENSE.md add files 11 years ago
README.md improved frame extraction (including alpha) 11 years ago
collapse.gif add files 11 years ago
expandvideo.js fix expanded video size issue in Opera 11 years ago
matroska-elements.txt add files 11 years ago
matroska.php improved frame extraction (including alpha) 11 years ago
player.php escape ampersand 11 years ago
playersettings.js treat controls as links when clicked with modifier keys 11 years ago
playerstyle.css max width and height for player.php video 11 years ago
post_reply.html fallback to attachment image when video doesn't work 11 years ago
post_thread.html fallback to attachment image when video doesn't work 11 years ago
posthandler.php add files 11 years ago
settings.js fudge back 11 years ago
video.png add video icon 11 years ago
videodata.php avoid provoking alpha+odd bug 11 years ago

README.md

This project is an effort to enable imageboards to host small video clips. With modern video compression, it's possible to share much higher-quality videos in a few megabytes than the with animated GIF files.

The software here extends Tinyboard to display metadata and create pseudo-thumbnails for WebM video files. It is intended to work on very basic web hosting services, including any hosting service that can run Tinyboard. In particular, it does not depend on any video conversion software such as FFmpeg. For this reason, it cannot create true thumbnails, but uses pseudo-thumbnails consisting of a single frame extracted from the video.

A board using this code can be found at: http://containerchan.org/tb/demo/

Be aware that this is beta software. Please report any bugs you find.

The modified Tinyboard templates (post_reply.html and post_thread.html) are subject to the Tinyboard licence (see LICENSE.md). The portions of this software not derived from Tinyboard are released into the public domain.

Installation

Create a directory named cc at the root of your Tinyboard installation. Upload these files into that directory.

Replace the files templates/post_thread.html and templates/post_reply.html with the files given here.

Move video.png to the static directory.

Add these lines to inc/instance-config.php:

$config['allowed_ext_files'][] = 'webm';
$config['file_icons']['webm'] = 'video.png';
$config['additional_javascript'][] = 'cc/settings.js';
$config['additional_javascript'][] = 'cc/expandvideo.js';
require_once 'cc/posthandler.php';
event_handler('post', 'postHandler');

And add this to stylesheets/style.css:

video.post-image {
    display: block;
    float: left;
    margin: 10px 20px;
    border: none;
}
div.post video.post-image {
    padding: 0px;
    margin: 10px 25px 5px 5px;
}
span.settings {
    position: fixed;
    top: 1em;
    right: 1em;
}