![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/html/webtrees/modules_v4/ |
Upload File : |
# THIRD-PARTY MODULES Many webtrees functions are provided by “modules”. Modules allows you to add additional features to webtrees and modify existing features. ## Installing and uninstalling modules A module is a folder containing a file called `module.php`. There may be other files in the folder, such as CSS, JS, templates, languages, data, etc. To install a module, copy its folder to `/modules_v4`. To uninstall it, delete its folder from `/modules_v4`. Note that module names (i.e. the folder names) must not contain spaces or the characters `.`, `[` and `]`. It must also have a maximum length of 30 characters. TIP: renaming a module from `<module>` to `<module.disable>` is a quick way to hide it from webtrees. This works because modules containing `.` are ignored. ## Writing modules To write a module, you need to understand the PHP programming language. There are several example modules available at https://github.com/webtrees The built-in modules can be found in `app/Module/`. These contain lots of useful examples that you can copy/paste.