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 (true
orfalse
)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.php
from 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
debug
is equivalent to PHP variable$settings['general']['debug']
- setting
numberOfEntries
is equivalent to PHP variable$settings['general']['numberOfEntries']
- setting
typeOfCategories
is equivalent to PHP variable$settings['general']['typeOfCategories']
- setting
forumURL
is equivalent to PHP variable$settings['paths']['forumURL']
- setting
dbSettings
is equivalent to PHP variable$settings['paths']['dbSettings']
- setting
mainTemplate
is equivalent to PHP variable$settings['paths']['mainTemplate']
- setting
itemTemplate
is equivalent to PHP variable$settings['paths']['itemTemplate']
- setting
infoTemplate
is equivalent to PHP variable$settings['paths']['infoTemplate']
- setting
pageTitle
is equivalent to PHP variable$settings['output']['pageTitle']
- setting
reloadRhythm
is equivalent to PHP variable$settings['output']['reloadRhythm']