BuddyPress-Links 0.3 FINAL is here at last
-
Sorry for yet another thread, but a lot of people are saying they are waiting for final to even test this out. Mods please feel free to close my other threads.
I just tagged 0.3 final. Read all about it here:
http://wordpress.org/extend/plugins/buddypress-links/
If you are upgrading from the 0.2.x branch, read the readme.txt VERY carefully!
Thanks to everyone who helped with this release! Also thanks to Andy for making BuddyPress Links a featured plugin.
-
Sorry if this has been mentioned before, but I’m running into a slightly odd issue with testing. The comments thread for each Link posted includes comments and activity items for all the Links on my testbed install, rather than just the thread for the link currently being viewed.
In other words, if I’m looking at, say, http://localhost.localdomain/mefightclub/links/samplesite1-com
I see comments posted for samplesite1.com, but also for samplesite2.com and samplesite3.com and all the other link items that have been created.
Any thoughts, MrMaz?
Edit: Hmmm. The dropdown for categories doesn’t seem to be working either. I wonder if there’s some kind of conflict happening…
Hi,
I did install Wordpres MU and BuddyPress a few days ago. OK – it is BuddyPress 1.2.2.1
And I installed the latest BP-Links what worked fine for the first link I created. But now, I am unable to drop down the settings for avatar and further link settings like description. It keeps closed and even entered URLs aren’t accepted.
So I actually stay with that single link
I did install several other plugins afterwards. But I can’t suggest a corruption. Or is there any incompatibility known?
Well, how do I get back the settings in BP-Links?
Thanks…
René
Are you guys able to duplicate these issues on a clean install of BP w/ default theme active with BP-Links and no other plugins?
I have spent so many hours chasing down problems only to find out it was due to a plugin conflict or custom theme issue, I am pretty paranoid about it.
Hmm.
Clicking through from an activity stream icon for an uploaded pic using BPAlbum+ yields the following error, which is very odd:
Fatal error: Call to undefined function friends_check_friendship() in //xampp/htdocs/sitename/wp-content/plugins/buddypress-links/bp-links-classes.php on line 649
So I guess that might be where the conflict is coming in. Odd, though, because I tried disabling BuddyPress Album+ earlier to check if it was causing conflicts, and it didn’t seem to solve the issues I was having with Links.
I was logged in as a testuser, different from the user account (admin) that posted the picture with BP Album+.
I know it’s a functionality error with BPAlbum+, but it’s BPLinks that is returning the error message, so I thought I’d dump it in your lap, if you want to have a look.
Hopefully a useful data point though.
Oh, wait, also important! In Buddypress Component Setup on the dashboard, I’ve got Friends (‘Allows the creation of friend connections between users.’) disabled.
@stwc – Found the defect.
The problem is being caused by two blocks of code inside the BPLinks plugin that do not account for the situation where the BuddyPress administrator disables “friend” capabilities for the site.
When friend capabilities are disabled, calling the friends_check_friendship() function will crash the user thread. We handle this problem in BP Album+ by wrapping all calls to this function in a function_exists(‘friends_check_friendship’) statement, only calling the function if it is enabled.
This is a sneaky, subtle defect that could easily be missed during testing; fortunately, BPLink’s clean, well-documented source code made it easy to isolate and correct the problem.
Here’s a simple patch:
1) In “bp-links-classes.php” at line 650
REPLACE:
if ( $link_owner_user_id && $link_owner_user_id != $bp->loggedin_user->id && friends_check_friendship( $link_owner_user_id, $bp->loggedin_user->id ) ) {
$status_opts[] = self::STATUS_FRIENDS;
}
WITH:
if (function_exists(‘friends_check_friendship’)) {
if ( $link_owner_user_id && $link_owner_user_id != $bp->loggedin_user->id && friends_check_friendship( $link_owner_user_id, $bp->loggedin_user->id ) ) {
$status_opts[] = self::STATUS_FRIENDS;
}
}
2) In “bp-links-core.php” at line 1128
REPLACE:
return friends_check_friendship( $user_id, $link->user_id );
WITH:
if (function_exists(‘friends_check_friendship’))
return friends_check_friendship( $user_id, $link->user_id );
else
return null;
============================================================================
WordPress MU 2.9.2
BuddyPress Version 1.2.3
BuddyPress Links Version 0.3.2
BP Album+ 0.1.8 beta
^F^
I still can’t get the filter to show link votes on viewing a single link. If “Show link votes” is selected from the drop down, this is displayed “Sorry, there was no activity found. Please try a different filter.”
I have tested this on the latest version single wp site and on a wpmu site and the results are the same.
@stwc, foxly
That defect was fixed in the 0.3 branch a while back, I just haven’t put out a point release yet.
https://plugins.trac.wordpress.org/changeset/215107/buddypress-links/branches
Good news! Thanks foxly and MrMaz!
Is there a list of shortcode that I could call a specific category links to display in a template? For example, if I want to display the last 3 links in category “x” in the sidebar of the member’s home page, is this possible?
@MrMaz – Glad to see you’re on top of it. Soldier on!
^F^
Shortcodes are for embedding in posts, did you mean template tag?
Here is the code that “should” work to do what you want, but I have not tested it.
<?php
if ( bp_has_links( array( 'newest', 'per_page' => 3, 'category' => $your_category_id ) ) ) {
while ( bp_links() ) {
bp_the_link();
// you will need to output your custom HTML here based on
// what you need from links-loop-item.php
}
}
?>Just a heads up that I am still working on 0.4. I have been chipping away at it over the past few weeks. I can’t give an ETA, but just wanted you all to know that this plugin is still being actively developed. I am currently putting in about 10 hours a week into it.
0.4 is going to melt your heads.
Thanks for the update MrMaz. I’m looking forward to the 0.4 release
I’m excitedt about the 0.4 as well. It’ll be the first plugin that extends the activity stream postbox … a feature i’m really looking forward about!
Thank you for the continued development of such a great plugin.
@MrMaz Great to hear 0.4 is just around the corner — I say wait until WP 3.0 is out for all around compatibility.
Feature Idea:
I really like the BP Group Blog plugin concept. I think Group Links would be awesome! This way each group can have one parent link category (or, optionally, be able to create additional subcategories for their group links as well). Of course, all Group Links would show up in the site’s activity stream and on the default Links Directory page.
What do you think?
Just a quick note @MrMaz, everything seems to be working as expected on a live install (after the fix foxley recommended) so I think my earlier issues were a combination of having Friends functionality switched off and working on a localhost install (there have been some minor strange things I’ve found doing that).
Group links is already done and working in the development version.
MrMaz – which BP Version do you use for testing your development Version (DV)? I downloaded the DV and checked it on BP 1.2.3 and had some problems with an error message that won’t dissapear (Please fill in all of the required fields) and with fetching the page details.
I am testing against the 1.2 branch. You should maybe try clearing your browser cache in case the old JS is still loading.
@MrMaz – This solved the JS problem … but there is still an erro saving the Link-Details. Could this be the case because i’m on Single WP 2.9.2? Are there any known issues – should i report errors like this, or is it to early in development of 0.4?
@MrMaz Groups Links will be a big hit! Stoked that it’s just around the corner Thanks for all your hard work — you need a donation link for BP Links.
- The topic ‘BuddyPress-Links 0.3 FINAL is here at last’ is closed to new replies.