Hi there. Great module and I like it alot.
I have one slight problem. All I really wanted was the site wide follow ability for the site I'm designing.

I've placed the "Follow user" block in the disabled section under blocks.
I've also gone in and tried to put an exclude filter on the "Follow user" block so it won't show up in the user profile.

But every time I log in with my authenticated test user and go to his profile. I see a tab for "My follow links" on the top for the user profile.

So am I doing something wrong when trying to turn this one option off and leave the site wide follow on?

Thanks.

CommentFileSizeAuthor
#8 follow_users.patch794 bytesq0rban
#4 follow_users.patch746 bytesq0rban
#3 follow.gif9.37 KBsarcastyx

Comments

q0rban’s picture

Hi there! Glad the module is helpful for you.

Did you disable permissions for the user role in question? I believe that if you disable the add user follow links permission for that role, the menu item will go away...

q0rban’s picture

Status: Active » Fixed
sarcastyx’s picture

Status: Fixed » Active
StatusFileSize
new9.37 KB

Hi there, sorry for the delay in responding back but been bogged down with work.

Yes I've got the permission set to off for everyone but the administrator.

Still the Users follow links show up under their user profile.

Thanks.

q0rban’s picture

Status: Active » Fixed
StatusFileSize
new746 bytes

Oh, yeah, look at that. My apologies. I've committed a fix, and attached the patch here in case you need it right away.
http://drupal.org/cvs?commit=242500

AlexisWilke’s picture

Status: Fixed » Active

q0rban,

You're nearly there...

The $account->uid does not work too well...

-  return (($GLOBALS['user']->uid == $uid) || user_access('edit any user follow links')) && $account->uid > 0;
+  return ((($GLOBALS['user']->uid == $uid) && user_access('edit own follow links')) || user_access('edit any user follow links')) && $account->uid > 0;

The following actually works for both people, those who want and those who don't want the follow links in the user account:

  return ((($GLOBALS['user']->uid == $uid) && user_access('edit own follow links')) || user_access('edit any user follow links')) && $uid > 0;
q0rban’s picture

Haha.. good catch!

q0rban’s picture

Status: Active » Fixed
q0rban’s picture

StatusFileSize
new794 bytes

Patch attached if you need it ASAP..

sarcastyx’s picture

Cool and thanks will give it a try.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.