Login     Sign up
Deporteando (@albertof)
114 months ago
941 Views

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)

2 people followed this question
0

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
@falcone hello I put new codes , all very well,but after reloading the comment does not appear the wall of a friend ' s
114 months ago
@albertof did you put this line $target_page_id = $page['id']; ?
114 months ago
@falcone If I deleted the old code and paste the new
114 months ago
@falcone sorry , it works well , it was placing anywhere else. thank you
114 months ago