Skip to content

All modules

komeo edited this page Jan 20, 2024 · 3 revisions

Kokonotsuba uses modules for a decent amount of its features. Some modules are absolutely necessary to run an imageboard, while others are completely optional. Using config.php, you can decide on what modules you want to use. Due to the nature of modules, with enough knowledge of PHP and how kokonotsuba works, you can write your own custom modules and use them on your board.

Adding/removing modules

Open config.php and scroll down to Line 118, and edit the $ModuleList array. This page includes a list of all available modules and what they do. If you add or remove a module, you won't notice any changes immediately - that is because you also have to rebuild index.html for the changes to take place. In order to do that, open the admin panel, log in as any rank (janitor/mod/admin) and press [Rebuild]. Alternatively, you can create a new thread or reply to any existing thread. Note that some modules are included in config.php by default.

List of all modules

mod_adminban

Ban/warn function, available to mods/admins. Included by default.

mod_admindel

Post/image deletion for janitors/mods/admins. Also allows janitors to temporarily ban someone on top of deleting their post (ban duration and reason in config.php - JANIMUTE_LENGTH, default 20 min). Included by default.

mod_ads

Old Kolyma era module for "ads", repurposed in 2023 for fullbanners on Heyuri.

mod_anigif

Instead of .gif files being thumbnailed, the user can optionally make them always animated, even when minimized. Included by default.

mod_antiflood

"Hardcore" anti flood module that allows threads to be created only once every X seconds (configurable in module file, default 10), no matter the user.

mod_api

Unused/outdated.

mod_autosage

Allows mods/admins to autosage a thread - making it impossible to bump. Included by default.

mod_bbcode

Adds BBCode and emotes: https://www.heyuri.net/bbcode/ By editing the $emotes array you can add your own emotes. Included by default.

mod_captcha_old

Unused/outdated.

mod_cat

Adds a catalog mode. Included by default.

mod_countryflags

Displays country flags next to names, like on /pol/, /bant/ etc. By editing FLAG_MODE in config.php you can change the module's behaviour based on including "flag" in the email field.

mod_csrf_prevent

Prevents cross site request forgery attacks. Included by default.

mod_exif

Displays image EXIF data by clicking a button next to any image. Additionally, if chosen, can add an Imgops and iqdb button.

mod_janitor

Allows janitors to warn users.

mod_pm

Adds a tripcode based messaging system. TODO explain

mod_pushpost

Legacy unused Pixmicat module for editing posts, both for users and moderators. Not broken but likely janky. Not fully translated.

mod_readonly

Makes the board "read-only": Only mods/admins can post. Configurable.

mod_recaptcha_v2

Adds Google's ReCAPTCHA v2 as verification.

mod_rss

RSS feed for post notifications. Included by default.

mod_showip

Shows the first 2 octets of an user's IP in posts.

mod_soudane

2chan's soudane (yep) function. Acts similarly to upvotes or likes on posts.

mod_soudane2

Same as above, but "nah" instead of "yep". Soudane and soudane2 don't conflict with each other and can be used together.

mod_stat

Barebones board stats module, allows you to view your boards PPD, PPH, last post and all posts. Included by default. This is done by navigating to /koko.php?mode=module&load=mod_stat&stats= and: alltime or lastpost or ppd or pph.

mod_sticky

Allows mods/admins to sticky threads. Included by default.

mod_stop

Allows mods/admins to lock threads. Included by default.

mod_threadlist

Displays a list of all threads under the post form. Can be used for textboards.

mod_wf

Wordfilter module. Edit the $FILERS array to add your own wordfilters. Remember to use regular expressions. Included by default.