24 pointsStarting to get into this DEV thingI'm new here
simos
Member
—
26th January 2008 11:51
I've added to my mu, the friends plugin but there is a problem, an users that already have friends, can do an other request to begin friends and so his blog is showed two times in friends list. the plugin don do any check ?
I've added to my mu, the friends plugin but there is a problem, an users that already have friends, can do an other request to begin friends and so his blog is showed two times in friends list. the plugin don do any check ?
sorry for my bad english, i hope you have understand ... i think is needed a check that if primary blog of the user have already one blog in wp_friends, the link to add to the friensslist is not showed, i've try to make a check but i'm not a php programmer and so without any result.
That's about as good a fix as any for the time being. We had been holding off on developing a new friends plugin due to BuddyPress but now that BuddyPress is practically dead in the water there's a good chance we'll start on a new plugin sometime in February. No guarantees at this point though. February is going to be a busy month for us.
Wasn't sure whether I should resurrect this old post or start a new one, so here goes ...
I just downloaded and am testing the latest version (1.1.3) of the Friends plugin. It seems to be working fine, but I noticed the folowing issues:
1. The plugin code itself reads "Plugin Name: Report Posts Comments". That should be an easy fix! ;-)
2. There is no action for messaging friends in the Friends admin. Can I assume this just requires the Messaging plugin to be installed? The install instructions do not indicate that it is required.
3. There is no link for adding a user as a friend in the widget. And yes, I logged in as a different user who is not a friend and visited the blog with the widget enabled, yet no friending link was visible.
4. FYI: Install instructions do not mention how to enable friend approval, which I discovered in the plugin Config section.
6593 pointsLike some sort of WPMU DEV GodExceptionally helpfulLifetime member
Keeper of the Dark Chocolate
—
9th October 2009 13:38
#
I believe the Messaging plugin is required. I seem to remember a previous thread on that topic.
edit: I for one would have have old threads brought back instead of newer ones created. 1) Shows that you searched and 2) have the information in front of everybody. But that's just me. I hate forums with rules like "If it's more than a month old, start a new thread."
1. The plugin code itself reads "Plugin Name: Report Posts Comments". That should be an easy fix! ;-)
Already fixed locally. We're not going to issue an update just for that though ;)
There is no action for messaging friends in the Friends admin. Can I assume this just requires the Messaging plugin to be installed? The install instructions do not indicate that it is required.
There's nothing in the install instructions because it's not required for the friends plugin to function. If you want the messaging features though, you'll need to install the messaging plugin.
3. There is no link for adding a user as a friend in the widget. And yes, I logged in as a different user who is not a friend and visited the blog with the widget enabled, yet no friending link was visible.
We'll look into that for a future version. We need to rebuild the widget using the new widget API anyway.
4. FYI: Install instructions do not mention how to enable friend approval, which I discovered in the plugin Config section.
Oops, looks like the note about the config section got removed (or was never added).
We'll look into that for a future version. We need to rebuild the widget using the new widget API anyway.
Since you may be also updating Friends to comply with update notifications, sometime in the not too distant future anyway... here's a thought:
How 'bout adding an option for Admins to identify "default" Friend(s)?
We often get users adding the Friends widget before learning how to add friends. This leaves them with an empty widget. It would be cool if the widget could included a member identified by the Admin, by default, upon activation.
Perhaps this could be done with a configuration edit to the plugin code. One friend would be nice, but in our case I see how adding multiple default friends could help – our primary blog admin, and our tech support blogger.
Make sense? Doable, or pain in the arse?
EDIT: The tricky part may be not adding the default friend if the user has already been added as a friend on existing blogs. But then again, the friend check fix that started this topic may address that. Thanks for the consdieration!
Since you may be also updating Friends to comply with update notifications, sometime in the not too distant future anyway... here's a thought
People seem to be throwing that around a lot lately. We have *a lot* of plugins to update with the update notifications bit. So I'm afraid we won't be making any changes to plugins aside from the updates notifications addition unless the plugin is already on our "fix list" due to reported bugs, etc.
As for the default friends suggestion. It's definitely doable if a good number of members are interested :)
Have you installed the Avatars plugin? Friends isn't much without it. I'm still running v.1.1.3 but just confirmed that the 1.1.4 zip does not include the widget or framework files.
Perhaps this is another one that was rewritten for 3.1 and released early?
Responses (18)
Member — 27th January 2008 01:24 #
sorry for my bad english, i hope you have understand ... i think is needed a check that if primary blog of the user have already one blog in wp_friends, the link to add to the friensslist is not showed, i've try to make a check but i'm not a php programmer and so without any result.
Member — 28th January 2008 03:55 #
With the recent release of WPMU 1.3.2 would you recommend that we do something like the following after line 26 of /wp-admin/menu.php
$menu[45] = array(__('Friends'), 'read', 'friends.php?page=friends_main' );The way they changed menu.php doesn't work the same as with the older version of menu.php
Thoughts? Or just don't worry about it since you mentioned that you will be developing another friends plugin later?
Trent
Erstwhile founder — 28th January 2008 05:17 #
Hi Trent,
That's about as good a fix as any for the time being. We had been holding off on developing a new friends plugin due to BuddyPress but now that BuddyPress is practically dead in the water there's a good chance we'll start on a new plugin sometime in February. No guarantees at this point though. February is going to be a busy month for us.
Thanks,
Andrew
Member — 28th January 2008 09:13 #
is nto possible have just have a function to add to check if the blog is already in friends list ? i've try to add but i'm not so good with array ....
Member — 28th January 2008 23:01 #
I've solved by this way :
added to friends.php this function :
function already_friends() {global $wpdb, $wp_roles, $current_user;
$query = "SELECT DISTINCT friend_blog_ID FROM wp_friends WHERE blog_ID = '" . $wpdb->blogid . "'";
$friends_list = $wpdb->get_results( $query, ARRAY_A );
$visitor = get_usermeta($current_user->ID, 'primary_blog');
if (in_array($visitor, $friends_list[0])) {
return true;
} else {
return false;
}
}
modified wiedget_friends.php output:
<?php echo $before_widget; ?><?php echo $before_title . "Amici" . $after_title; ?>
<?php
echo "
";
echo "
";
";friends_list_widget_output();
echo "
if (is_user_logged_in() == true){
//echo "
";
$tmp_url = get_blog_details(get_usermeta($current_user->ID, 'primary_blog'));
if ($wpdb->blogid == get_usermeta($current_user->ID, 'primary_blog') || already_friends ()) {
//echo " ";
// don't display link
echo "<p>Already in friends list</p>";
} else {
echo $after_widget;
echo $before_widget;
echo "
";
";echo "<p><center>(siteurl . "/wp-admin/friends.php?page=friends_add&bid=" . $wpdb->blogid . "'>Aggiungi questo Blog agli amici)</center></p>";
} echo "
}
?>
now if an user is already friend don't see friends request link.
Member — 8th October 2009 22:46 #
Wasn't sure whether I should resurrect this old post or start a new one, so here goes ...
I just downloaded and am testing the latest version (1.1.3) of the Friends plugin. It seems to be working fine, but I noticed the folowing issues:
1. The plugin code itself reads "Plugin Name: Report Posts Comments". That should be an easy fix! ;-)
2. There is no action for messaging friends in the Friends admin. Can I assume this just requires the Messaging plugin to be installed? The install instructions do not indicate that it is required.
3. There is no link for adding a user as a friend in the widget. And yes, I logged in as a different user who is not a friend and visited the blog with the widget enabled, yet no friending link was visible.
4. FYI: Install instructions do not mention how to enable friend approval, which I discovered in the plugin Config section.
Thanks for any input!
Keeper of the Dark Chocolate — 9th October 2009 13:38 #
I believe the Messaging plugin is required. I seem to remember a previous thread on that topic.
edit: I for one would have have old threads brought back instead of newer ones created. 1) Shows that you searched and 2) have the information in front of everybody. But that's just me. I hate forums with rules like "If it's more than a month old, start a new thread."
Erstwhile founder — 9th October 2009 16:19 #
Hiya,
Already fixed locally. We're not going to issue an update just for that though ;)
There's nothing in the install instructions because it's not required for the friends plugin to function. If you want the messaging features though, you'll need to install the messaging plugin.
We'll look into that for a future version. We need to rebuild the widget using the new widget API anyway.
Oops, looks like the note about the config section got removed (or was never added).
Thanks,
Andrew
Member — 9th October 2009 18:25 #
No ... thank you.
Member — 3rd January 2010 23:52 #
Since you may be also updating Friends to comply with update notifications, sometime in the not too distant future anyway... here's a thought:
How 'bout adding an option for Admins to identify "default" Friend(s)?
We often get users adding the Friends widget before learning how to add friends. This leaves them with an empty widget. It would be cool if the widget could included a member identified by the Admin, by default, upon activation.
Perhaps this could be done with a configuration edit to the plugin code. One friend would be nice, but in our case I see how adding multiple default friends could help – our primary blog admin, and our tech support blogger.
Make sense? Doable, or pain in the arse?
EDIT: The tricky part may be not adding the default friend if the user has already been added as a friend on existing blogs. But then again, the friend check fix that started this topic may address that. Thanks for the consdieration!
Erstwhile founder — 4th January 2010 03:00 #
Hiya,
People seem to be throwing that around a lot lately. We have *a lot* of plugins to update with the update notifications bit. So I'm afraid we won't be making any changes to plugins aside from the updates notifications addition unless the plugin is already on our "fix list" due to reported bugs, etc.
As for the default friends suggestion. It's definitely doable if a good number of members are interested :)
Thanks,
Andrew
Keeper of the Dark Chocolate — 4th January 2010 15:38 #
I swear folks keep waiting for me to chip in on these. :D
I think it's a good idea but not sure if my folks would use it.
Member — 4th January 2010 23:20 #
Thanks for the consideration, Andrew!
If anyone else likes the idea, please feel free to chime in.
Member — 7th January 2011 22:30 #
i just installed Friends, messaging, but avatar page cannot be found (all say they need to be installed together)
Also, in the Friends install folder there is no:
friends-framework.php
widget_friends.php
as referred to in the install instructions. Am I missing something?
Member — 7th January 2011 23:36 #
Have you installed the Avatars plugin? Friends isn't much without it. I'm still running v.1.1.3 but just confirmed that the 1.1.4 zip does not include the widget or framework files.
Perhaps this is another one that was rewritten for 3.1 and released early?
Member — 8th January 2011 01:06 #
Avatars fails for me. Says buddy press has its own avatars and then tells me to delete the files. I have another thread on that over here:
http://premium.wpmudev.org/forums/topic/avatars-plugin-enhancements (last post)
Member — 8th January 2011 03:37 #
Sorry, we don't run BuddyPress. Aside from ensuring that you added avatar-bbpress.php to mu-plugins, I wouldn't know how to help. Good luck!
Sales & Support Lead — 9th January 2011 04:21 #
@kingdomtools,
The Avatars, Friends, and Messaging plugins are not compatible with BuddyPress. All of these items are built into BuddyPress by default.
thanks!
Become a member