1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

add video icon

This commit is contained in:
ccd0 2013-11-28 00:25:52 -08:00
parent 6091915a96
commit a7913a081a
2 changed files with 4 additions and 0 deletions

View File

@ -17,9 +17,12 @@ Create a directory named cc at the root of your Tinyboard installation. Upload
Replace the files templates/post_thread.html and templates/post_reply.html with the files given here. 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: Add these lines to inc/instance-config.php:
$config['allowed_ext_files'][] = 'webm'; $config['allowed_ext_files'][] = 'webm';
$config['file_icons']['webm'] = 'video.png';
$config['additional_javascript'][] = 'cc/settings.js'; $config['additional_javascript'][] = 'cc/settings.js';
$config['additional_javascript'][] = 'cc/expandvideo.js'; $config['additional_javascript'][] = 'cc/expandvideo.js';
require_once 'cc/posthandler.php'; require_once 'cc/posthandler.php';
@ -32,6 +35,7 @@ And add this to stylesheets/style.css:
float: left; float: left;
margin: 10px 20px; margin: 10px 20px;
border: none; border: none;
background: #aaa;
} }
div.post video.post-image { div.post video.post-image {
padding: 5px; padding: 5px;

BIN
video.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B