Giter Club home page Giter Club logo

infinity's Introduction

infinity

About

infinity is a fork of vichan, with the difference that infinity is geared towards allowing users to create their own boards. A running instance is at 8ch.net (new! a user of the software wrote to me that they created a Polish version: 8ch.pl)

Most things (other than installation) that apply to upstream vichan also apply to infinity. See their readme for a detailed FAQ: https://github.com/vichan-devel/vichan/blob/master/README.md

If you are not interested in letting your users make their own boards, install vichan instead of infinity.

Much like Arch Linux, infinity should be considered ``rolling release''. Unlike upstream vichan, we have no install.php. Database schema and templates are changed often and it is on you to read the Git log before updating!

Installation

Basic requirements: A computer running a Unix or Unix-like OS(infinity has been specifically tested with and is known to work under Ubuntu 14.x), Apache, MySQL, and PHP

  • Make sure Apache has read/write access to the directory infinity resides in.
  • install.php is not maintained. Don't use it.
  • As of February 22, 2015, you need the DirectIO module (dio.so). This is for compatibility with NFS.

Step 1. Create infinity's database from the included install.sql file. Enter mysql and create an empty database named 'infinity'. Then cd into the infinity base directory and run:

mysql -uroot -p infinity < install.sql
echo '+ <a href="https://github.com/ctrlcctrlv/infinity">infinity</a> '`git rev-parse HEAD|head -c 10` > .installed

Step 2. /inc/secrets.php does not exist by default, but infinity needs it in order to function. To fix this, cd into /inc/ and run:

sudo cp secrets.example.php secrets.php

Now open secrets.php and edit the $config['db'] settings to point to the 'infinity' MySQL database you created in Step 1. 'user' and 'password' refer to your MySQL login credentials. It should look something like this when you're finished:

	$config['db']['server'] = 'localhost';
	$config['db']['database'] = 'infinity';
	$config['db']['prefix'] = '';
	$config['db']['user'] = 'root';
	$config['db']['password'] = 'password';
	$config['timezone'] = 'UTC';
	$config['cache']['enabled'] = 'apc';

Step 3.(Optional) By default, infinity will ignore any changes you make to the template files until you log into mod.php, go to Rebuild, and select Flush Cache. You may find this inconvenient. To make infinity automatically accept your changes to the template files, set $config['twig_cache'].

Step 4. Infinity can function in a very barebones fashion after the first two steps, but you should probably install these additional packages if you want to seriously run it and/or contribute to it. ffmpeg may fail to install under certain versions of Ubuntu. If it does, remove it from this script and install it via an alternate method. Make sure to run the below as root:

apt-get install graphicsmagick gifsicle php5-fpm mysql-client php5-mysql php5-cli php-pear php5-apcu php5-dev; add-apt-repository ppa:jon-severinsson/ffmpeg; add-apt-repository ppa:nginx/stable; apt-get update; apt-get install nginx ffmpeg; pear install Net_DNS2; pecl install "channel://pecl.php.net/dio-0.0.7"

Page Generation

A lot of the static pages (claim.html, boards.html, index.html) need to be regenerated every so often. You can do this with a crontab.

*/10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php
*/20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");'
*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php

Also, main.js is empty by default. Run tools/rebuild.php to create it every time you update one of the JS files.

Have fun!

infinity's People

Contributors

admin-kaf avatar aeosynth avatar anonfagola avatar anonish avatar asiekierka avatar barrucadu avatar blahblah666 avatar bui avatar cccxd avatar ccd0 avatar cipherwraith avatar ctrlcctrlv avatar czaks avatar fourfivesix avatar guy9000 avatar hjaelp avatar jdh8 avatar macilprime avatar marktaiwan avatar marlencrabapple avatar pashe avatar pmer avatar seisatsu avatar sinuca avatar tesu avatar thegentoo avatar topkek avatar undido avatar wholelotofhs avatar yeon-boy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infinity's Issues

