Download the PHP package adamjenkins/moodle-local_textless_forum without Composer

On this page you can find all versions of the php package adamjenkins/moodle-local_textless_forum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package moodle-local_textless_forum

Textless forum (local_textless_forum)

A Moodle local plugin that augments mod_forum so that selected forums accept only RecordRTC-recorded audio or video as the body of a post. Typing and every other editor tool are removed from the message box — the only way to add content is to record it.

The post subject can still be typed as normal; it is the message that must be a recording.

Features

Requirements

Installation

  1. Copy the plugin into your Moodle install so it lives at <wwwroot>/local/textless_forum.

    On Moodle 5.1+ (which uses the public/ webroot) the path is <moodle>/public/local/textless_forum.

  2. Log in as an administrator and visit Site administration → Notifications to complete the database installation.

Usage

Make a forum textless

  1. Add or edit a Forum activity.
  2. Open the Textless forum (RecordRTC only) section of the settings form.
  3. Tick Make this forum textless.
  4. Choose the Allowed recording type: Audio or video, Audio only or Video only.
  5. Save the activity.

Posting in a textless forum

When adding a discussion, replying, or editing a post in a textless forum, the message editor is replaced with recorder controls:

Clicking Reply on someone else's post takes the user to the same recorder rather than the plain-text quick reply, so the restriction is enforced everywhere a post can be created.

The server enforces the same rules, so they also hold for posts made without the recorder (a hand-made request, web services or the mobile app): when a post in a textless forum is saved, everything in its message except the recordings the forum's mode allows is removed. The upload endpoint accepts only a real audio or video recording (WebM, MP4 or Ogg, checked from the file's content) of an allowed type, within the site, course and forum upload size limits. The maximum recording length is enforced in the browser; the server bounds it through the file size, allowing twice the recorder's bitrate for the maximum length. Because a file can also be put into a post without the recorder (through Moodle's own file upload), the content and length checks are applied again when the post is saved: a recording whose file is not a real recording of the embedded type, or is too large for the maximum length, is removed from the message. If the forum's maximum length is lowered later, editing an older post re-checks its recordings against the new limit.

Site-wide settings

Visit Site administration → Plugins → Local plugins → Textless forum to configure:

Recording quality

Recording transcoding

When enabled, every recording posted to a textless forum is additionally converted in the background (via an adhoc task) to a more widely compatible format, while the original is kept too:

Once a transcoded copy is ready, it is added to the post as an additional <source> so the browser can use whichever format it supports.

How it works

Area Implementation
Settings on the forum form lib.php implements the coursemodule_standard_elements and coursemodule_edit_post_actions callbacks, filtered to forum activities.
Stored configuration The local_textless_forum table (one row per forum), accessed through \local_textless_forum\manager.
Front-end enforcement \local_textless_forum\hook_callbacks listens on before_footer_html_generation and loads the local_textless_forum/textless AMD module on textless-forum pages.
Recorder amd/src/textless.js + templates/recorder.mustache: removes the editor, captures audio/video, and writes a <video>/<audio> embed into the message.
Server-side enforcement \local_textless_forum\observer strips anything but allowed recordings from a textless forum's posts when they are created or edited (\local_textless_forum\manager::enforce_recording_only).
Upload endpoint upload.php hands the upload to \local_textless_forum\recording::store, which checks the forum, the capability, the mode, the file's content type, size and length budget, stores it in the editor's draft area and returns it for a draftfile URL.
Reply rerouting The AMD module intercepts the in-page reply buttons and sends users to the advanced (RecordRTC) editor.
Site-wide settings settings.php adds a settings page under Local plugins for recording bitrates and transcoding, backed by \local_textless_forum\manager and \local_textless_forum\transcoder.
Transcoding \local_textless_forum\observer queues a \local_textless_forum\task\transcode_recording adhoc task (via \local_textless_forum\transcoder::queue_for_post) whenever a post is created or edited in a textless forum; the task runs ffmpeg (with the input format pinned to the recording's container and local files only) and adds the converted file to the post as an extra <source>.
Cleanup \local_textless_forum\observer removes a forum's configuration when the activity is deleted, and sweeps orphaned rows when a course is deleted.

Privacy

This plugin stores only per-forum configuration and holds no personal data. Recorded media is stored against the forum post by mod_forum itself, which manages its own privacy. See \local_textless_forum\privacy\provider.

Building the JavaScript

The compiled module in amd/build/ is committed so the plugin works without a build step. If you change amd/src/textless.js, rebuild it from your Moodle root with:

License

GNU GPL v3 or later — see https://www.gnu.org/licenses/gpl-3.0.html.


All versions of moodle-local_textless_forum with dependencies

PHP Build Version
Package Version
Requires moodle/moodle Version ^5.0
moodle/composer-installer Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adamjenkins/moodle-local_textless_forum contains the following files

Loading the files please wait ...