<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.condition.userGroupAssignment</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.userOptions</name>
<definitionname>com.woltlab.wcf.condition.userGroupAssignment</definitionname>
<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.condition.trophy</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.userOptions</name>
<definitionname>com.woltlab.wcf.condition.trophy</definitionname>
<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.condition.notice</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditionobject>com.woltlab.wcf.user</conditionobject>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.user.userOptions</name>
<definitionname>com.woltlab.wcf.condition.notice</definitionname>
<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.condition.ad</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditionobject>com.woltlab.wcf.user</conditionobject>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.user.userOptions</name>
<definitionname>com.woltlab.wcf.condition.ad</definitionname>
<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.bulkProcessing.user.condition</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.userOptions</name>
<definitionname>com.woltlab.wcf.bulkProcessing.user.condition</definitionname>
<propertyname>likesReceived</propertyname>
<minvalue>0</minvalue>
</type>
- <type>
- <name>com.woltlab.wcf.userReputation</name>
- <definitionname>com.woltlab.wcf.condition.userSearch</definitionname>
- <classname>wcf\system\condition\UserReputationCondition</classname>
- <conditiongroup>contents</conditiongroup>
- </type>
<type>
<name>com.woltlab.wcf.userOptions</name>
<definitionname>com.woltlab.wcf.condition.userSearch</definitionname>
/**
* @inheritDoc
*/
- public $validSortFields = ['username', 'registrationDate', 'activityPoints', 'reactionReputation', 'lastActivityTime'];
+ public $validSortFields = ['username', 'registrationDate', 'activityPoints', 'likesReceived', 'lastActivityTime'];
/**
* @inheritDoc
* @inheritDoc
*/
protected function readObjects() {
- if ($this->sortField === 'reactionReputation') {
- $this->sqlOrderBy = 'user_table.likesReceived '. $this->sortOrder;
- }
-
parent::readObjects();
$userIDs = [];
+++ /dev/null
-<?php
-namespace wcf\system\condition;
-use wcf\data\condition\Condition;
-use wcf\data\user\User;
-use wcf\data\user\UserList;
-use wcf\data\DatabaseObjectList;
-use wcf\system\WCF;
-
-/**
- * Condition implementation for the user reputation of an user.
- *
- * @author Joshua Ruesweg
- * @copyright 2001-2019 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package WoltLabSuite\Core\System\Condition
- */
-class UserReputationCondition extends AbstractIntegerCondition implements IContentCondition, IObjectListCondition, IUserCondition {
- use TObjectListUserCondition;
-
- /**
- * @inheritDoc
- */
- public function addObjectListCondition(DatabaseObjectList $objectList, array $conditionData) {
- if (!($objectList instanceof UserList)) {
- throw new \InvalidArgumentException("Object list is no instance of '".UserList::class."', instance of '".get_class($objectList)."' given.");
- }
-
- if (isset($conditionData['greaterThan'])) {
- /** @noinspection PhpUndefinedFieldInspection */
- $objectList->getConditionBuilder()->add('user_table.likesReceived > ?', [$conditionData['greaterThan']]);
- }
- if (isset($conditionData['lessThan'])) {
- $objectList->getConditionBuilder()->add('user_table.likesReceived < ?', [$conditionData['lessThan']]);
- }
- }
-
- /**
- * @inheritDoc
- */
- public function checkUser(Condition $condition, User $user) {
- if ($condition->greaterThan !== null && $user->likesReceived <= $condition->greaterThan) {
- return false;
- }
- if ($condition->lessThan !== null && $user->likesReceived >= $condition->lessThan) {
- return false;
- }
-
- return true;
- }
-
- /**
- * @inheritDoc
- */
- protected function getIdentifier() {
- return 'user_userReputation';
- }
-
- /**
- * @inheritDoc
- */
- protected function getLabel() {
- return WCF::getLanguage()->get('wcf.user.condition.userReputation');
- }
-
- /**
- * @inheritDoc
- */
- public function showContent(Condition $condition) {
- if (!WCF::getUser()->userID) return false;
-
- return $this->checkUser($condition, WCF::getUser());
- }
-}
<item name="wcf.acp.option.module_user_profile_wall"><![CDATA[Benutzerprofil-Pinnwand]]></item>
<item name="wcf.acp.option.category.message.sidebar"><![CDATA[Seitenleiste]]></item>
<item name="wcf.acp.option.message_sidebar_enable_online_status"><![CDATA[Online-Status der Autoren anzeigen]]></item>
- <item name="wcf.acp.option.message_sidebar_enable_likes_received"><![CDATA[Reputation der Autoren anzeigen]]></item>
+ <item name="wcf.acp.option.message_sidebar_enable_likes_received"><![CDATA[Erhaltene Reaktionen der Autoren anzeigen]]></item>
<item name="wcf.acp.option.message_sidebar_enable_activity_points"><![CDATA[Aktivitätspunkte der Autoren anzeigen]]></item>
<item name="wcf.acp.option.message_sidebar_enable_trophy_points"><![CDATA[Anzahl der Trophäen der Autoren anzeigen]]></item>
<item name="wcf.acp.option.message_sidebar_user_options"><![CDATA[Ausgewählte Profilfelder der Autoren anzeigen]]></item>
<item name="wcf.like.reaction.noMoreEntries"><![CDATA[Keine weiteren Reaktionen]]></item>
<item name="wcf.like.reactionsReceived"><![CDATA[Erhaltene Reaktionen]]></item>
<item name="wcf.like.reactionsGiven"><![CDATA[Vergebene Reaktionen]]></item>
- <item name="wcf.like.reactionReputation"><![CDATA[Reputation aus Reaktionen]]></item>
</category>
<category name="wcf.map">
<item name="wcf.map.noLocationSuggestions"><![CDATA[Für den aktuellen Kartenausschnitt liegen keine Ortsvorschläge vor.]]></item>
<item name="wcf.user.boxList.description.registrationDate"><![CDATA[{@$boxUser->registrationDate|time}]]></item>
<item name="wcf.user.mostOnlineUsers"><![CDATA[Meiste Benutzer online]]></item>
<item name="wcf.user.sortField.activityPoints"><![CDATA[Punkte]]></item>
- <item name="wcf.user.sortField.likesReceived"><![CDATA[Erhaltene Likes]]></item>
+ <item name="wcf.user.sortField.likesReceived"><![CDATA[Erhaltene Reaktionen]]></item>
<item name="wcf.user.sortField.registrationDate"><![CDATA[Registrierungsdatum]]></item>
<item name="wcf.user.sortField.username"><![CDATA[Benutzername]]></item>
<item name="wcf.user.sortField.lastActivityTime"><![CDATA[Letzte Aktivität]]></item>
- <item name="wcf.user.sortField.reactionReputation"><![CDATA[Reputation aus Reaktionen]]></item>
<item name="wcf.user.articles"><![CDATA[Artikel]]></item>
<item name="wcf.user.status.banned"><![CDATA[Der Benutzer ist gesperrt.]]></item>
<item name="wcf.user.status.isDisabled"><![CDATA[Der Benutzer ist nicht freigeschaltet.]]></item>
<item name="wcf.user.condition.groupIDs.description"><![CDATA[Benutzer müssen in allen ausgewählten Benutzergruppen Mitglied sein.]]></item>
<item name="wcf.user.condition.languages"><![CDATA[Sprachen]]></item>
<item name="wcf.user.condition.lastActivityTime"><![CDATA[Letzte Aktivität]]></item>
- <item name="wcf.user.condition.likesReceived"><![CDATA[Positive Reaktionen]]></item>
+ <item name="wcf.user.condition.likesReceived"><![CDATA[Erhaltene Reaktionen]]></item>
<item name="wcf.user.condition.mobileBrowser"><![CDATA[Mobiler Browser]]></item>
<item name="wcf.user.condition.mobileBrowser.usesMobileBrowser"><![CDATA[Verwendet mobilen Browser]]></item>
<item name="wcf.user.condition.mobileBrowser.usesMobileBrowser.error.conflict"><![CDATA[„Verwendet mobilen Browser“ und „Verwendet keinen mobilen Browser“ können nicht gleichzeitig ausgewählt werden.]]></item>
<item name="wcf.user.condition.notUserTrophyIDs.description"><![CDATA[Benutzer dürfen keine der ausgewählten Trophäen erhalten haben.]]></item>
<item name="wcf.user.condition.notUserTrophyIDs.error.userTrophyIntersection"><![CDATA[Die ausgewählten Trophäen in „hat Trophäe“ und „hat nicht Trophäe“ sind widersprüchlich.]]></item>
<item name="wcf.user.condition.trophyPoints"><![CDATA[Trophäen]]></item>
- <item name="wcf.user.condition.userReputation"><![CDATA[Reputation aus Reaktionen]]></item>
</category>
<category name="wcf.user.coverPhoto">
<item name="wcf.user.coverPhoto"><![CDATA[Titelbild]]></item>
<item name="wcf.like.jsTooltip"><![CDATA[{literal}{if $likes}{#$likes} Like{if $likes != 1}s{/if}{if $dislikes}, {/if}{/if}{if $dislikes}{#$dislikes} Dislike{if $dislikes != 1}s{/if}{/if}{/literal}]]></item>
<item name="wcf.like.button.like"><![CDATA[Like]]></item>
<item name="wcf.like.button.dislike"><![CDATA[Dislike]]></item>
- <item name="wcf.like.likesReceived"><![CDATA[Reputation]]></item>
+ <item name="wcf.like.likesReceived"><![CDATA[Reactions Received]]></item>
<item name="wcf.like.showLikesReceived"><![CDATA[Reactions Received by {$user->username}]]></item>
<item name="wcf.like.likesGiven"><![CDATA[Likes Given]]></item>
<item name="wcf.like.dislikesReceived"><![CDATA[Dislikes Received]]></item>
<item name="wcf.like.reaction.noMoreEntries"><![CDATA[There are not any new reactions at the moment.]]></item>
<item name="wcf.like.reactionsReceived"><![CDATA[Reactions Received]]></item>
<item name="wcf.like.reactionsGiven"><![CDATA[Reactions Given]]></item>
- <item name="wcf.like.reactionReputation"><![CDATA[Reputation from Reactions]]></item>
</category>
<category name="wcf.map">
<item name="wcf.map.noLocationSuggestions"><![CDATA[There are no location suggestions in the current map section.]]></item>
<item name="wcf.user.boxList.description.registrationDate"><![CDATA[{@$boxUser->registrationDate|time}]]></item>
<item name="wcf.user.mostOnlineUsers"><![CDATA[Most Online Users]]></item>
<item name="wcf.user.sortField.activityPoints"><![CDATA[Points]]></item>
- <item name="wcf.user.sortField.likesReceived"><![CDATA[Likes Received]]></item>
+ <item name="wcf.user.sortField.likesReceived"><![CDATA[Reactions Received]]></item>
<item name="wcf.user.sortField.registrationDate"><![CDATA[Registration Date]]></item>
<item name="wcf.user.sortField.username"><![CDATA[Username]]></item>
<item name="wcf.user.sortField.lastActivityTime"><![CDATA[Last Activity]]></item>
- <item name="wcf.user.sortField.reactionReputation"><![CDATA[Reputation from Reactions]]></item>
<item name="wcf.user.articles"><![CDATA[Articles]]></item>
<item name="wcf.user.status.banned"><![CDATA[The user has been banned.]]></item>
<item name="wcf.user.status.isDisabled"><![CDATA[The user has not been approved yet.]]></item>
<item name="wcf.user.condition.groupIDs.description"><![CDATA[User is a member of the selected user group(s).]]></item>
<item name="wcf.user.condition.languages"><![CDATA[Language(s)]]></item>
<item name="wcf.user.condition.lastActivityTime"><![CDATA[Last Activity]]></item>
- <item name="wcf.user.condition.likesReceived"><![CDATA[Positive Reactions]]></item>
+ <item name="wcf.user.condition.likesReceived"><![CDATA[Reactions Received]]></item>
<item name="wcf.user.condition.mobileBrowser"><![CDATA[Mobile Device or Desktop]]></item>
<item name="wcf.user.condition.mobileBrowser.usesMobileBrowser"><![CDATA[Uses mobile device]]></item>
<item name="wcf.user.condition.mobileBrowser.usesMobileBrowser.error.conflict"><![CDATA[You cannot simultaneously select “Uses mobile device” and “Uses desktop”.]]></item>
<item name="wcf.user.condition.notUserTrophyIDs.description"><![CDATA[User has not received the selected trophies.]]></item>
<item name="wcf.user.condition.notUserTrophyIDs.error.userTrophyIntersection"><![CDATA[The selected trophies in “User has Trophy” and “User does not have Trophy” are conflicting.]]></item>
<item name="wcf.user.condition.trophyPoints"><![CDATA[Trophies]]></item>
- <item name="wcf.user.condition.userReputation"><![CDATA[Reputation from Reactions]]></item>
</category>
<category name="wcf.user.coverPhoto">
<item name="wcf.user.coverPhoto"><![CDATA[Cover Photo]]></item>