Posting an image won't work if $config['image_reject_repost'] is false

Maybe it's because I don't have imagemagik on my xampp or whatever, but it says that the file is already posted when it isn't.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4734373-posting-an-image-won-t-work-if-config-image_reject_repost-is-false?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github).

Thread watcher?

Should 8chan have thread watcher? If anyone thinks so, I could whip one up.

Public bans page

One problem with this is showing the content the user was banned for...if it's CP we can't retain that. Not sure how to handle this, that's why it's not done yet.

Page will be:
sortable by board or all boards
updated instantly

Update button & Auto-update

As halfchan has, auto updates etc would be cool.
I know some javascript but I'm not sure if I can do it on my own though.

attempt to reduce amount of boards created

some ideas:

  • before creating a board, run a search in existing board URIs and titles, try to give user suggestions for boards that already exist
  • stress that users should check if a board for their topic already exists
  • limit amount of boards that can be created (per day/ever?)
  • on that note, I don't think board creation is restricted if you're banned globally
  • remind users that their board will be deleted if inactive
  • let users set the board to unlisted at time of creation


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Thumbnails to SWF files

Was planning on doing this, and need a bit of help. How does halfchan handle getting the 1st frame of an swf? Couldn't find a good way in PHP without getting a library.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Allow board owners to create positions under them

They would be able to do everything except edit the board settings.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4701438-allow-board-owners-to-create-positions-under-them?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github).

Failed opening required 'htmlpurifier-4.5.0/library/HTMLPurifier.auto.php'

When running:

$ php faq.php > faq.html

I receive the following error:

php faq.php > faq.html
PHP Warning:  require_once(htmlpurifier-4.5.0/library/HTMLPurifier.auto.php): failed to open stream: No such file or directory in ~/dev/8chan/inc/instance-config.php on line 10
PHP Fatal error:  require_once(): Failed opening required 'htmlpurifier-4.5.0/library/HTMLPurifier.auto.php' (include_path='.:/usr/share/pear') in ~/dev/8chan/inc/instance-config.php on line 10

Favorited boards that are deleted can't be removed from favorites.

If you have a board favorited (starred) it appears in your menu at the top of the page. But if that board gets deleted you have no way to remove it so the link to a 404 remains up there.

My suggestion would be to have a favorite management page that lists all your favorite boards. I personally prefer this over the simple solution of just removing any board that is 404. But I'm a faggot.

Theme Persistence

I can manage to change the theme while being on the first page of a board, but doing so don't change it on the other pages (2..10). Trying to change it on the said problematic pages is just ephemeral, it reverts back to Yotsuba B when refreshing.
The Catalog and the board page also seem unaffected by the themes.

custom board assets

boards should possibly be able to set their own custom:

  • favicon.ico
  • spoiler.png (or multiples)
  • flags/*
  • deleted.png
  • file.png
  • d10.svg

perhaps the banner edit page could be used for all of these

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Inline post/reply expansion

Basically, when you click a reply link, it expands the post in that post.
I know Mayhem's 4chan X allowed this, but I don't know if there's any legal issue from pulling code from there.
14c73369c1

Failed opening required '8chan-functions.php'

When running:

$ php faq.php > faq.html

I receive the following error:

php faq.php > faq.html 
PHP Warning:  require_once(8chan-functions.php): failed to open stream: No such file or directory in ~/dev/8chan/inc/instance-config.php on line 11
PHP Fatal error:  require_once(): Failed opening required '8chan-functions.php' (include_path='/home/caio/dev/8chan/inc/htmlpurifier-4.5.0/library:.:/usr/share/pear') in ~/dev/8chan/inc/instance-config.php on line 11

/boards.html is not responsive to mobile devices

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4700651-boards-html-is-not-responsive-to-mobile-devices?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6417251&utm_medium=issues&utm_source=github).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.