diff --git a/doc/Install.md b/doc/Install.md index b8929d371..2a80cf72a 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 715d27d95..aceb94da3 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 839c4d523..ff077351b 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 ab11b4d5f..d6cbd276f 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 .= '
'; } $commpage = $a->profile['page-flags'] == PAGE_COMMUNITY; diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index 4f09b8a11..cfd083f9f 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 058a7a1fb..04dfbb8e0 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 73eb4720b..b7b90b138 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 3a15b9766..3cda2342f 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 c6a5c3f31..e24f45f8a 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 30dbeeff0..9d62cf030 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 fcd580b07..ee9a1cc33 100644 --- a/view/templates/paginate.tpl +++ b/view/templates/paginate.tpl @@ -1,5 +1,5 @@ +{{if $pager && ($pager.prev || $pager.next)}}