diff --git a/templates/themes/4chon/home.css b/templates/themes/4chon/home.css deleted file mode 100644 index 067bd73d..00000000 --- a/templates/themes/4chon/home.css +++ /dev/null @@ -1,109 +0,0 @@ -div.ban { - max-width: 1200px; - min-width: 348px; - width: 85%; -} -div.ban .wrap { - margin: 10px; - overflow: auto; -} -div.board { - width: 100%; - overflow: auto; - margin: 10px 0; -} -div.board p { - text-align: justify; -} -div.board a.button { - text-align: center; - font-weight: bold; - font-size: 15pt; - height: 60px; - width: 75px; - display: inline-block; - background: #98E; - line-height: 60px; - - margin: 5px 25px; - - box-shadow:0 2px 5px 0px #D0D0D0; - -webkit-box-shadow:0 2px 5px 0px #D0D0D0; - - border-radius:15px; - -webkit-border-radius:15px; - float: left; -} -div.board a.button:hover { - box-shadow:0 2px 5px 0px #222; - -webkit-box-shadow:0 2px 5px 0px #222; -} -img:hover { - box-shadow:0 2px 5px 0px #555; - -webkit-box-shadow:0 2px 5px 0px #555; -} -div.container { - margin: auto; - max-width: 1000px; -} -div.split { - margin-top: 40px; - overflow: auto; - border: 1px solid #ccc; - border-style: solid none none none; -} -div.panel { - margin: 0; - - float: left; - width: 40%; -} -div.panel h3 { - margin: 10px 0; -} -div.panel.left { - min-width: 150px; - max-width: 400px; - padding: 10px 0; -} -div.panel.left ul { - padding: 5px; - margin: 0; - word-wrap: break-word; -} -div.panel.right { - border: 1px solid #ccc; - border-style: none none none solid; - min-width: 175px; - max-width: 50%; - width: 100%; - padding: 10px 0; -} -div.panel.right ul, div.panel.right p, div.panel.right h3 { - padding: 5px 10px; -} -div.panel.right ul { - padding: 0 25px; -} -div.panel.right ul li { - margin: 10px 0; -} -div.panel.left ul li { - list-style: none; -} -div.panel.left .images { - float: left; - max-width: 80px; - margin: 10px 20px 0px 0px; -} -div.panel.left .images a, div.panel.left .images img { - padding: 0; - margin: 2px 3px; - display: inline; -} -div.panel.left .images img { - float: none; -} -div.panel.right ul ul li { - margin: 2px 0; -} \ No newline at end of file diff --git a/templates/themes/4chon/info.php b/templates/themes/4chon/info.php deleted file mode 100644 index 2bc8e978..00000000 --- a/templates/themes/4chon/info.php +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/templates/themes/4chon/theme.php b/templates/themes/4chon/theme.php deleted file mode 100644 index df72b8ee..00000000 --- a/templates/themes/4chon/theme.php +++ /dev/null @@ -1,215 +0,0 @@ - 80, - 'thumbheight' => 80 - ); - - function chon_build($action, $settings) { - $settings = Array( - 'title' => '4chon', - 'subtitle' => '', - 'boards' => Array( - 'new' => 'A place for the debate of political intrigue and current events. This board has a wide and varied user base with many unique, and sometimes controversial, views expressed.', - 'r9k' => 'A unique board for open discussion based on an original content script. If a post has been made before, the reposter is muted. The length of the mute increases at the rate of 2^n seconds with each additional mute a user receives. Loosely based upon robot9000 of #xkcd-signal.', - 'v' => 'A board in which to discuss many of our favourite hobbies: video games. New and old, PC and console, the discussion is always fresh and on-topic.', - 'meta' => 'A board for the discussion and improvement of the community, 4chon or otherwise. Questions, comments, and modposts are frequently found here.' - ), - 'thumbwidth' => 80, - 'thumbheight' => 80 - ); - - // Possible values for $action: - // - all (rebuild everything, initialization) - // - news (news has been updated) - // - boards (board list changed) - - Chon::build($action, $settings); - } - - // Wrap functions in a class so they don't interfere with normal Tinyboard operations - class Chon { - public static function build($action, $settings) { - global $config; - - //if($action == 'all' || $action == 'news') - file_write($config['dir']['home'] . $config['file_index'], Chon::homepage($settings)); - } - - // Build news page - public static function homepage($settings) { - global $config, $board; - - // HTML5 - $body = '' - . '' - . '' - . '' - . '' - . '' - . '' - . '' - . '' . $settings['title'] . '' - . ''; - - $body .= '

' . $settings['title'] . '

' - . '
' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '
'; - - $body .= '
'; - - $body .= '

4chon

'; - - $body .= ''; - - $body .= '

Welcome to 4chon.net!

'; - $body .= '

The largest and most popular community based on Tinyboard; we\'re picking up where 4chan is dying! In mid-January, /r9k/ and /new/ were simultaneously deleted from 4chan. Less than an hour later, 4chon was created to give these boards a new life, and we have been growing ever since. With over one million posts in just a few months, we\'re the largest chon in existence.

'; - - $body .= '

Our Boards

'; - $__boards = listBoards(); - foreach($settings['boards'] as $board => $description) { - foreach($__boards as $_board) { - if($_board['uri'] == $board) { - $board = $_board; - break; - } - } - $body .= '
'; - $body .= '/' . $board['uri'] . '/'; - $body .= '

' . $description . '

'; - $body .= '
'; - } - - $body .= '
'; - - $body .= '
'; - - - $query = ''; - foreach($settings['boards'] as $board => $description) { - $query .= sprintf("SELECT *, '%s' AS `board` FROM `posts_%s` WHERE `file` IS NOT NULL AND `file` != 'deleted' UNION ALL ", $board, $board); - } - $query = preg_replace('/UNION ALL $/', 'ORDER BY `time` DESC LIMIT 10', $query); - $query = query($query) or error(db_error()); - - $body .= '
'; - while($post = $query->fetch()) { - openBoard($post['board']); - $x_ratio = $settings['thumbwidth'] / $post['thumbwidth']; - $y_ratio = $settings['thumbheight'] / $post['thumbheight']; - - if(($post['thumbwidth'] <= $settings['thumbwidth']) && ($post['thumbheight'] <= $settings['thumbheight'])) { - $tn_width = $post['thumbwidth']; - $tn_height = $post['thumbheight']; - } elseif (($x_ratio * $post['thumbheight']) < $settings['thumbheight']) { - $tn_height = ceil($x_ratio * $post['thumbheight']); - $tn_width = $settings['thumbwidth']; - } else { - $tn_width = ceil($y_ratio * $post['thumbwidth']); - $tn_height = $settings['thumbheight']; - } - - $post['thumbwidth'] = $tn_width; - $post['thumbheight'] = $tn_height; - - $body .= ''; - } - $body .= '
'; - - - - // Latest posts - $body .= '
    '; - $query = ''; - foreach($settings['boards'] as $board => $description) { - $query .= sprintf("SELECT *, '%s' AS `board` FROM `posts_%s` UNION ALL ", $board, $board); - } - $query = preg_replace('/UNION ALL $/', 'ORDER BY `time` DESC LIMIT 35', $query); - $query = query($query) or error(db_error()); - - while($post = $query->fetch()) { - openBoard($post['board']); - - $body .= '
  • ' . $board['name'] . ': ' . (empty($post['body']) ? '…' : pm_snippet($post['body'], 25)) . '
  • '; - } - $body .= '
'; - - $body .= '
'; - - $body .= '
'; - $body .= '

4chon Community

'; - $body .= '

Aside from our boards, we also have an active community in the following places:

'; - - $body .= '
    '; - $body .= '
  • /tv/ - We automatically maintain a list of livestreams that were posted on the boards, where users of 4chon can watch television shows, movies, and circlejerks.
  • '; - $body .= '
  • Minecraft - Our unofficial Minecraft server. Come build with bros and visit our giant penis sculpture! eironeia.datnode.net:24598
  • '; - $body .= '
'; - - $body .= '

4chon

'; - $body .= '

Please read the general and board-specifc rules as well as the 4chon FAQ before posting.

'; - - $body .= '

4chon keeps a statistics page which gives detailed information about all of our boards, such as posts per minute, user locations, referring sites and more!. There\'s also a map of our posters around the globe!

'; - $body .= '

If, for any reason, you need to contact the 4chon staff, they can be reached in IRC - irc.datnode.net #4chon / [WebIRC].

'; - - $body .= '

The admin may be contacted at admin@4chon.net or >>>/meta/.

'; - - $body .= '

For status updates and explanations of downtime, please see our status page or follow us on our rarely-used @4chonable Twitter account

'; - - $body .= '
'; - - $body .= '
'; - - $body .= '
'; - - $body .= '

In memory of Scott “Wingo” Canner (1989-2011).

'; - - $body .= ''; - - // Finish page - $body .= '

Powered by Tinyboard | You must be at least 18 years of age to continue browsing.' . - - '' . - - ''; - - return $body; - } - }; - -?> diff --git a/templates/themes/4chon/thumb.png b/templates/themes/4chon/thumb.png deleted file mode 100644 index cd116066..00000000 Binary files a/templates/themes/4chon/thumb.png and /dev/null differ diff --git a/templates/themes/drudgereport/info.php b/templates/themes/drudgereport/info.php deleted file mode 100644 index b9128108..00000000 --- a/templates/themes/drudgereport/info.php +++ /dev/null @@ -1,28 +0,0 @@ - 'Title', - 'name' => 'title', - 'type' => 'text' - ); - - $theme['config'][] = Array( - 'title' => 'Excluded boards', - 'name' => 'exclude', - 'type' => 'text', - 'comment' => '(space seperated)' - ); - - // Unique function name for building everything - $theme['build_function'] = 'drudge_build'; -?> diff --git a/templates/themes/drudgereport/theme.php b/templates/themes/drudgereport/theme.php deleted file mode 100644 index e38b7a0d..00000000 --- a/templates/themes/drudgereport/theme.php +++ /dev/null @@ -1,145 +0,0 @@ -build($action, $settings); - } - - // Wrap functions in a class so they don't interfere with normal Tinyboard operations - class Drudge { - public function build($action, $settings) { - global $config, $_theme, $threads; - - // Don't worry about this for now: - //if($action == 'all') { - // copy($config['dir']['themes'] . '/' . $_theme . '/master.css', $config['dir']['home'] . 'drudge_master.css'); - // copy($config['dir']['themes'] . '/' . $_theme . '/reset.css', $config['dir']['home'] . 'drudge_reset.css'); - //} - - $this->excluded = explode(' ', $settings['exclude']); - - if($action == 'all' || $action == 'post') - file_write($config['dir']['home'] . 'landing/index.html', $this->homepage($settings)); - } - - private function spot($num) { - global $config; - - $prime = $num < 7; - - if(!isset($this->threads[$num])) - return ''; - - $post = &$this->threads[$num]; - - return ($prime ? - '' - : '') - . '

' . $post['subject'] . '...


'; - } - - // Build news page - public function homepage($settings) { - global $config, $board; - - openBoard('a'); - - // HTML5 - $body = '' - . '' - //. '' - . '' - . '' - . '' . $settings['title'] . '' - . '' - - // heading - . '
' - - /* - Sub-headlines related to the main headline appear here. - They are pulled from the subject lines of the replies to the top thread. - - Drudge follows all stories with "...", other than the main headline - We will use the ellipse to link to the forum thread, while the headline links directly to the story - */ - - . '
' - . '

Subject Line of latest reply in top thread...

' - . '
' - - . '
' - . '' - . '
'; - - $this->threads = Array(); // 0 = main heading, 1-6 = prime spots, 7-18 = normal - - $query = query("SELECT *, `id` AS `thread_id`, (SELECT COUNT(*) FROM `posts_a` WHERE `thread` = `thread_id`) AS `replies` FROM `posts_a` WHERE `thread` IS NULL AND `email` != '' AND `subject` != '' ORDER BY `sticky` DESC, `replies` DESC, `bump` DESC LIMIT 19") or error(db_error()); - while($post = $query->fetch()) { - $this->threads[] = $post; - } - - // first prime gets headline - $body .= '

' . strtoupper($this->threads[0]['subject']) . '

'; - - $body .= '
' - . '
' - ; - - $body .= '
'; - - // begin three column layout here - $body .= '
'; - - - // Headline: P Left column: xxPxPx Center: PxxxPx Right: xPxxPx - - // first column - $body .= '
' . - $this->spot(7) . - $this->spot(8) . - $this->spot(1) . - $this->spot(9) . - $this->spot(2) . - $this->spot(10) . - '
'; - - // second column - $body .= '
' . - $this->spot(3) . - $this->spot(11) . - $this->spot(12) . - $this->spot(13) . - $this->spot(4) . - $this->spot(14) . - '
'; - - // third column - $body .= '
' . - $this->spot(15) . - $this->spot(5) . - $this->spot(16) . - $this->spot(17) . - $this->spot(6) . - $this->spot(18) . - '
'; - - - // end container - $body .= '
'; - - // Finish page - $body .= '

Powered by Tinyboard'; - - return $body; - } - }; - -?> diff --git a/templates/themes/drudgereport/thumb.png b/templates/themes/drudgereport/thumb.png deleted file mode 100644 index fff5b824..00000000 Binary files a/templates/themes/drudgereport/thumb.png and /dev/null differ diff --git a/templates/themes/ruiwy1.zip b/templates/themes/ruiwy1.zip deleted file mode 100644 index 97f13b52..00000000 Binary files a/templates/themes/ruiwy1.zip and /dev/null differ diff --git a/templates/themes/ruiwy1/info.php b/templates/themes/ruiwy1/info.php deleted file mode 100644 index 70af795d..00000000 --- a/templates/themes/ruiwy1/info.php +++ /dev/null @@ -1,27 +0,0 @@ - 'Title', - 'name' => 'title', - 'type' => 'text' - ); - - $theme['config'][] = Array( - 'title' => 'Slogan', - 'name' => 'subtitle', - 'type' => 'text' - ); - - // Unique function name for building everything - $theme['build_function'] = 'rui_build'; -?> diff --git a/templates/themes/ruiwy1/theme.php b/templates/themes/ruiwy1/theme.php deleted file mode 100644 index 45f8b4af..00000000 --- a/templates/themes/ruiwy1/theme.php +++ /dev/null @@ -1,77 +0,0 @@ -' - . '' - . '' - . '' . $settings['title'] . '' - . ''; - - $boardlist = createBoardlist(); - $body .= '

' . $boardlist['top'] . '
'; - - $body .= '

' . $settings['title'] . '

' - . '
' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '
'; - - $body .= '
'; - - $query = query("SELECT * FROM `news` ORDER BY `name` = 'static' DESC, `time` DESC") or error(db_error()); - if($query->rowCount() == 0) { - $body .= '

(No news to show.)

'; - } else { - // List news - while($news = $query->fetch()) { - $body .= '

' . - ($news['subject'] ? - $news['subject'] - : - 'no subject' - ) . - - ($news['name'] != 'static' ? - ' - ' . - date($config['post_date'], $news['time']) . - '' - : '') . - '

' . $news['body'] . '

'; - - if($news['name'] == 'static') { - // static notice - $body .= '
'; - } - } - } - - $body .= '
'; - - // Finish page - $body .= '

Powered by Tinyboard'; - - return $body; - } - }; - -?> diff --git a/templates/themes/ruiwy1/thumb.png b/templates/themes/ruiwy1/thumb.png deleted file mode 100644 index 05dcd96c..00000000 Binary files a/templates/themes/ruiwy1/thumb.png and /dev/null differ