first cut at rating widget. The flaw is that it is limited because it requires local_channel() (formerly local_user()). We need to extend this to take you home like rpost does if you're logged in as remote_channel() - and/or we need zot to send the rating message to the source channel and target in addition to the directories.
This commit is contained in:
@@ -943,6 +943,11 @@ logger('online: ' . $profile['online']);
|
||||
|
||||
$tpl = get_markup_template('profile_vcard.tpl');
|
||||
|
||||
// This isn't ideal here because it requires local_channel().
|
||||
// We need the rating widget to recognise and take you home if you're remote.
|
||||
// require_once('include/widgets.php');
|
||||
// $z = widget_rating(array('target' => $profile['channel_hash']));
|
||||
|
||||
$o .= replace_macros($tpl, array(
|
||||
'$profile' => $profile,
|
||||
'$connect' => $connect,
|
||||
@@ -954,6 +959,7 @@ logger('online: ' . $profile['online']);
|
||||
'$homepage' => $homepage,
|
||||
'$chanmenu' => $channel_menu,
|
||||
'$diaspora' => $diaspora,
|
||||
'$rating' => $z,
|
||||
'$contact_block' => $contact_block,
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user