util/addons install wiki
webuser@williamsmt:~$ cd /var/www/html/hubzillawebuser@williamsmt:/var/www/html/hubzilla$ man util/addons#!/usr/bin/env php <?php// Hubzilla plugin management utilityfunction usage() { echo <<< EOT Usage: util/addons list # list inβstalled addons util/addons list all #list all addons (*)= installed, (!)= disabled due to version comβpatibility util/addons install foo # installaddon named βfooβ util/addons uninstall foo #uninstall addon named βfooβ util/addons reinstall# reinstall all pluginsEOT; }require_once(βinclude/cli_startup.phpβ);cli_startup();use Zotlabs $plugs = Config::Get(βsystemβ, βaddonβ); $plugins_arr = array(); if($plugs) $plugins_arr = explode(β,β, Manual page addons line 1 (press h for help or q to quit)
code bracket
so where in which db to look for?
In Hubzilla, addon settings such as whether an addon is enabled are managed through the system configuration. Settings related to addons are stored in the configuration database and can be manipulated using the util/config command-line utility. For instance, to enable or disable an addon, you would use commands like util/config addon enabled 1 to enable or util/config addon enabled 0 to disable it. This utility directly interacts with the Hubzilla configuration database where these settings are stored
to explain its use for my hub
i'm opting for the explanation method for new users
π Manage Applications
view/pdl/mod_apps.pdl
[region=aside][widget=appstore][/widget][widget=appcategories][/widget][/region][region=content]$content[/region][region=right_aside][widget=notifications][/widget][widget=newmember][/widget][/region]
[region=aside][widget=appstore][/widget][widget=appcategories][/widget][block=apphelp][/block][/region][region=content]$content[/region][region=right_aside][widget=notifications][/widget][widget=newmember][/widget][/region]
[url=https://help.hubzilla.hu/en/usermanual/apps.html]π Manage Applications[/url]
i'm interested if chris wants to have a command for site-wide app install
where are the system-internal blocks defined?
... widget code goes here. ... The function returns a string which is the HTML content of the widget. ... $args is a named array which is passed any [var] variables from the layout editor ... For instance [widget=slugfish][var=count]3[/var][/widget] will populate $args with ... [ 'count' => 3 ]
<a href="%E2%80%98https%3A//help.hubzilla.hu/en/usermanual/apps.html%E2%80%99">π Manage Applications</a>
<?phpfunction apphelp($args) {return β<a href="%E2%80%99https%3A//help.hubzilla.hu/en/usermanual/apps.html%E2%80%98">π Manage Applications</a>β;}
<?phpnamespace Zotlabs\Widget;class Apphelp {function widget($args) {return β<a href="%E2%80%99https%3A//help.hubzilla.hu/en/usermanual/apps.html%E2%80%98">π Manage Applications</a>β;}
<?php/** * * Name: Test Widget 1 * * Description: Display test. * * Version: 1.0 * * Author: Scott M. Stolz * * Maintainer: Scott M. Stolz * * Copyright: WisTex TechSero Ltd. Co. * * License: MIT License (Expat Verion) - https://license.neuhub.org */namespace Zotlabs\Widget;class Testwidget1 { function widget($args) { return "Hello, world!"; }}?>