WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => Modules => Topic started by: netraam on September 24, 2023, 04:33:13 PM

Title: Wher can i find the hello world module?
Post 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
Title: Re: Wher can i find the hello world module?
Post by: Luisehahne on September 24, 2023, 08:04:49 PM
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
Title: Re: Wher can i find the hello world module?
Post by: sternchen8875 on September 25, 2023, 12:47:06 PM
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
Title: Re: Wher can i find the hello world module?
Post by: crnogorac081 on September 25, 2023, 06:21:01 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 ?
Title: Re: Wher can i find the hello world module?
Post by: netraam on September 30, 2023, 07:00:40 PM
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.
Title: Re: Wher can i find the hello world module?
Post by: sternchen8875 on October 01, 2023, 10:50:06 AM
simple question: why not the foldergallery (https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?id=0814C794)?

it's exact, what you want

Title: Re: Wher can i find the hello world module?
Post by: netraam on October 01, 2023, 01:16:43 PM
I've installed foldergallery on my offline test server but it doesen't work. It gives me an error on the frontend page.

Code: [Select]
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.
Title: Re: Wher can i find the hello world module?
Post by: ruebenwurzel on October 01, 2023, 01:36:07 PM
Wich WB Version did you use? Foldergallery needs minimum PHP 2.13.0
Title: Re: Wher can i find the hello world module?
Post by: netraam on October 01, 2023, 02:21:20 PM
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.
Title: Re: Wher can i find the hello world module?
Post by: sternchen8875 on October 01, 2023, 03:00:09 PM
do you use a windows-server?

wb_utf8_decode() is a wb-intern function, defined in /framework/functions.php
Title: Re: Wher can i find the hello world module?
Post by: netraam on October 01, 2023, 03:21:55 PM
Yes, my test server is a windows server (Uniform Server).
Title: Re: Wher can i find the hello world module?
Post by: ruebenwurzel on October 02, 2023, 06:50:15 AM
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).
Title: Re: Wher can i find the hello world module?
Post by: hgs on October 02, 2023, 08:41:25 AM
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.