Added a feature to hide rating buttons from a members channel and profile pages.
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user