Search

You can find the results of your search below.

Friendica Addon development
85 Hits, Last modified:
of your addon file. Here’s the structure: <code php> /** * Name: {Human-readable name} * Descriptio... ions may provide for “setup” amd “remove”. ===== PHP addon hooks ===== Register your addon hooks duri... is a string and corresponds to a known Friendica PHP hook. ''%%$file%%'' is a pathname relative to th... /should// be ‘addon///addon_name/////addon_name//.php’ in most cases and can be shortened to ''%%__FILE
Friendica Installation
68 Hits, Last modified:
the host system than the typical blog. Not every PHP/MySQL hosting provider will be able to support Fr... Due to the large variety of operating systems and PHP platforms in existence we may have only limited ability to debug your PHP installation or acquire any missing modules - but... sl_policy'' to ''0'' in the ''config/local.config.php'' file //after// the installation wizard has been
Autoloader with Composer
45 Hits, Last modified:
le through the whole application through ''%%boot.php%%''. * [[:docs:Composer|Using Composer]] ====... hood, Composer registers a callback with [[http://php.net/manual/en/function.spl-autoload-register.php|''%%spl_autoload_register()%%'']] that receives a cla... onding class definition file. For more info about PHP autoloading, please refer to the [[http://php.net
config
38 Hits, Last modified:
alues that can only be set in config/local.config.php =================================================... iendica's configuration is done in two places: in PHP array configuration files and in the `config` dat... or file configuration is an array returned from a PHP file. This prevents your webserver from displayin... A typical configuration file looks like this: ```php <?php /* * Comment block */ return [ 'sectio
Themes
26 Hits, Last modified:
css sometimes, there is also a file called style.php in the theme directory. This is only needed if th... m in the settings and aome functions in the theme.php file. The template (theme_settings.tpl) {{in... ow to use the template file, by defining a config.php file. It needs to define at least the following f... irectoy and include it in the array in the config.php: $colorset = array( 'default'=>DI::l
Settings
14 Hits, Last modified:
section of the [[help/Config|config/local.config.php]] file. If you want to use this method, the regis... /friendica/issues/2209|issue 2209]]). By default PHP warnings and error messages are suppressed. If yo... e to activate them in the ''%%config/local.config.php%%'' file. Use the following settings to redirect PHP errors to a file. Config: <code> error_reportin
Friendica Storage Backend Addon development
14 Hits, Last modified:
thod in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\ICan... hods in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\ICan... ry. Override the two necessary instances: <code php> use Friendica\Core\Storage\Capability\ICanWriteT... cessor for transparency reasons. Example: <code php> use Friendica\Core\Storage\Capability\ICanWriteT
How To Move Classes to src
13 Hits, Last modified:
]] to manage autoloading. This means that all the PHP class files moved to the ''%%src%%'' folder will ... ce is expected to be found at ''%%src/Core/Config.php%%''. * Namespaces can help group classes with a s... clare the namespace, the file ''%%src/Core/Config.php%%'' must start with the following statement: <code php> namespace Friendica\Core; </code> From now on, t
Where to get started to help improve Friendica
13 Hits, Last modified:
lable through the whole application through `boot.php`. If you want to have git automatically update t... r.lock` file gets changed # to update all the php dependencies check_run composer.lock "bin/com... ty, Friendica follows the widespread [[http://www.php-fig.org/psr/psr-2/|PSR-2 coding standards]] to th... tions * Boolean operators are `&&` and `||` for PHP conditions, `AND` and `OR` for SQL queries * No
Domain-Driven-Design
9 Hits, Last modified:
Models and collections to take full advantage of PHP type hints. Before: <code php> function doSomething(array $intros) { foreach ($intros as $intro)... )]); doSomething($intros); </code> After: <code php> function doSomething(\Friendica\Contact\Introduc... ects use their own class members. Before: <code php> class Model { public $id; function save
Friendica Message Flow
6 Hits, Last modified:
s to all networks are made using include/notifier.php, which chooses how (and to whom) to deliver the m... eliveries including DFRN-notify. mod/dfrn_notify.php handles the remote side of DFRN-notify. Local feeds are generated by mod/dfrn_poll.php - which also handles the remote side of DFRN-poll... ocol. Salmon notifications arrive via mod/salmon.php. Push (pubsubhubbub) feeds arrive via mod/pubsub
Friendica translations
4 Hits, Last modified:
uage>/messages.po'' - PO files are converted to PHP arrays in ''view/lang/<language>/strings.php'' that are ultimately used by Friendica to display the tr... nguage>/messages.po''. Then run ''bin/console po2php view/lang/<language>/messages.po'' to update the related ''strings.php'' file and commit both files to your working bran
ejabberd and prosody XMPP server with synchronized credentials
3 Hits, Last modified:
erd:ejabberd /path/to/friendica/bin/auth_ejabberd.php </code> * Change the access mode so it is reada... $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php </code> * Edit your ejabberd.cfg file, comment ... th_program, "/path/to/friendica/bin/auth_ejabberd.php"}. </code> * Disable the module “mod_register”
Friendica Administration
3 Hits, Last modified:
nning, this means a server providing Maria DB and PHP on top of a web server like Apache. For informati... * Configuration files: ''config/local.config.php'', ''config/addon.config.php'' and the ''.htaccess'' file if it was edited beyond the .htaccess-dist o
Admin Tools
3 Hits, Last modified:
lation of friendica based on values from htconfig.php lock Edit site locks maintena... entries user User management php2po Generate a messages.po file from a strings.php file po2php Generate a strings.php file from a messages.po file typo
Vagrant for Friendica Developers
2 Hits, Last modified:
Installing Connectors (Twitter/GNU Social)
2 Hits, Last modified:
Friendica on GitHub
2 Hits, Last modified:
Using Composer
2 Hits, Last modified:
How to improve the performance of a Friendica site
1 Hits, Last modified:
Friendica Templating Documentation
1 Hits, Last modified:
Connectors
1 Hits, Last modified:
Friendica API
1 Hits, Last modified:
Updating Friendica
1 Hits, Last modified:
home
1 Hits, Last modified: