Added FAQ theme

This commit is contained in:
Benjamin Southall 2016-12-19 08:47:30 +09:00
parent 3408907d7f
commit 3818830da5
4 changed files with 187 additions and 0 deletions

View File

@ -0,0 +1,118 @@
{% filter remove_whitespace %}
<!doctype html>
<html>
<head>
<link rel="stylesheet" media="screen" href="/stylesheets/style.css">
<meta charset="utf-8">
<title>{{ settings.title }}</title>
{% if config.meta_keywords %}<meta name="keywords" content="{{ config.meta_keywords }}">{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
{% if config.url_favicon %}<link rel="shortcut icon" href="{{ config.url_favicon }}">{% endif %}
<link rel="stylesheet" media="screen" href="/stylesheets/dark.css">
<!--{% if config.default_stylesheet.1 != '' %}<link rel="stylesheet" type="text/css" id="stylesheet" href="{{ config.uri_stylesheets }}{{ config.default_stylesheet.1 }}">{% endif %}-->
{% if config.font_awesome %}<link rel="stylesheet" href="{{ config.root }}{{ config.font_awesome_css }}">{% endif %}
</head>
<body class="8chan vichan {% if mod %}is-moderator{% else %}is-not-moderator{% endif %}" data-stylesheet="{% if config.default_stylesheet.1 != '' %}{{ config.default_stylesheet.1 }}{% else %}default{% endif %}">
<div class="bar top">
{{ boardlist.top }}
</div>
<header>
<h1>{{ settings.title }}</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
</header>
<center><img src="static/lain_is_cute_datass_small_teal.png" alt="mascot"/></center>
<div class="ban">
<h2 id="1">
My question isn't here, What do I do ?
</h2>
<p>Make a post in /q/ or ask via email or IRC </p>
<h2 id="2">
What are the rules ?
</h2>
<p>Please click <a href="https://lainchan.org/rules">here</a> </p>
<h2 id="3">
How do I donate ?
</h2>
<p>Please click <a href="https://lainchan.org/donate">here</a> </p>
<h2 id="4">
How does post formatting work ?
</h2>
<p> It is standard vichan post formatting. </p>
<p> '''text''' makes it bold </p>
<p> ''text'' makes it italic </p>
<p> **text** makes it spoiler </p>
<p> [spoiler]text [/spoiler] makes it spoiler </p>
<p> [code]text [/code] makes it code </p>
<h2 id="5">
What is the purpose of Lainchan ?
</h2>
<p>See https://lainchan.org/q/res/11853.html#11853 </p>
<p>Like all questions the answer depends on who you ask.</p>
<p>My answer:</p>
<p>First what lainchan.org is:</p>
<p>lainchan.org is a domain name, the host that domain name points to hosts an imageboard called lainchan based on vichan, it hosts a Mumble server, it hosts an audio stream.</p>
<p>The purpose of lainchan.org the domain name is so you don't have to type an IP address to access the services hosted on the previously mentioned host.</p>
<p>The purpose of lainchan.org is to be a place / community where people can interact online.</p>
<p>What makes lainchan.org community different from all the other places / communities where people can interact online ?</p>
<p>This is another good question, and one you haven't asked yet, but I will try to answer anyhow.</p>
<p>Our main distinguishing factors are related to our appreciation of Lain and Serial Experiments Lain. </p>
<p>The series is influenced by themes such as reality, identity, and communication, and it demonstrates them by using philosophy, computer history, cyberpunk literature, and conspiracy theory. (from https://en.wikipedia.org/wiki/Serial_Experiments_Lain)</p>
<p>Most of the boards on the image board reflect aspects or influences of the series.</p>
<p>Because the series is influenced by cyberpunk literature, it very easy to label the lainchan.org community as just a cyberpunk image board, but I believe that label is incomplete at best and a restriction at worst.</p>
<p>My answer isn't the only answer, and I happy to see others posting their answer to the same question.</p>
<p>My question to you which you don't need to answer here.</p>
<p>The lainchan community is to you what you want it to be. What do you want it to be ?</p>
<p>Answers according to other sources: </p>
<p>https://wiki.installgentoo.com/index.php/Lainchan </p>
<p>https://www.reddit.com/r/Cyberpunk/comments/26cx64/lainchan_a_cyberpunkthemed_image_board_that_is/</p>
<p>http://4archive.org/board/g/thread/50808811 </p>
<p>https://encyclopediadramatica.se/List_of_*chan_boards</p>
<h2 id="6">
Why are my posts being changed / language enhanced ?
</h2>
<p> Lainchan has a language enhancer. It makes your posts more interesting and less like soykaf. </p>
<h2 id="7">
\\|/|-|`/ !5 3\\/3|2`/ 14!|\\|0|\\| |\\|0+ 4 133+ |-|4%%0|2 1!|(3 |\\/|3 ? Why are other lainons not as Leet as me ?
</h2>
<p>Lainons are Lainons, being the same would be boring. Different lainons have different backgrounds and skillsets. Don't give up on lainons before getting to know them. </p>
<h2 id="8">
When I post without a name, I get given a random name ?
</h2>
<p> Lainchan has random anonymous names generated, when no name is provided. </p>
<h2 id="9">
Where did /insertboardnamehere/ board go ? Where is /cyb/ ?
</h2>
<p>This depends on the board. Some boards have been deleted, others are not present in the top bar (hidden), and others are locked, either as a read only archive or in dormant sleep mode. /cyb/ is locked and not in the top bar. It hasn't been deleted, all the old posts are still there. But it won't unlocked until Lainons can agree cyberpunk or cyb means, in order to prevent /cult2/ or /r2/ </p>
<h2 id="10">
I want to request merchandise
</h2>
<p>See https://lainchan.org/q/res/11812.html#11812 </p>
<h2 id="11">
Where did my post go ?
</h2>
<p>Either you never posted it, or it felt off the board due to old age, or it was deleted by you or by Lainchan staff as a moderation action, typically for breaking the rules. </p>
<h2 id="12">
Lainchan is lame. insertnamechan is better.
</h2>
<p>Either submit your constructive criticism in a /q/ thread, or go back to your favourite chan of choice. </p>
<h2 id="13">
I want to request stckers
</h2>
<p>See https://lainchan.org/q/res/11998.html#11998 </p>
<h2 id="14">
I want to submit a banner to Lainchan
</h2>
<p>See https://lainchan.org/q/res/8420.html#8420 </p>
</div>
<hr/>
<footer>
<p class="unimportant" style="margin-top:20px;text-align:center;">- Tinyboard +
<a href="https://engine.vichan.net/">vichan</a> {{ config.version }} -
<br>Tinyboard Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://engine.vichan.net/">vichan</a> Copyright &copy; 2012-2016 vichan-devel</p>
</footer>
</body>
</html>
{% endfilter %}

View File

@ -0,0 +1,36 @@
<?php
$theme = Array();
// Theme name
$theme['name'] = 'FAQ';
// Description (you can use Tinyboard markup here)
$theme['description'] = 'FAQ because Lainons have questions';
$theme['version'] = 'v0.0.1';
// Theme configuration
$theme['config'] = Array();
$theme['config'][] = Array(
'title' => 'Site title',
'name' => 'title',
'type' => 'text'
);
$theme['config'][] = Array(
'title' => 'Slogan',
'name' => 'subtitle',
'type' => 'text',
'comment' => '(optional)'
);
$theme['config'][] = Array(
'title' => 'File',
'name' => 'file',
'type' => 'text',
'default' => "faq.html",
'comment' => '(eg. "faq.html")'
);
// Unique function name for building everything
$theme['build_function'] = 'faq_build';

View File

@ -0,0 +1,33 @@
<?php
require 'info.php';
function faq_build($action, $settings, $board) {
// Possible values for $action:
// - all (rebuild everything, initialization)
// - news (news has been updated)
// - boards (board list changed)
FAQ::build($action, $settings);
}
// Wrap functions in a class so they don't interfere with normal Tinyboard operations
class FAQ {
public static function build($action, $settings) {
global $config;
if ($action == 'all' || $action == 'news')
file_write($config['dir']['home'] . $settings['file'], FAQ::homepage($settings));
}
// Build FAQ page
public static function homepage($settings) {
global $config;
return Element('themes/faq/index.html', Array(
'settings' => $settings,
'config' => $config,
'boardlist' => createBoardlist(),
));
}
};
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB