WebsiteBaker Community Forum
WebsiteBaker Support (2.13.x) => Modules => Topic started by: netraam on September 24, 2023, 04:33:13 PM
-
Does sombody know wher i can find the hello world module.
I can't find it on the addon's page.
thanks in advance,
Maarten
-
Sorry, due to ongoing adjustments to the new PHP versions and web server operating system, we no longer had the time to take care of the help page and the Hello World module. I think the Hello World module will also not be developed further.
Dietmar
-
i test this module in the latest version 0.61 from 2018. It works, but it is very simple and outdated and makes no sense for me, becauese, it use very old structures and code and also the phplib with htt-files or direct output directly from the php-files. the future is twig. If you need an example, take a look into the new versions of modules in the latest core-package or load from the addons-area modules like accordeon, faqbaker or the admintool wbbackup. A very simple module with the new structure is th wrapper module.
if you've questions about this, feel free to ask, here or via pm
-
Hello
Please take a look at WB module types.
https://help.WebsiteBaker.org/en/developer-guide/wb-module-types.php
Can you describe what do you need module for , so I can send you an example ?
-
I the meantime i've already started with my module. It was a good sugestion to look at the other modules.
things are going better than I expected.
I'm trying to craete a simple photoalbum whitout a lot of settings.
The module must just scan a directory with photo's and than create an album of al the photo and subfolders in the folder.
So when you want to categories your photo's you just have to make subfolders.
I've already done this in php but now i want to use this in my wb website.
-
simple question: why not the foldergallery (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=0814C794)?
it's exact, what you want
-
I've installed foldergallery on my offline test server but it doesen't work. It gives me an error on the frontend page.
There was an uncatched exception
Call to undefined function wb_utf8_decode()
in line (28) of (\modules\foldergallery\class\DirectoryHandler.php)
So i'm unable to test it.
And another important thing, it's a good occasion to learn how to make WB-modules.
-
Wich WB Version did you use? Foldergallery needs minimum PHP 2.13.0
-
My WB-Version is 2.13.3 r166.
In the meantime is solved the error with foldergallery.
When I replace "wb_utf8_decode()" with " utf8_decode()" on the line where the erros is located everything works.
-
do you use a windows-server?
wb_utf8_decode() is a wb-intern function, defined in /framework/functions.php
-
Yes, my test server is a windows server (Uniform Server).
-
Hello,
not shure, but an update to the latest WB Version should also have fixed this. Actually we have WB 2.13.4 r199, WB 2.13.5 r211 is ready and will be released in a few days (I hope).
-
In my opinion, the biggest problem is the Windows server.
As long as I am with WebsiteBaker (version 2.8.3) , a Linux/Unix server is highly recommended.