Recent Posts

Pages: [1] 2 3 ... 10
1
Modules / Re: Wher can i find the hello world module?
« Last post by sternchen8875 on Today at 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
2
General Help & Support / Re: Wird MySQL 8.0.33 unterstützt?
« Last post by ReKa on Today at 12:21:09 AM »
oh, danke!
das ist beruhigend :-)
3
General Help & Support / Re: Wird MySQL 8.0.33 unterstützt?
« Last post by sternchen8875 on Today at 12:09:03 AM »
Ich verwende seit längerem Mysql 8.0.32, u.a. auch für die ganzen Testereien rund um WB. Es sollte da keine Probleme geben
4
General Help & Support / Wird MySQL 8.0.33 unterstützt?
« Last post by ReKa on September 24, 2023, 11:32:37 PM »
Halle Leute,

ich benutze WB 2.13.4 R199 mit PHP 8.1 und MySQL 5.7.43-47-log.

Mein Webhoster führt nächsten Monat ein Upgrade auf MySQL 8.0.33 durch.
Leider habe ich nirgends gefunden, ob WB mit MySLQ 8.x ohne Anpassungen funktioniert.

Kann mir dazu jemand was sagen?

Danke & Grüße,
René
5
Modules / Re: Wher can i find the hello world module?
« Last 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
6
Modules / Wher can i find the hello world module?
« Last 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
7
General Help & Support / Re: 'scandir' and 'foreach' in code module
« Last post by sternchen8875 on September 23, 2023, 12:39:14 PM »
 (Y)

P.S.:  Ruud has a fine module with all in WB used Constant's -> https://dev4me.com/modules-snippets/opensource/sysinfo/

All this works also in Code or Code²-Module or in selfmade-modules
8
General Help & Support / Re: 'scandir' and 'foreach' in code module
« Last post by netraam on September 23, 2023, 12:42:09 AM »
@sternchen8875

thanks for the your solution. I didn't know exactly how to use the WB variables in the code module.
But now it works.
thank you.
9
General Help & Support / Re: 'scandir' and 'foreach' in code module
« Last post by hgs on September 22, 2023, 07:03:00 AM »
Alternatively, the Foldergallery module could be used for the purpose.
It does exactly the job requested.
A preview image is generated for each directory and the link on this preview image shows the images in the respective directory

Here is an example in german

Above are the thumbnails of the subdirectories (4 pieces) below are the thumbnails in the start directory, if this is empty, only the thumbnails of the subdirectories are shown.
10
General Help & Support / Re: 'scandir' and 'foreach' in code module
« Last post by sternchen8875 on September 22, 2023, 01:44:45 AM »
Hi Maarten


the code works for me, if i change a little bit

take a look into the error.log (X-Button in Top-Menu of the Backend) and you find messages like this

Quote
scandir(........./modules/sponsors/sponsors4/): Failed to open directory: not implemented"

scandir() needs a path like this

Code: [Select]
$bestanden4 = scandir(WB_PATH.$map4);
$bestanden3 = scandir(WB_PATH.$map3);
$bestanden2 = scandir(WB_PATH.$map2);
$bestanden1 = scandir(WB_PATH.$map1);

and the img-Tag needs a URL, absolute or relative URL. "relative" means, Startpoint is the index.php in the WB_Root-Folder. Use a definition like this for $map1 - $map4

Quote
$map4 = "/modules/sponsors/sponsors4/";
   $map3 = "/modules/sponsors/sponsors3/";
   $map2 = "/modules/sponsors/sponsors2/";
   $map1 = "/modules/sponsors/sponsors1/";

Same problem with the paths to the txt-file(s) in every foreach-loop

Code: [Select]
foreach ($bestanden4 as $foto){
if (substr($foto, -4)=='.jpg'|| substr($foto, -5)=='.jpeg' || substr($foto, -4)=='.JPG' || substr($foto, -4)=='.png'){
$info = pathinfo($foto);
$filename =  basename($foto,'.'.$info['extension']);
if (file_exists(WB_PATH.$map4."$filename.txt")){
$file = @fopen(WB_PATH.$map4."$filename.txt","r");
$website = fgets($file);
echo "\n <a href='$website' target='_blank'><img src=\"$map4/$foto\" alt=\"\" style=\"width: 220px; margin: 20px;\"/></a>";
fclose($file);
}
else{
echo "\n <img src=\"$map4/$foto\" alt=\"\" style=\"width: 220px; margin: 20px;\"/>";
}
}
}


Pages: [1] 2 3 ... 10
postern-length