diff --git a/doc/Install.md b/doc/Install.md index b8929d371b..2a80cf72a9 100644 --- a/doc/Install.md +++ b/doc/Install.md @@ -99,7 +99,9 @@ You might wish to move/rename .htconfig.php to another name and empty (called 'd ### Option B: Run the automatic install script -Open the file htconfig.php in the main Friendica directory with a text editor. Remove the `die('...');` line and edit the lines to suit your installation (MySQL, language, theme etc.), then save the file (do not rename it). +Open the file htconfig.php in the main Friendica directory with a text editor. +Remove the `die('...');` line and edit the lines to suit your installation (MySQL, language, theme etc.). +Then save the file (do not rename it). Navigate to the main Friendica directory and execute the following command: diff --git a/doc/Profiles.md b/doc/Profiles.md index 715d27d957..aceb94da39 100644 --- a/doc/Profiles.md +++ b/doc/Profiles.md @@ -4,35 +4,32 @@ Profiles * [Home](help) Friendica has unlimited profiles. -You may use different profiles to show different "sides of yourself" to different audiences. +You may use different profiles to present different aspects of yourself to different audiences. Default / public profile --- You always have a profile known as your "default" or "public" profile. -This profile is always available to the general public and cannot be hidden (there may be rare exceptions on privately run or disconnected sites). -You may, and probably should restrict the information you make available on your public profile. +This profile is always available to the general public and usually cannot be hidden. +You may, and probably should restrict the personal information you make available on your public profile. That said, if you want other friends to be able to find you, it helps to have the following information in your public profile: * Your real name * A photo of **you** -* Your location on the planet, at least to a country level. +* Your location, preferably at least the country. -Without this basic information, you could get very lonely here. -Most people (even your best friends) will not try and connect with somebody that has a fake name or doesn't contain a real photo. - -In addition, if you'd like to meet people that share some general interests with you, please take a moment and add some "Public Keywords" to your profile. +In addition, if you'd like to meet people that share some general interests with you, add some "Public Keywords" to your profile. Such as "music, linux, photography" or whatever. You can add as many keywords as you like. Your default or public profile is also shown to contacts on other networks, since they do not have the ability to view your private profiles. -Only members of the Friendica network can see alternate/private profiles. +Only members of the Friendica network can see alternate/ private profiles. -Alternate profiles +Alternate/ private profiles --- To create an alternate profile, select "Profiles" from the menu of your Friendica site. You may edit an existing profile, change the profile photo, or create a new profile. -You may also create a "clone" of an existing profile if you only wish to change a few items but don't wish to enter all the information again. +You may also "clone" your existing profile if you only wish to change a few items but don't wish to enter all the information again. To assign a profile to specific persons, select the person from your "Contacts" page and click the pencil "Edit" icon. You will find a dropdown box listing the various profiles available. @@ -51,17 +48,13 @@ You may also be able to comment directly on posts from while visiting the other There are two settings which allow you to publish your profile to a directory and ensure that it can be found by others. You can change these through settings on the "Settings" page. One setting allows you to publish your profile in the site directory of this Friendica server. -Another option (this may have been disabled by the site creator) allows you to publish your profile in the "Global Directory". -This is a mega directory which contains people from many other Friendica installations world-wide. +Another option (this may have been disabled by the site admin) allows you to publish your profile in a [Global Directory](Making-Friends.md#the-directories). -If you do not wish to be visible to any of these sites, you may leave your profile unpublished. +If you do not wish to be visible to any of these directories, do not published your profile. Although you may have multiple profiles, you only have one profile photo. -This is intentional. -In early tests we experimented with different photos for each profile and found it was very confusing for people. -They might see a different picture depending on what website they visited or what conversation they were in, and often alerted them to the fact that other people might be able to see different profiles of you than they could see. - -(But you can use the rich-text information boxes within a profile such as "Tell us about yourself" and link other photos onto the page.) +This is intentional; it avoids confusion by potentially seeing different profile pictures of a contact depending on what website you visit or conversation you participate in. +You can always can use the free text information boxes within a profile such as "Tell us about yourself" and link other photos for yourself. Keywords and Directory Search --- @@ -70,8 +63,7 @@ The search is typically for your nickname or part of your full name. However this search will also match against other profile fields - such as gender, location, "about", work, and education. You may also include "Keywords" in your default profile - which may be used to search for common interests with other members. You have two sets of keywords available - public and private. -Private keywords are *not* visible to anybody. -You could use these keywords to locate people who share membership in secret societies, or that share a love of fishing (for example) - without making this information visible on your public profile. +Private keywords are *not* visible on your profile, but will bring up your profile when matched in a search of the site directory. Public keywords are used in the friend suggestion tool and although they aren't readily visible, they may be seen by viewing the HTML of your profile page. Directory searches are also able to use "boolean" logic so that you can search for "+lesbian +Florida" and find those who's sexual preference (or keywords) contain the world "lesbian" and that live in Florida. @@ -79,7 +71,7 @@ See the section on "Topical Tags" on the [Tags-and-Mentions](help/Tags-and-Menti On your Contacts page is a link to "Find People with Shared Interests" (unless your site administrator has disabled the global directory). This will combine both your public and private keywords, and find people in the global directory who have matching and/or similar keywords. -(Your private keywords are not identified or stored on the global directory). +Private keywords are not identified or stored on the global directory. The more keywords you provide, the more relevant the search results that are returned. These are sorted by relevance. You may discover that you are the first person on the list - because you are very likely the most relevant match for your keywords in the directory. diff --git a/doc/de/Install.md b/doc/de/Install.md index 839c4d523f..ff077351b7 100644 --- a/doc/de/Install.md +++ b/doc/de/Install.md @@ -37,7 +37,7 @@ Requirements * die Möglichkeit, wiederkehrende Aufgaben mit cron (Linux/Mac) oder "Scheduled Tasks" einzustellen (Windows) [Beachte: andere Optionen sind in Abschnitt 7 dieser Dokumentation zu finden] * Installation in einer Top-Level-Domain oder Subdomain (ohne eine Verzeichnis/Pfad-Komponente in der URL) wird bevorzugt. Verzeichnispfade sind für diesen Zweck nicht so günstig und wurden auch nicht ausführlich getestet. -Installation procedure +Installation --- ### Friendica diff --git a/mod/profile.php b/mod/profile.php index ab11b4d5fe..d6cbd276ff 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -191,7 +191,7 @@ function profile_content(App $a, $update = 0) $o .= Widget::commonFriendsVisitor($a->profile['profile_uid']); if (x($_SESSION, 'new_member') && $is_owner) { - $o .= '' . L10n::t('Tips for New Members') . '' . EOL; + $o .= '
' . L10n::t('Tips for New Members') . '
'; } $commpage = $a->profile['page-flags'] == PAGE_COMMUNITY; diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index 4f09b8a112..cfd083f9f8 100644 --- a/src/Content/ForumManager.php +++ b/src/Content/ForumManager.php @@ -49,7 +49,7 @@ class ForumManager "SELECT `contact`.`id`, `contact`.`url`, `contact`.`name`, `contact`.`micro`, `contact`.`thumb` FROM `contact` WHERE `network`= 'dfrn' AND $select AND `uid` = ? - AND NOT `blocked` AND NOT `hidden` AND NOT `pending` AND NOT `archive` + AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND `success_update` > `failure_update` $order ", $uid diff --git a/src/Content/Widget.php b/src/Content/Widget.php index 058a7a1fb5..04dfbb8e03 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -55,19 +55,24 @@ class Widget } } - return replace_macros(get_markup_template('peoplefind.tpl'), array( - '$findpeople' => L10n::t('Find People'), - '$desc' => L10n::t('Enter name or interest'), - '$label' => L10n::t('Connect/Follow'), - '$hint' => L10n::t('Examples: Robert Morgenstein, Fishing'), - '$findthem' => L10n::t('Find'), - '$suggest' => L10n::t('Friend Suggestions'), - '$similar' => L10n::t('Similar Interests'), - '$random' => L10n::t('Random Profile'), - '$inv' => L10n::t('Invite Friends'), - '$directory' => L10n::t('View Global Directory'), - '$global_dir' => $global_dir - )); + $nv = []; + $nv['findpeople'] = L10n::t('Find People'); + $nv['desc'] = L10n::t('Enter name or interest'); + $nv['label'] = L10n::t('Connect/Follow'); + $nv['hint'] = L10n::t('Examples: Robert Morgenstein, Fishing'); + $nv['findthem'] = L10n::t('Find'); + $nv['suggest'] = L10n::t('Friend Suggestions'); + $nv['similar'] = L10n::t('Similar Interests'); + $nv['random'] = L10n::t('Random Profile'); + $nv['inv'] = L10n::t('Invite Friends'); + $nv['directory'] = L10n::t('Global Directory'); + $nv['global_dir'] = $global_dir; + $nv['local_directory'] = L10n::t('Local Directory'); + + $aside = []; + $aside['$nv'] = $nv; + + return replace_macros(get_markup_template('peoplefind.tpl'), $aside); } /** diff --git a/tests/BaseObjectTest.php b/tests/BaseObjectTest.php index 73eb4720ba..b7b90b138e 100644 --- a/tests/BaseObjectTest.php +++ b/tests/BaseObjectTest.php @@ -7,12 +7,14 @@ namespace Friendica\Test; use Friendica\App; use Friendica\BaseObject; -use PHPUnit_Framework_TestCase; - +// backward compatibility +if (!class_exists('\PHPUnit\Framework\TestCase')) { + class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); +} /** * Tests for the BaseObject class. */ -class BaseObjectTest extends PHPUnit_Framework_TestCase +class BaseObjectTest extends \PHPUnit\Framework\TestCase { /** diff --git a/tests/TextTest.php b/tests/TextTest.php index 3a15b97665..3cda2342f3 100644 --- a/tests/TextTest.php +++ b/tests/TextTest.php @@ -5,12 +5,15 @@ namespace Friendica\Test; -use PHPUnit_Framework_TestCase; +// backward compatibility +if (!class_exists('\PHPUnit\Framework\TestCase')) { + class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); +} /** * Tests for text functions. */ -class TextTest extends PHPUnit_Framework_TestCase +class TextTest extends \PHPUnit\Framework\TestCase { /** @@ -61,10 +64,10 @@ class TextTest extends PHPUnit_Framework_TestCase public function testAutonameLength1() { $autoname1=autoname(1); - $this->assertEquals(1, count($autoname1)); + $this->assertEquals(1, strlen($autoname1)); $autoname2=autoname(1); - $this->assertEquals(1, count($autoname2)); + $this->assertEquals(1, strlen($autoname2)); } /** diff --git a/util/credits.txt b/util/credits.txt index c6a5c3f319..e24f45f8a5 100644 --- a/util/credits.txt +++ b/util/credits.txt @@ -12,6 +12,7 @@ Alexandre Alapetite AlfredSK Andi Stadler Andreas H. +Andreas Neustifter Andrej Stieben André Alves André Lohan @@ -209,4 +210,4 @@ zotlabs zottel Zvi ben Yaakov (a.k.a rdc) Михаил -朱陈锬 \ No newline at end of file +朱陈锬 diff --git a/view/global.css b/view/global.css index 30dbeeff09..9d62cf0306 100644 --- a/view/global.css +++ b/view/global.css @@ -202,9 +202,17 @@ blockquote.shared_content { } #profile-photo-wrapper { + clear: both; overflow: hidden; } +#newmember-tips { + font-size: 1.2em; + float: right; + margin-top: -32px; + padding-right: 10px; +} + /* headers */ h1, h2, h3, h4, h5, h6 { margin: 5px 0px 5px 0px; diff --git a/view/templates/paginate.tpl b/view/templates/paginate.tpl index fcd580b071..ee9a1cc330 100644 --- a/view/templates/paginate.tpl +++ b/view/templates/paginate.tpl @@ -1,5 +1,5 @@ +{{if $pager && ($pager.prev || $pager.next)}}
- {{if $pager}} {{if $pager.prev}}{{$pager.prev.text}}{{/if}} {{if $pager.first}}{{$pager.first.text}}{{/if}} @@ -9,5 +9,5 @@ {{if $pager.last}} {{$pager.last.text}}{{/if}} {{if $pager.next}}{{$pager.next.text}}{{/if}} - {{/if}}
+{{/if}} diff --git a/view/templates/peoplefind.tpl b/view/templates/peoplefind.tpl index 481bdd71e0..67f7a8086b 100644 --- a/view/templates/peoplefind.tpl +++ b/view/templates/peoplefind.tpl @@ -1,16 +1,17 @@
-

{{$findpeople}}

-
{{$desc}}
+

{{$nv.findpeople}}

+
{{$nv.desc}}
- +
- - - - - {{if $inv}} - + + + + + + {{if $nv.inv}} + {{/if}}
diff --git a/view/theme/frio/templates/peoplefind.tpl b/view/theme/frio/templates/peoplefind.tpl index 5a84f26c8f..f5bf57c02d 100644 --- a/view/theme/frio/templates/peoplefind.tpl +++ b/view/theme/frio/templates/peoplefind.tpl @@ -1,22 +1,23 @@ -
-

{{$findpeople}}

+

{{$nv.findpeople}}

{{* The search field *}} - +
+ {{* Directory links *}} + + {{* Additional links *}} - - + + - {{if $inv}} - + {{if $nv.inv}} + {{/if}}
- diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css index 507b4b5709..710c76f6af 100644 --- a/view/theme/vier/style.css +++ b/view/theme/vier/style.css @@ -1153,9 +1153,9 @@ aside #profiles-menu { left: 10px; } -aside #search-text, aside #side-follow-url, aside #side-peoplefind-url, right_aside input { - width: 140px; - height: 17px; +aside #search-text, aside #side-follow-url, aside #side-peoplefind-url, right_aside #side-peoplefind-url { + width: 65%; + float: left; padding-left: 10px; /*border-top-left-radius: 15px; border-top-right-radius: 15px; @@ -1167,6 +1167,15 @@ aside #search-text, aside #side-follow-url, aside #side-peoplefind-url, right_as -moz-border-right-colors: #dbdbdb;*/ } +aside #side-peoplefind-submit, right_aside #side-peoplefind-submit { + width: 25%; + float: right; +} + +#side-match-link { + clear: both; +} + aside h4, right_aside h4 { margin-bottom: 0px; margin-top: 0px; diff --git a/view/theme/vier/templates/communityhome.tpl b/view/theme/vier/templates/communityhome.tpl index a85b4419f8..b32b638042 100644 --- a/view/theme/vier/templates/communityhome.tpl +++ b/view/theme/vier/templates/communityhome.tpl @@ -39,17 +39,7 @@ {{/if}} {{if $nv}} -
-

{{$nv.title.1}}

- -{{$nv.search}} -
+{{include file='peoplefind.tpl' nv=$nv}} {{/if}} {{if $lastusers_title}} diff --git a/view/theme/vier/theme.php b/view/theme/vier/theme.php index e758cb6515..c752594653 100644 --- a/view/theme/vier/theme.php +++ b/view/theme/vier/theme.php @@ -196,19 +196,18 @@ function vier_community_info() //right_aside FIND FRIENDS if ($show_friends && local_user()) { $nv = []; - $nv['title'] = ["", L10n::t('Find Friends'), "", ""]; - $nv['directory'] = ['directory', L10n::t('Local Directory'), "", ""]; - $nv['global_directory'] = [get_server(), L10n::t('Global Directory'), "", ""]; - $nv['match'] = ['match', L10n::t('Similar Interests'), "", ""]; - $nv['suggest'] = ['suggest', L10n::t('Friend Suggestions'), "", ""]; - $nv['invite'] = ['invite', L10n::t('Invite Friends'), "", ""]; - - $nv['search'] = '
- - - - - '; + $nv['findpeople'] = L10n::t('Find People'); + $nv['desc'] = L10n::t('Enter name or interest'); + $nv['label'] = L10n::t('Connect/Follow'); + $nv['hint'] = L10n::t('Examples: Robert Morgenstein, Fishing'); + $nv['findthem'] = L10n::t('Find'); + $nv['suggest'] = L10n::t('Friend Suggestions'); + $nv['similar'] = L10n::t('Similar Interests'); + $nv['random'] = L10n::t('Random Profile'); + $nv['inv'] = L10n::t('Invite Friends'); + $nv['directory'] = L10n::t('Global Directory'); + $nv['global_dir'] = get_server(); + $nv['local_directory'] = L10n::t('Local Directory'); $aside['$nv'] = $nv; }