diff options
author | redmatrix <mike@macgirvin.com> | 2016-08-25 17:43:07 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-08-25 17:43:07 -0700 |
commit | 38ea8bee935181220e89fd22120865ab63af9da6 (patch) | |
tree | f08406ca44b9a76a5a4ce001acc63cf05f763bd1 /include | |
parent | a969f181379a350609b24ba8258fcdd204f07d11 (diff) | |
download | volse-hubzilla-38ea8bee935181220e89fd22120865ab63af9da6.tar.gz volse-hubzilla-38ea8bee935181220e89fd22120865ab63af9da6.tar.bz2 volse-hubzilla-38ea8bee935181220e89fd22120865ab63af9da6.zip |
ratings are gone. They can be enabled, but there is no UI for doing so at this time; and will likely only be available in a 'pro' configuration once the new implementation details have been hashed out. This appears to require a mechanism for rebuttal before it can again be opened to the public. There are also some synchronisation issues to contend with; as ratings are currently only distributed to active directory servers. There is no reliable mechanism for a new directory server to fetch existing ratings.
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 4 | ||||
-rw-r--r-- | include/conversation.php | 7 | ||||
-rw-r--r-- | include/features.php | 2 | ||||
-rw-r--r-- | include/widgets.php | 4 |
4 files changed, 7 insertions, 10 deletions
diff --git a/include/channel.php b/include/channel.php index 47db7e806..2c892dbb9 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1103,8 +1103,8 @@ function profile_sidebar($profile, $block = 0, $show_connect = true, $zcard = fa require_once('include/widgets.php'); - if(! feature_enabled($profile['uid'],'hide_rating')) - $z = widget_rating(array('target' => $profile['channel_hash'])); +// if(! feature_enabled($profile['uid'],'hide_rating')) + $z = widget_rating(array('target' => $profile['channel_hash'])); $o .= replace_macros($tpl, array( '$zcard' => $zcard, diff --git a/include/conversation.php b/include/conversation.php index 637234bff..2e056b620 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -941,12 +941,9 @@ function item_photo_menu($item){ $clean_url = normalise_link($item['author-link']); } - $poco_rating = get_config('system','poco_rating_enable'); - // if unset default to enabled - if($poco_rating === false) - $poco_rating = true; + $rating_enabled = get_config('system','rating_enabled'); - $ratings_url = (($poco_rating) ? z_root() . '/ratings/' . urlencode($item['author_xchan']) : ''); + $ratings_url = (($rating_enabled) ? z_root() . '/ratings/' . urlencode($item['author_xchan']) : ''); $post_menu = Array( t("View Source") => $vsrc_link, diff --git a/include/features.php b/include/features.php index a5baddf52..4e86b7881 100644 --- a/include/features.php +++ b/include/features.php @@ -55,7 +55,7 @@ function get_features($filtered = true) { array('profile_export', t('Profile Import/Export'), t('Save and load profile details across sites/channels'),false,get_config('feature_lock','profile_export')), array('webpages', t('Web Pages'), t('Provide managed web pages on your channel'),false,get_config('feature_lock','webpages')), array('wiki', t('Wiki'), t('Provide a wiki for your channel'),(($server_role === 'basic') ? false : true),get_config('feature_lock','wiki')), - array('hide_rating', t('Hide Rating'), t('Hide the rating buttons on your channel and profile pages. Note: People can still rate you somewhere else.'),false,get_config('feature_lock','hide_rating')), +// array('hide_rating', t('Hide Rating'), t('Hide the rating buttons on your channel and profile pages. Note: People can still rate you somewhere else.'),false,get_config('feature_lock','hide_rating')), array('private_notes', t('Private Notes'), t('Enables a tool to store notes and reminders (note: not encrypted)'),false,get_config('feature_lock','private_notes')), array('nav_channel_select', t('Navigation Channel Select'), t('Change channels directly from within the navigation dropdown menu'),false,get_config('feature_lock','nav_channel_select')), array('photo_location', t('Photo Location'), t('If location data is available on uploaded photos, link this to a map.'),false,get_config('feature_lock','photo_location')), diff --git a/include/widgets.php b/include/widgets.php index 68db74703..765cb4d42 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1286,8 +1286,8 @@ function widget_random_block($arr) { function widget_rating($arr) { - $poco_rating = get_config('system','poco_rating_enable'); - if((! $poco_rating) && ($poco_rating !== false)) { + $rating_enabled = get_config('system','rating_enabled'); + if(! $rating_enabled) { return; } |