Lightweight and efficient imageboard
Go to file
Trevor Slocum cdfe7803d7
Merge pull request #54 from VVatashi/feature_pgsql
Add support for PostgreSQL (pgsql) PDO driver
2018-04-12 11:41:23 -07:00
css Migrate from HTML4 to HTML5, style <hr> 2015-10-26 21:31:52 -07:00
inc Add postgresql support 2018-03-18 17:40:55 +07:00
js Add inline thumbnail expansion (requires rebuild) 2016-09-21 17:47:58 -07:00
res Removing placeholder files 2010-11-29 16:39:16 -08:00
src Removing placeholder files 2010-11-29 16:39:16 -08:00
thumb Removing placeholder files 2010-11-29 16:39:16 -08:00
.gitignore Use cURL instead of file_get_contents, mime_content_type instead of shell_exec (#38) 2017-12-14 14:27:26 -08:00
.htaccess Add .WebM and .SWF expiration headers 2015-09-22 13:33:47 -07:00
LICENSE License 2011-01-07 01:57:43 -08:00
README.md Use file_get_contents if cURL isn't installed 2017-12-14 14:36:57 -08:00
favicon.ico first commit 2009-09-19 19:53:15 -07:00
imgboard.php Add TINYIB_TIMEZONE, resolves #48 2018-02-14 22:22:42 -08:00
settings.default.php Add TINYIB_TIMEZONE, resolves #48 2018-02-14 22:22:42 -08:00
sticky.png Add sticky threads 2015-08-21 00:45:01 -07:00
swf_thumbnail.png Add optional SWF support, make picture support optional, add text board mode 2014-07-05 12:27:18 -07:00
video_overlay.png Add optional WebA and WebM support 2014-06-24 12:51:22 -07:00

README.md

TinyIB - A Lightweight and Efficient Image Board Script

Got database? Get speed. Use MySQL or SQLite for an efficient set-up able to handle high amounts of traffic.

No database? No problem. Store posts as text files for a portable set-up capable of running on virtually any PHP host.

Not looking for an image board script? TinyIB is able to allow new threads without requiring an image, or even disallow images entirely. See the Text Board Mode wiki page for instructions.

For demos see the TinyIB Installations page.

Database structure was last modified on 15th Sep 2015. Are you unable to create new posts? Run the SQL on this page to finish the upgrade process.

Features

  • GIF, JPG, PNG, SWF and WebM upload.
  • YouTube, Vimeo and SoundCloud embedding.
  • CAPTCHA (A simple implementation is included, reCAPTCHA is also supported)
  • Reference links >>###
  • Delete post via password.
  • Management panel:
    • Administrators and moderators use separate passwords.
      • Moderators are only able to sticky threads, delete posts, and approve posts when necessary. (See TINYIB_REQMOD)
    • Ban offensive/abusive posters across all boards.
    • Post using raw HTML.
    • Upgrade automatically when installed via git. (Tested on Linux only)

Installing

  1. Verify the following are installed:
    • PHP 4.3+
    • GD Image Processing Library
      • This library is usually installed by default.
      • If you plan on disabling image uploads to use TinyIB as a text board only, this library is not required.
  2. CD to the directory you wish to install TinyIB.
  3. Run the command:
    • git clone git://github.com/tslocum/TinyIB.git ./
  4. Copy settings.default.php to settings.php
  5. Configure settings.php
    • To allow WebM upload:
      • Ensure your web host is running Linux.
      • Install mediainfo and ffmpegthumbnailer. On Ubuntu, run sudo apt-get install mediainfo ffmpegthumbnailer.
    • To require moderation before displaying posts:
      • Ensure your TINYIB_DBMODE is set to mysql, mysqli, or pdo.
      • Set TINYIB_REQMOD to files to require moderation for posts with files attached.
      • Set TINYIB_REQMOD to all to require moderation for all posts.
      • Moderate posts by visiting the management panel.
    • When setting TINYIB_DBMODE to pdo, note that PDO mode has been tested on MySQL databases only. Theoretically it will work with any applicable driver, but this is not guaranteed. If you use an alternative driver, please report back regarding how it works.
    • To use ImageMagick instead of GD when creating thumbnails:
      • Install ImageMagick and ensure that the convert command is available.
      • Set TINYIB_THUMBNAIL to imagemagick.
      • Note: GIF files will have animated thumbnails, which will often have large file sizes.
    • To remove the play icon from .SWF and .WebM thumbnails, delete or rename video_overlay.png
  6. CHMOD write permissions to these directories:
    • ./ (the directory containing TinyIB)
    • ./src/
    • ./thumb/
    • ./res/
    • ./inc/flatfile/ (only if you use the flatfile database mode)
  7. Navigate your browser to imgboard.php and the following will take place:
    • The database structure will be created.
    • Directories will be verified to be writable.
    • The file index.html will be created containing the new image board.

Moderating

  1. If you are not logged in already, log in to the management panel by clicking [Manage].
  2. On the board, tick the checkbox next to the offending post.
  3. Scroll to the bottom of the page.
  4. Click Delete with the password field blank.
    • From this page you are able to delete the post and/or ban the author.

Updating

  1. Obtain the latest release.
    • If you installed via Git, run the following command in TinyIB's directory:
      • git pull
    • Otherwise, download and extract a zipped archive.
  2. Note which files were modified.
    • If settings.default.php was updated, migrate the changes to settings.php
      • Take care to not change the value of TINYIB_TRIPSEED, as it would result in different secure tripcodes.
    • If other files were updated, and you have made changes yourself:
      • Visit GitHub and review the changes made in the update.
      • Ensure the update does not interfere with your changes.
  3. Visit GitHub and check for new SQL queries which may be required to complete the update.

Migrating

TinyIB includes a database migration tool, which currently only supports migrating from flat file to MySQL. While the migration is in progress, visitors will not be able to create or delete posts.

  1. Edit settings.php
    • Ensure TINYIB_DBMODE is still set to flatfile.
    • Set TINYIB_DBMIGRATE to true.
    • Configure all MySQL-related settings.
  2. Open the management panel.
  3. Click Migrate Database
  4. Click Start the migration
  5. If the migration was successful:
    • Edit settings.php
      • Set TINYIB_DBMODE to mysqli.
      • Set TINYIB_DBMIGRATE to false.
    • Click Rebuild All and ensure the board still looks the way it should.

If there was a warning about AUTO_INCREMENT not being updated, you'll need to update it manually via a more privileged MySQL user. Run the following query for one or both of the tables, dependant of the warnings you were issued:

ALTER TABLE (table name) AUTO_INCREMENT = (value to be set)

Support

  1. Ensure you are running the latest version of TinyIB.
  2. Review the open issues.
  3. Open a new issue.

Contributing

  1. Read the GitHub Forking Guide.
  2. Fork TinyIB.
  3. Commit code changes to your forked repository.
  4. Submit a pull request describing your modifications.