Login     Sign up
Remove Follower
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

How to remove unwanted follower of your profile..!!

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

to block him ?

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Ok i know that..
but if you block him/her they can still send you messages and follow you..

means blocking is not working..
no use of it

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

there is also other stuff with this followers that is not working. I'll wait a few days till the new version is out and see if these errors are fixed.

174 months ago
adil (@adil)
Join date: May 9th 2010
Community posts: 202
View Profile
Send Message

Followers are not friends so they have the right to follow your news but not comment to u ... so why blocking the can see u from far as ur neighbor small girl she is following your steps but she never say any thing ... just watching by her eyes ... does that hurt!!!

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Every body is not like that small girl...
How your followers can comment on you posts..

And do you not think it's really frustrating for your network uses to see that guy/gal following you even if you dont want to see them any at all...

now here comes that your users want to unregister them selfs..
and there is no option to unregister. this causes your reputation down in the market which you don't want..

So security is must for any network or site every one wants to leave care free and secure life.>!!

174 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

add function remove_follower in follow.php

[code]
function remove_follower($fid = 0) {
global $client;
if (!$user = valid_user($fid) ) {
die('wrong uid');
}
$res = sql_query("select * from ".tb()."followers where uid='$fid' and fid='{$client['id']}' limit 1");
if (sql_counts($res)) {
sql_query("delete from ".tb()."followers where uid='$fid' and fid='{$client['id']}'");
sql_query("update ".tb()."accounts set followers=followers-1 where id='{$client['id']}'");
}
redirect(url('follow/myfollowers'),1);
}
[/code]

some modification in function my followers

[code]
function myfollowers() {
global $client, $apps, $uhome,$ubase, $offset, $num_per_page, $page;
nav(t('My Followers'));
c('
<ul class="small_avatars">');
$res = sql_query("select u.id,u.username,u.avatar from ".tb()."followers as f left join ".tb()."accounts as u on u.id=f.uid where f.fid='{$client['id']}' order by u.lastlogin DESC limit $offset, $num_per_page");
$output = '';
while ($row = sql_fetch_array($res)) {
$f = 1;
c('<li><span>'.url('u/'.$row['username'],$row['username']).'</span><br />
'.avatar($row).'<br />
'.url('follow/remove_follower/'.$row['id'],t('Remove')).'</li>');
}
c('</ul>');
// pager
$res = sql_query("select count(*) as total from ".tb()."followers where fid='{$client['id']}' ".dbhold() );
$row = sql_fetch_array($res);
$total = $row['total'];
$pb = new PageBar($total, $num_per_page, $page);
$pb->paras = $ubase.'follow/myfollowers';
$pagebar = $pb->whole_num_bar();
$output .= $pagebar;
c($output);
if (!$total) {
c('<p>'.t('You have no follower.').'</p>');
}
section_close(t('My Followers'));
}

[/code]

174 months ago
Abhimanyu (@abhimanyusharma003)
Join date: Aug 12th 2010
Community posts: 124
View Profile
Send Message

Yup..!!
works.. great.!!!
Thanks very much..!!
At least a little improvement in security..

174 months ago