+++ /dev/null
-<small style="display: inline-block; max-width: 500px;">{lang}wcf.message.share.privacy.description{/lang}</small>
-
-<ul>
- <li><label><input type="checkbox" name="facebook" value="1"{if $settings[facebook]} checked="checked"{/if}> {lang}wcf.message.share.facebook{/lang}</label></li>
- <li><label><input type="checkbox" name="twitter" value="1"{if $settings[twitter]} checked="checked"{/if}> {lang}wcf.message.share.twitter{/lang}</label></li>
- <li><label><input type="checkbox" name="google" value="1"{if $settings[google]} checked="checked"{/if}> {lang}wcf.message.share.google{/lang}</label></li>
- <li><label><input type="checkbox" name="reddit" value="1"{if $settings[reddit]} checked="checked"{/if}> {lang}wcf.message.share.reddit{/lang}</label></li>
-</ul>
-
-<div class="formSubmit">
- <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
-</div>
* @property-read string $notificationMailToken
* @property-read string $authData
* @property-read integer $likesReceived
- * @property-read string $socialNetworkPrivacySettings
*/
final class User extends DatabaseObject implements IRouteController, IUserContent {
/**
/**
* Returns the social network privacy settings of the user.
+ * @deprecated 3.0
*
* @return boolean[]
*/
public function getSocialNetworkPrivacySettings() {
- $settings = false;
- if ($this->userID && WCF::getUser()->socialNetworkPrivacySettings) {
- $settings = @unserialize(WCF::getUser()->socialNetworkPrivacySettings);
- }
-
- if ($settings === false) {
- $settings = [
- 'facebook' => false,
- 'google' => false,
- 'reddit' => false,
- 'twitter' => false
- ];
- }
-
- return $settings;
+ return [
+ 'facebook' => false,
+ 'google' => false,
+ 'reddit' => false,
+ 'twitter' => false
+ ];
}
}
* @return User
*/
public function create() {
- if (!isset($this->parameters['data']['socialNetworkPrivacySettings'])) {
- $this->parameters['data']['socialNetworkPrivacySettings'] = '';
- }
-
/** @var User $user */
$user = parent::create();
$userEditor = new UserEditor($user);
/**
* Validates parameters to retrieve the social network privacy settings.
+ * @deprecated 3.0
*/
public function validateGetSocialNetworkPrivacySettings() {
// does nothing
/**
* Returns the social network privacy settings.
- *
- * @return string[]
+ * @deprecated 3.0
*/
public function getSocialNetworkPrivacySettings() {
- $settings = @unserialize(WCF::getUser()->socialNetworkPrivacySettings);
- if (!is_array($settings)) {
- $settings = [
- 'facebook' => false,
- 'google' => false,
- 'reddit' => false,
- 'twitter' => false
- ];
- }
-
- WCF::getTPL()->assign([
- 'settings' => $settings
- ]);
-
- return [
- 'template' => WCF::getTPL()->fetch('shareButtonsPrivacySettings')
- ];
+ // does nothing
}
/**
* Validates the 'saveSocialNetworkPrivacySettings' action.
+ * @deprecated 3.0
*/
public function validateSaveSocialNetworkPrivacySettings() {
- $this->readBoolean('facebook', true);
- $this->readBoolean('google', true);
- $this->readBoolean('reddit', true);
- $this->readBoolean('twitter', true);
+ // does nothing
}
/**
* Saves the social network privacy settings.
- *
- * @return boolean[]
+ * @deprecated 3.0
*/
public function saveSocialNetworkPrivacySettings() {
- $settings = [
- 'facebook' => $this->parameters['facebook'],
- 'google' => $this->parameters['google'],
- 'reddit' => $this->parameters['reddit'],
- 'twitter' => $this->parameters['twitter']
- ];
-
- $userEditor = new UserEditor(WCF::getUser());
- $userEditor->update([
- 'socialNetworkPrivacySettings' => serialize($settings)
- ]);
-
- return [
- 'settings' => $settings
- ];
+ // does nothing
}
}
<item name="wcf.message.share.linkedIn"><![CDATA[LinkedIn]]></item>
<item name="wcf.message.share.pinterest"><![CDATA[Pinterest]]></item>
<item name="wcf.message.share.xing"><![CDATA[XING]]></item>
- <item name="wcf.message.share.privacy"><![CDATA[Einstellungen zum Teilen]]></item>
- <item name="wcf.message.share.privacy.description"><![CDATA[Die Anzahl der Teilungen auf der jeweiligen Plattform werden nur bei aktivierten Anbietern ermittelt, diese Angaben werden durch Ihren Browser direkt vom Anbieter abgefragt.]]></item>
<item name="wcf.message.smilies"><![CDATA[Smileys]]></item>
<item name="wcf.message.button.extendedReply"><![CDATA[Erweiterte Antwort]]></item>
<item name="wcf.message.button.extendedEdit"><![CDATA[Erweiterte Bearbeitung]]></item>
<item name="wcf.message.share.linkedIn"><![CDATA[LinkedIn]]></item>
<item name="wcf.message.share.pinterest"><![CDATA[Pinterest]]></item>
<item name="wcf.message.share.xing"><![CDATA[XING]]></item>
- <item name="wcf.message.share.privacy"><![CDATA[Privacy Settings]]></item>
- <item name="wcf.message.share.privacy.description"><![CDATA[Displaying the number of shares is only available for enabled providers, data will be fetched directly using your browser.]]></item>
<item name="wcf.message.smilies"><![CDATA[Smilies]]></item>
<item name="wcf.message.button.extendedReply"><![CDATA[More Options]]></item>
<item name="wcf.message.button.extendedEdit"><![CDATA[More Options]]></item>
notificationMailToken VARCHAR(20) NOT NULL DEFAULT '',
authData VARCHAR(255) NOT NULL DEFAULT '',
likesReceived MEDIUMINT(7) NOT NULL DEFAULT 0,
- socialNetworkPrivacySettings TEXT,
KEY username (username),
KEY registrationDate (registrationDate),