From a036d88a4e6e6a83f9962f0f46094cfdac99d263 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Mon, 18 Jan 2016 21:37:47 +0100 Subject: Added a feature to hide rating buttons from a members channel and profile pages. --- include/identity.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 2a02d4093..32c4dd130 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1051,8 +1051,10 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) { $tpl = get_markup_template('profile_vcard.tpl'); require_once('include/widgets.php'); - $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( '$profile' => $profile, '$connect' => $connect, @@ -1773,4 +1775,4 @@ function get_cover_photo($channel_id,$format = 'bbcode', $res = PHOTO_RES_COVER_ return $output; -} \ No newline at end of file +} -- cgit v1.2.3