Merge pull request #537 from tobiasd/20180302-zhcn
[friendica-addons.git] / communityhome / README.md
1 Community Home
2 --------------
3
4 This addon overwrites the default home page shown to not logged users.
5 On sidebar there are the login form, last ten users (if they have 
6 choosed to be in site directory), last ten public photos and last ten
7 "likes" sent by a site user or about a site user's item
8
9 In main content is shown the community stream. This addon doesn't 
10 honour your community page visibility site setting: the community 
11 stream is shown also if you have choose to not show the community page.
12
13 If 'home.html' is found in your friendica root, its content is inserted 
14 before community stream
15
16 Each elements can be show or not. At the moment, there is no admin page
17 for settings, so this settings must be added to yout .htconfig.php
18
19
20     $a->config['communityhome']['showcommunitystream'] = true;
21     $a->config['communityhome']['showlastlike'] = true;
22     $a->config['communityhome']['showlastphotos'] = true;
23     $a->config['communityhome']['showactiveusers'] = true;
24     $a->config['communityhome']['showlastusers'] = true;
25
26 If you don't want to show something, set it to false.
27
28 Note:
29 -----
30
31 - Default is "false". With no settings in .htconfig.php, nothing is 
32 shown, except login form and content of 'home.html'
33
34 - Active users query can be heavy for db, and on some system don't work