Deporteando (@albertof) |
which is the code: Quick Share box? . and where it gets for use in the profiles Friends and Fans.(It is necessary to comment in their profiles)
for friends:: includes/libs/pages.inc.php function settabmenu
[code]
if ($page['type'] == 'u') {
/ new code /
if ($owner['id'] != $client['id'] && !$owner['is_friend']) {
$page['no_comment'] = 1;
}
/ /
/ old code
if ($owner['id'] != $client['id']) {
$page['no_comment'] = 1;
}
/
}
[/code]
includes/libs/common.inc.php function stream_form
[code]
if ($page['type'] == 'u' && $page['uid'] != $client['id']) {
$res = sql_query("select username from ".tb()."accounts where id='{$page['uid']}'");
$owner = sql_fetch_array($res);
$commentat = $default_msg = '@'.$owner['username'].' ';
// $target_page_id = $client['page']['id']; <-- old line
$target_page_id = $page['id']; // <-- new line
$oncomment = 1;
$miniposttag = t('Comment');
}
[/code]
Jcow Master @falcone
114 months ago
|