Search

You can find the results of your search below.

Friendica Addon development
163 Hits, Last modified:
ment of your addon file. Here’s the structure: <code php> /** * Name: {Human-readable name} * Descri... > * Status: {Unsupported|Arbitrary status} */ </code> You can also provide a longer documentation in a... Register your addon hooks during installation. <code> \Friendica\Core\Hook::register($hookname, $file, $function); </code> ''%%$hookname%%'' is a string and corresponds to
Friendica Installation
63 Hits, Last modified:
es - but we will do our best to solve any general code issues. If you do not have a Friendica account y... epository into a directory “mywebsite” would be <code> git clone https://github.com/friendica/friendica... cd mywebsite bin/composer.phar install --no-dev </code> Make sure the folder view/smarty3 exists and is... le by the webserver user, in this case www-data <code> mkdir -p view/smarty3 chown www-data:www-data vi
Friendica BBCode tags reference
56 Hits, Last modified:
. === Code Blocks === You can either use inline code or create a multi-line code block, both by using the BBCode ''[code]'' tag. If it is used on a single line surroundin... or example <code> Can somebody help me with the [code]hello_world()[/code] function in the [code]indroduction[/code] module? </code> will produce a posting like > ... lp me understand the following function from the [code]introduction[/code] module? [code=python] def hello_world(): """ ... pre]'' which makes them display as BBCode tags in code blocks instead of being removed. ''[code]'' blocks inside [noparse] will still be converte
Friendica Storage Backend Addon development
30 Hits, Last modified:
ll method in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\... ring(); public static function getName(); } </code> * ''%%get(string $reference)%%'' returns data ... l methods in the interface must be implemented: <code php> namespace Friendica\Core\Storage\Capability\... public function saveOptions(array $data); } </code> * ''%%getOptions()%%'' returns an array with d
Autoloader with Composer
30 Hits, Last modified:
($owner, $uid); [...] </code> This is the current code of ''%%include/delivery.php%%'', and since the code is declared to be in the “Friendica” namespace, y... brary, you need to use the full namespace, e.g. <code php> // src/Diaspora.php <?php namespace Friendi... MarkdownExtra::defaultTransform($text); } } </code> if you use that class in many places of the code and you don’t want to write the full path to the clas
Friendica API
18 Hits, Last modified:
em id === Return values === On success: json: <code>"ok"</code> xml: <code><ok>true</ok></code> On error: HTTP 400 BadRequest ==== GET api/direct_messages==== Deprecated Twitter rec... "data": "base64 encoded image data" } </code> xml: <code xml> <photo> <id>photo id</id> <created>date(YYYY-MM-DD HH:MM:SS)</cre
Domain-Driven-Design
17 Hits, Last modified:
take full advantage of PHP type hints. Before: <code php> function doSomething(array $intros) { fo... 'uid' => local_user()]); doSomething($intros); </code> After: <code php> function doSomething(\Friendica\Contact\Introductions\Collection\Introductions $int... ecForUser(local_user()); doSomething($intros); </code> ==== Dependency Injection ==== Under this conce
Where to get started to help improve Friendica
15 Hits, Last modified:
iffer === The [[https://github.com/squizlabs/PHP_CodeSniffer|PHP Code Sniffer]] tool checks your files against a variet... o fiddle with the command line. === Fix with PHP Code Beautifier and Fixer (phpbcf) included in PHP Code Sniffer === If you're getting a massive list of ... o fix all the violations by hand. Thankfully, PHP Code Sniffer is shipped with an automatic code fixer that can take care of the tedious task for ... sted in having the documentation of the Friendica code outside of the code files, you can use [[http://doxygen.org|Doxygen]]
ejabberd and prosody XMPP server with synchronized credentials
14 Hits, Last modified:
hichever user is running the server, ie. ejabberd<code> $ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php </code> * Change the access mode so it is readable only to the user ejabberd and has exec<code> $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php </code> * Edit your ejabberd.cfg file, comment out you
How To Move Classes to src
14 Hits, Last modified:
hp%%'' must start with the following statement: <code php> namespace Friendica\Core; </code> From now on, the ''%%Config%%'' class can be referred to as ''%%... are the different ways you can use ''%%use%%'': <code php> // No use $config = new Friendica\Core\Config(); </code> <code php> // Namespace shortcut use Friendica\C
Friendica API
13 Hits, Last modified:
ssage", "request": "API path requested", "code": "HTTP error code" } </code> * xml <code xml> <status> <error>Specific error message</error> <request>API path requested</request> <co.de>HTTP error code</co.de> </status> </code> ===== Usage Examples =
Two-Factor Authentication
13 Hits, Last modified:
d, that automatically generates an authentication code. That code changes after a certain period of time. * To co... TP on multiple devices, during setup, scan the QR code using each device at the same time. * If 2FA is... OTP|andOTP]] ==== Record your One-Use Recovery Codes ==== From your two-factor authentication user s... will be presented with a list of one-use recovery codes. Please save those in the same place you are sav
Friendica Templating Documentation
12 Hits, Last modified:
plating engine. The main templates are found in <code> /view/templates </code> theme authors may overwrite the default templates by putting a files with the same name into the <code> /view/themes/$themename/templates </code> directory. Templates that are only used by addons shall
How to improve the performance of a Friendica site
12 Hits, Last modified:
on your system and change the following values: <code> Set "JPEG image quality" to 50. </code> This value reduces the data that is send from the server to th... that doesn’t influences image quality too much. <code> Set "OStatus conversation completion interval" to "never". </code> If you have many OStatus contacts then completin
Settings
12 Hits, Last modified:
gistrations are only possible using an invitation code or not. To enable invitation based registration, ... , that is the ''%%storage%%'' folder in Friendica code root folder. === Maximum Image Size === Maximum... ings to redirect PHP errors to a file. Config: <code> error_reporting(E_ERROR | E_WARNING | E_PARSE );... g_errors','1'); ini_set('display_errors', '0'); </code> This will put all PHP errors in the file php.out
Using Composer
10 Hits, Last modified:
Creating posts
6 Hits, Last modified:
Using SSL with Friendica
6 Hits, Last modified:
Friendica on GitHub
6 Hits, Last modified:
Friendica API authentication
6 Hits, Last modified:
Abstracts
4 Hits, Last modified:
Friendica Administration
4 Hits, Last modified:
Installing Connectors (Twitter/GNU Social)
3 Hits, Last modified:
Homepage Verification
3 Hits, Last modified:
First Steps
3 Hits, Last modified:
Database Tables
3 Hits, Last modified:
home
2 Hits, Last modified:
Accesskeys reference
2 Hits, Last modified:
Friendica translations
1 Hits, Last modified:
Vagrant for Friendica Developers
1 Hits, Last modified:
Updating Friendica
1 Hits, Last modified:
Friendica API entities
1 Hits, Last modified:
Documentation
1 Hits, Last modified:
Account Basics
1 Hits, Last modified:
config
1 Hits, Last modified:
Admin Tools
1 Hits, Last modified: