diff --git a/doc/BBCode.md b/doc/BBCode.md new file mode 100644 index 000000000..c84308e5b --- /dev/null +++ b/doc/BBCode.md @@ -0,0 +1,138 @@ +Friendica BBCode tags reference +======================== + +* [Home](help) + +Inline +----- + + +
[b]bold[/b]: bold + +
[i]italic[/i]: italic + +
[u]underlined[/u]: underlined + +
[s]strike[/s]:
[color=red]red[/color]: red + +
[url=http://www.friendica.com]Friendica[/url]: Friendica + +
[img]http://friendica.com/sites/default/files/friendika-32.png[/img]:
[size=xx-small]small text[/size]: small text + +
[size=xx-large]big text[/size]: big text + +
[size=20]exact size[/size] (size can be any number, in pixel): exact size + + + + + + + +Block +----- + +
[code]code[/code]+ +
code
+
++ +
[quote]quote[/quote]+ +
quote+ +
+ +
[quote=Author]Author? Me? No, no, no...[/quote]+ +Author wrote:
Author? Me? No, no, no...+ +
+ +
[center]centered text[/center]+ +
+ +**Table** +
[table border=1] + [tr] + [th]Tables now[/th] + [/tr] + [tr] + [td]Have headers[/td] + [/tr] +[/table]+ +
Tables now |
---|
Have headers |
+ +**List** + +
[list] + [*] First list element + [*] Second list element +[/list]+
[ol] + [*] First list element + [*] Second list element +[/ol]+
[list=1]: decimal + +
[list=i]: lover case roman + +
[list=I]: upper case roman + +
[list=a]: lover case alphabetic + +
[list=A]: upper case alphabetic + + + + +Embed +------ + +You can embed video, audio and more in a message. + +
[video]url[/video]+
[audio]url[/audio]+ +Where *url* can be an url to youtube, vimeo, soundcloud, or other sites wich supports oembed or opengraph specifications. +*url* can be also full url to an ogg file. HTML5 tag will be used to show it. + +
[url]*url*[/url]+ +If *url* supports oembed or opengraph specifications the embedded object will be shown (eg, documents from scribd). +Page title with a link to *url* will be shown. + + + +Special +------- + +If you need to put literal bbcode in a message, [noparse], [nobb] or [pre] are used to escape bbcode: + +
[noparse][b]bold[/b][/noparse]: [b]bold[/b] + + diff --git a/doc/Developers.md b/doc/Developers.md index 17aff3869..b0fce47b5 100644 --- a/doc/Developers.md +++ b/doc/Developers.md @@ -1,6 +1,7 @@ Friendica Developer Guide +=================== -Here is how you can join us. +**Here is how you can join us.** First, get yourself a working git package on the system where you will be doing development. diff --git a/doc/Home.md b/doc/Home.md index e986c89ac..3f2c51beb 100644 --- a/doc/Home.md +++ b/doc/Home.md @@ -7,6 +7,7 @@ Friendica Documentation and Resources * [Account Basics](help/Account-Basics) * [New User Quick Start](help/Quick-Start-guide) * [Creating posts](help/Text_editor) + * [BBCode tag reference](help/BBCode) * [Comment, sort and delete posts](help/Text_comment) * [Profiles](help/Profiles) * You and other user diff --git a/doc/Install.md b/doc/Install.md index 9455c62ba..7f9330752 100644 --- a/doc/Install.md +++ b/doc/Install.md @@ -1,4 +1,5 @@ Friendica Installation +=============== We've tried very hard to ensure that Friendica will run on commodity hosting platforms - such as those used to host Wordpress blogs and Drupal websites. But be aware that Friendica is more than a simple web application. It is a complex communications system which more closely resembles an email server than a web server. For reliability and performance, messages are delivered in the background and are queued for later delivery when sites are down. This kind of functionality requires a bit more of the host system than the typical blog. Not every PHP/MySQL hosting provider will be able to support Friendica. Many will. But **please** review the requirements and confirm these with your hosting provider prior to installation. @@ -41,6 +42,12 @@ you might have trouble getting everything to work.] - and then you can pick up the latest changes at any time with `git pull` + + - make sure folder *view/smarty3* exists and is writable by webserver + + `mkdir view/smarty3` + + `chown 777 view/smarty3` - For installing addons diff --git a/doc/Plugins.md b/doc/Plugins.md index df6004450..2ae942eae 100644 --- a/doc/Plugins.md +++ b/doc/Plugins.md @@ -1,4 +1,5 @@ -**Friendica Addon/Plugin development** +Friendica Addon/Plugin development +========================== Please see the sample addon 'randplace' for a working example of using some of these features. The facebook addon provides an example of integrating both "addon" and "module" functionality. Addons work by intercepting event hooks - which must be registered. Modules work by intercepting specific page requests (by URL path). @@ -51,7 +52,8 @@ currently being processed, and generally contains information that is being imme processed or acted on that you can use, display, or alter. Remember to declare it with '&' if you wish to alter it. -**Modules** +Modules +-------- Plugins/addons may also act as "modules" and intercept all page requests for a given URL path. In order for a plugin to act as a module it needs to define a function "plugin_name_module()" which takes no arguments and need not do anything. @@ -62,8 +64,29 @@ If this function exists, you will now receive all page requests for "http://my.w Your module functions will often contain the function plugin_name_content(&$a), which defines and returns the page body content. They may also contain plugin_name_post(&$a) which is called before the _content function and typically handles the results of POST forms. You may also have plugin_name_init(&$a) which is called very early on and often does module initialisation. +Templates +---------- -**Current hooks:** +If your plugin need some template, you can use Friendica template system. Friendica use [smarty3](http://www.smarty.net/) as template engine. + +Put your tpl files in *templates/* subfolder of your plugin. + +In your code, like in function plugin_name_content(), load template file and execute it passing needed values: + + # load template file. first argument is the template name, + # second is the plugin path relative to friendica top folder + $tpl = get_markup_template('mytemplate.tpl', 'addon/plugin_name/'); + + # apply template. first argument is the loaded template, + # second an array of 'name'=>'values' to pass to template + $output = replace_macros($tpl,array( + 'title' => 'My beautifull plugin', + )); + +See also wiki page [Quick Template Guide](https://github.com/friendica/friendica/wiki/Quick-Template-Guide) + +Current hooks: +-------------- **'authenticate'** - called when a user attempts to login. $b is an array diff --git a/doc/Text_editor.md b/doc/Text_editor.md index e2234825a..aff0ce603 100644 --- a/doc/Text_editor.md +++ b/doc/Text_editor.md @@ -1,40 +1,110 @@ + + Creating posts -================= +=========== * [Home](help) -Here you can find an overview of the different ways to create and edit your post. Attention: we've used the "diabook" theme. If you're using another theme, some of the icons may be different. +Here you can find an overview of the different ways to create and edit your post. -
Darkbubble: | +![]() |
+ (inkl. smoothly, testbubble) | +
Frost: | +![]() |
+ + |
Vier: | +![]() |
+ (inkl. dispy) | +
+
-(incl. more "zero"-themes, comix, easterbunny, facepark, slackr +**