Several operators of instances of the My Little Forum script asked for a script to show the latest postings of their forum outside of the forum itself in a different page of the website. After repeated questions, H. Schütz decided to hand over a script for that purpose, he developed for his own forum (an instance of My Little Forum 1.8 (never released version)).
This script is licenced under the terms of the GPL 3.
With version 0.2 an INI file (data/config/lpp.ini) for storing of the settings got introduced. The settings stayed the same but changed their names.
- section
[general]debug[boolean]: additional output for development and/or debugging (trueorfalse)numberOfEntries[integer]: number of latest entries to display in the pagetypeOfCategories[array]: an array to store the information, which type of categories should get displayed (0: public categories,1: categories, restricted to registered users,2: categories, restricted to moderators and administrators)
- section
[paths]forumURL[string]: the URL of the forum as you see it in the browsers address bar (i.e. "https://example.com/forum/")dbSettings[string]: the local path of the webserver from the script to the fileconfig/db_settings.phpfrom within the forummainTemplate[string]: file name of the main HTML templateitemTemplate[string]: file name of the HTML template for list itemsinfoTemplate[string]: file name of the HTML template for error messages and/or debug messages
- section
[output]pageTitle[string]: string with placeholders for the page titlereloadRhythm[integer]: number of seconds until the page reloads the next time
$output['debug-and-errors'] got removed from the settings but is a variable initialisation in the script anyway
- setting
debugis equivalent to PHP variable$settings['general']['debug'] - setting
numberOfEntriesis equivalent to PHP variable$settings['general']['numberOfEntries'] - setting
typeOfCategoriesis equivalent to PHP variable$settings['general']['typeOfCategories'] - setting
forumURLis equivalent to PHP variable$settings['paths']['forumURL'] - setting
dbSettingsis equivalent to PHP variable$settings['paths']['dbSettings'] - setting
mainTemplateis equivalent to PHP variable$settings['paths']['mainTemplate'] - setting
itemTemplateis equivalent to PHP variable$settings['paths']['itemTemplate'] - setting
infoTemplateis equivalent to PHP variable$settings['paths']['infoTemplate'] - setting
pageTitleis equivalent to PHP variable$settings['output']['pageTitle'] - setting
reloadRhythmis equivalent to PHP variable$settings['output']['reloadRhythm']