Giter Site home page Giter Site logo

thwiki / mediawiki-extensions-flowthread Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nbdd0121/mw-flowthread

0.0 0.0 0.0 342 KB

A commenting system for MediaWiki

License: BSD 2-Clause "Simplified" License

PHP 71.87% CSS 7.34% JavaScript 20.79%

mediawiki-extensions-flowthread's Introduction

MW-FlowThread

A commenting system for MediaWiki

Dependency

  • Echo: This is required for FlowThread to work
  • Avatar: This is optional, but it can provide avatar feature to FlowThread.

Install

  • Clone the respository, rename it to FlowThread and copy to extensions folder
  • Add wfLoadExtension('FlowThread'); to your LocalSettings.php
  • Run the update script
  • You are done!

Configuration

  • All configurations are stored in $wgFlowThreadConfig
    • $wgFlowThreadConfig['AnonymousAvatar'] (string), should be set to the URL of the avatar for non-registered user.
    • $wgFlowThreadConfig['Avatar'] (string), should be set to the URL of the avatar for registered user. You can use ${username} as a placeholder for user's name. Please note that you need to use single quotes ('') to include the placeholder, otherwise PHP will substitute it right away.
    • $wgFlowThreadConfig['MaxNestLevel'] (int): Default to 3, this restricted max level of nested reply.
  • In old versions, we do not enforce POST method on APIs that require database write. This will be changed in the future. To allow migration, $wgFlowThreadEnforcePost is introduced to control this behaviour. It is current defaulted to false, but will later be changed to true.
  • You can set user rights:
    • comment: User need this right to post
    • commentadmin-restricted: User need this right to do basic management of comments
    • commentadmin: User need this right to do full management of comments

Avatar Presentation

  • FlowThread itself does not provide avatar feature, but it creates an extensible interface to allow other extensions/service to provide avatar for FlowThread.
  • See the above section to know how to configure this extension.
  • When the extension needs to show an avatar of a non-registered user, aka a IP user, it will use DefaultAvatarURL.
  • When the extension needs to show an avatar of a registered user, it will use AvatarURL and replace all occurrence of ${username} to the user's actual username.

mediawiki-extensions-flowthread's People

Contributors

aira-sakuranomiya avatar annangela avatar arumi-s avatar func86 avatar hakureirukoto avatar hyperzlib avatar imbushuo avatar nbdd0121 avatar razesoldier avatar starhearthunt avatar

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.