WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R25 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • Where can I find the Hello World Module
  • Print
Pages: [1]   Go Down

Author Topic: Where can I find the Hello World Module  (Read 71 times)

Offline ferrybig

  • Posts: 1
Where can I find the Hello World Module
« on: April 13, 2026, 03:52:41 PM »
I am trying to learn how to make modules for Website Baker.

Looking through the docs at https://help.WebsiteBaker.org/en/developer-guide/example-module-hello-world.php, it mentions that there is a Hello World Example Addon, however, if I search for this addon in the addon list I cannot find it.

Does anyone know where I can find this?
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 740
Re: Where can I find the Hello World Module
« Reply #1 on: Today at 03:35:43 AM »
ein ungünstiger Zeitpunkt...  :|

das Modul liegt seit Jahren brach und zeigt auch nur den Grundaufbau in der alten Form und in einfacher Weise. Technisch funktioniert es wohl noch und kann zumindest für einfache Module als Vorbild dienen. Besser wäre das Studium aktueller Module, idealerweise die zuletzt upgedateten Addons wie wbMonitor, Fabqbaker oder Accordion. Sie haben allerdings eine neue Ordnerstruktur und Funktionsweise. Dort findet man auch die aktuellen Methoden zum Laden und Nutzen z.b. der Translate-Klasse oder zur Einbindung von Twig. Die alte PHPLib können wir aus Gründen der Abwärtskompatibilit ät zwar nicht entfernen, ist aber heute nicht mehr zeitgemäß und umständlich zu nutzen, darum sollte Twig das bevorzugte Element sein. Ist auch viel einfacher zu nutzen.
Es ist hilfreich, wenn man den Core von WebsiteBaker gut kennt und dessen Methoden nutzt und nicht für jeden Kram eigene Lösungen sucht, die am Ende das Gleiche tun.
Die Nutzung von FTAN und IDKey zur Absicherung interner Posts wäre Pflicht, hier bieten der Core und genannte Module gute Hilfen. Die Orientierung auf PHP 8.5 sollte nicht fremd sein. Dazu kommen die allgemeinen Regeln wie "keine Abhängigkeiten von Modulen untereinander", Datensicherheit, Type-Casting usw.
Der im Hello-World-Module noch genutzte Mix von PHP-Code und HTML-Ausgabe ist kein gutes Beispiel und sollte unterbleiben. Willst du später mal veröffentlichen, wären Übersetzungen in unseren 22 Sprachen Pflicht. Nutze zum Testen für dich die aktuellste Version von WebsiteBaker und scheu dich nicht, zu fragen

-----------------------------------------------


An inconvenient time... :|

The module has been dormant for years and only demonstrates the basic structure in an old and simplified manner. While it likely still works technically and can serve as a reference for simple modules, it would be better to study current modules—ideally the most recently updated addons like wbMonitor, Fabqbaker, or Accordion.
However, please note that these have a new folder structure and different functionality. There, you will find the current methods for loading and using, for example, the Translate class or the integration of Twig. Although we cannot remove the old PHPLib for reasons of backward compatibility, it is outdated and cumbersome to use. Therefore, Twig should be the preferred choice—it is much easier to work with.
It is helpful to have a solid understanding of the WebsiteBaker core and to utilize its built-in methods instead of seeking custom solutions for every little thing that ultimately achieves the same result. The use of FTAN and IDKey to secure internal posts is mandatory; the core and the aforementioned modules provide excellent guidance for this.
A focus on PHP 8.5 (and higher) should be expected. Additionally, general rules apply, such as "no inter-module dependencies," data security, proper type-casting, and so on. The mix of PHP code and HTML output still found in the Hello-World module is not a good example and should be avoided.
If you plan to publish your work later, translations into our 22 languages are mandatory. For your own testing, always use the latest version of WebsiteBaker and don't hesitate to ask questions.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • Modules »
  • Where can I find the Hello World Module
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2