Search Results for 'buddypress'
-
AuthorSearch Results
-
February 5, 2010 at 3:46 pm #62483
In reply to: BuddyPress Classifieds Component 1-beta released !
Michael Berra
ParticipantYou are fast – buit I think that some files are missing in the zip… no subfolders in it and now it shows no page at all
February 5, 2010 at 3:30 pm #62482In reply to: BuddyPress Classifieds Component 1-beta released !
grosbouff
ParticipantFebruary 5, 2010 at 3:13 pm #62481In reply to: BuddyPress Classifieds Component 1-beta released !
grosbouff
Participant@nexia : there has been core modifications.
Update to BuddyPress 1.2-beta REV 2608 and BuddyPress Classifieds 1.003-beta.
—-
Also, the theme is now included in the plugin, so you can remove the classifieds directory from your current theme.
February 5, 2010 at 2:56 pm #62477In reply to: Embed images on Buddypress Forums?
josephtravers
ParticipantOkay… maybe I mispoke.
What can we add to one of the php files so that html tags like “img”, “em”, “strong”, etc will work?
I’m one of the many php/buddypress newbies who are still learning.
February 5, 2010 at 2:09 pm #62471In reply to: Plugin Release: Group Activity Email Notifications
D Cartwright
ParticipantOkay, I’ve implemented the fix Boone suggested. The plugin download should update shortly.
In the meantime, if anyone wants to quickly fix the the files they’ve already downloaded, do the following:
In “bp-activity-subscription-main.php” change line 3 to the following:
require_once( WP_PLUGIN_DIR.'/buddypress-group-activity-stream-subscription/bp-activity-subscription-functions.php' );February 5, 2010 at 2:06 pm #62470Mike Pratt
Participantso here’s a tweaked version and the latest in my custom tab efforts, fyi:
// passes MyClass scope into ajax query for custom Class Year activity filter
function bn_ajax_querystring_activity_filter( $query_string, $object, $filter, $scope, $page, $search_terms, $extras ) {
global $bp;
if ( !is_user_logged_in() || $object != 'activity' )
return $query_string;
$args = array();
parse_str( $query_string, $args );
$args['object'] = $bp->groups->id;
switch ($scope){
case 'myclass':
$slug = "usma-". bp_get_profile_field_data( array('field'=> 'Class Year', 'user_id' => $bp->loggedin_user->id));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;
case 'mycadetco':
$slug = bp_get_profile_field_data( array('field'=> 'Cadet Company', 'user_id' => $bp->loggedin_user->id));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;
case 'mybranch':
$slug = sanitize_title(bp_get_profile_field_data( array('field'=> 'Branch', 'user_id' => $bp->loggedin_user->id)));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;
default:
return $query_string;
}
return http_build_query( $args );
}
add_filter( 'bp_dtheme_ajax_querystring', 'bn_ajax_querystring_activity_filter', 1, 7 );and the action:
function bn_add_activity_tab() {
if ( !is_user_logged_in() )
return false;
?>
<!-- default item-list-tabs activity-type-tabs
<ul> -->
</div><!-- default item-list-tabs activity-type-tabs -->
<div class="item-list-tabs activity-type-tabs" id="bn-tabs">
</ul>
<ul>
<li id="activity-myclass">
<a>" title="<?php _e( 'Activity for my Class Year', 'buddypress' ) ?>">
<?php printf( __( 'My Class', 'buddypress' ) ) ?>
</a>
<li id="activity-mycadetco">
<a>" title="<?php _e( 'Activity for my Cadet Company', 'buddypress' ) ?>">
<?php printf( __( 'My Cadet Company', 'buddypress' ) ) ?>
</a>
<li id="activity-mybranch">
<a>" title="<?php _e( 'Activity for my Army Branch', 'buddypress' ) ?>">
<?php printf( __( 'My Branch', 'buddypress' ) ) ?>
</a>
<?php
}
add_action( 'bp_activity_type_tabs', 'bn_add_activity_tab', 1, 2 );A few things to note:
1. use the WP function sanitize_title() if you have a field that might return more than one word e.g. the group ‘Military Police’ returns ‘military police’ but transforms into ‘military-police’ (a pretty slug0 which gives you a correct slug now.
2. I added addl markup to force my new tabs into their own element.
3. Don’t be shy to make suggestions and keep improving this technique. I think many will use it to customize their installs.
February 5, 2010 at 2:01 pm #62467In reply to: Plugin Release: Group Activity Email Notifications
Boone Gorges
KeymasterD Cartwright – Great plugin. The problem is that the plugin name in the repo is buddypress-group-activity-stream-subscription, while all of your includes assume that the plugin folder will be called bp-group-activity-stream-subscription. I renamed my plugin folder and all’s well.
I think this is going to be huge for my community, btw, so thanks.
February 5, 2010 at 12:34 pm #62462In reply to: Help with BuddyPress Friends Loop
Paul Wong-Gibbs
Keymasterbp_has_friendships was removed in BP 1.2 and put into the backwards compatibility update. Try something like:
if ( bp_has_members( ‘user_id=’ . $user_id . ‘&type=alphabetical&per_page=0’ ) ) {
while ( bp_members() ) : bp_the_member();
February 5, 2010 at 12:27 pm #62461In reply to: BuddyPress Classifieds Component 1-beta released !
gpo1
ParticipantWhere’s the T&C for it?
February 5, 2010 at 8:38 am #62457In reply to: Help with BuddyPress Friends Loop
Sarah Gooding
MemberOk so that middle part of the code with the avatar section didn’t paste in correctly, but you get the idea. …
February 5, 2010 at 8:28 am #62456In reply to: [Resolved] Limited Checkbox Selection
Nick Watson
ParticipantDoes anyone know how to implement this into the profile fields on buddypress?
February 5, 2010 at 7:14 am #62454In reply to: Removing "members" slug from user links
modemlooper
ModeratorFebruary 5, 2010 at 5:23 am #62452alextababa2
ParticipantHi Etiviti
Thanks for the follow up, it’s really appreciated. The issue seems to have been only related to my admin username which was created before buddypress was installed.
Also, it wasn’t the spaces that were throwing if off… it might be some other vauge incompatibility between wmpu and buddypress names.
I’ll double check before I ask for some more info next time, but I’m sure someone with the same issues as you will benefit from your effort.
February 5, 2010 at 5:03 am #62450peterverkooijen
Participant@snark, I simply removed the function bp_core_disable_welcome_email() from bp_core_activation.php. But then the password in the welcome email is wrong, as discussed here. Haven’t been able to come up with an explanation/solution for that…
February 5, 2010 at 4:50 am #62449In reply to: A basic question about the menu in BP1.2…
angophora
Member“The default theme isn’t intended to be used on hosted blogs on a WPMU install, so the links do break as you’ve found.”
Oh… I see. Thank you! With that information, I have now found this and will give it a shot (I guess it’s obvious, but I was just confused about how it was supposed to work):
https://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/
February 5, 2010 at 3:19 am #62445paulhastings0
ParticipantThe comments are <i>not</i> in moderation, I just checked.
In the file: wp-content/plugins/buddypress/bp-activity/bp-activity-widgets.php
I made the following change around line 30:
<?php if ( /*bp_has_activities( 'type=sitewide&max=' . $instance['max_items'] . '&per_page=' . $instance['per_page'] )*/ bp_has_activities( 'object=blogs&action=new_blog_comment' ) ) : ?>
And the unregisterd user comments are still not showing up. This is the “site wide activity” widget I’m using. Any ideas?
February 5, 2010 at 3:03 am #62443peterverkooijen
Participant1) By default, an email isn’t sent to the user because the user password is sent via plain text (not a good thing security-wise).
That makes absolutely no sense. If you use the forgot password feature, the password is sent via plain text as well. Why is that OK and sending a password upon registration not?
Most big sites, Facebook, LinkedIn, newspapers, have no problem sending passwords via plain text. Online security is always a balance between security and convenience.
Buddypress is a social network. It’s not a banking website. If you start using credit card payments or paid membership, those scripts usually come with the own security.
Who is going to steal a password to someone’s account on a blog network? Has that ever happened? What would they do with it?
Just my 2 cents. Flame away…
February 5, 2010 at 3:02 am #62442In reply to: Dahsboard BP admin bar links going to root domain
alextababa2
ParticipantOkay so it works with a new user – even with a space in the name, because the admin bar hyperlinks point to the username eg:
http://bcosuluvit.com/alistarbright/members/alistarbright/
Not
http://bcosuluvit.com/alistarbright/members/Ali starbright/
But the user created before Buddypress was installed still won’t get correct hyperlinks.
February 5, 2010 at 2:39 am #62440snark
ParticipantStill not working. I did find the filter itself in the file /plugins/buddypress/bp-core/bp-core-activation.php:
add_filter( ‘wpmu_welcome_user_notification’, ‘bp_core_disable_welcome_email’ );
I suppose I could just delete that line to remove the filter, but then every time BP is updated it’ll probably get overwritten and I’ll forget all about it. Not sure why your filter hook didn’t work. Any ideas?
Thanks a million for your help — I really appreciate it.
February 5, 2010 at 1:14 am #62434snark
ParticipantRe: 1) I tried this and it didn’t work (no error, but didn’t fix the problem). What directory exactly should the bp-custom.php file be put in? I tried it in two places —
/wp-content/plugins/bp-custom.php (where you said to put it, though that seems odd)
and
/wp-content/plugins/buddypress/bp-custom.php
— and neither worked.
Re: 2&3) Will do. Thanks.
February 5, 2010 at 12:31 am #62432r-a-y
Keymaster1) By default, an email isn’t sent to the user because the user password is sent via plain text (not a good thing security-wise).
You can re-enable this welcome email by adding the following code to /wp-content/plugins/bp-custom.php (create this file if you don’t have one – be sure to add PHP open and closing tags as well):
remove_filter( 'wpmu_welcome_user_notification', 'bp_core_disable_welcome_email' );2) Please post the avatar bug on BuddyPress Trac:
https://trac.buddypress.org/newticket
Login with the same credentials you use on buddypress.org.
3) WP-reCAPTCHA is not compatible with BuddyPress.
BuddyPress uses a different registration mechanism.
You might want to try one of these solutions listed here:
http://www.bp-tricks.com/tips_and_tricks/stopping-the-sploggers/
February 4, 2010 at 11:36 pm #62430Peter Anselmo
ParticipantOn the 2nd, Andy worked on this by trimming all whitespace from newly entered values. You can see the changes here:
https://trac.buddypress.org/changeset/2547
I tested this on http://testbp.org/, and yes, it does keep the problem from happening for new members. There are two outstanding issues with this however.
1. It silently trims the whitespace, so you have no way of knowing that your username is not what you entered. At a minimum, it should send you an updated username with the confirmation email. Only after looking at the site activity, and seeing my username with the space trimmed, did I realize why I wasn’t able to log in.
2. It doesn’t help any of the existing users with spaces in their names (such as myself on this forum).
Admittedly, this is a tough problem to solve for existing users, but yes, AFIK, it is still unsolved.
February 4, 2010 at 11:04 pm #62428Peter Anselmo
ParticipantThis may or may not be your problem, but Buddypress has some issues with spaces in names. Try clicking on the right of this post to view my profile. It uses my actual name “Peter Anselmo” instead of my username “peter-anselmo”. It won’t work. Fun.
February 4, 2010 at 10:49 pm #62427In reply to: Does somebody have a sample: bp-custom.php
r-a-y
KeymasterHere you go!
<?php
//CUSTOM CODE FOR BUDDYPRESS
//PUT YOUR CODE HERE
?>What can you put in bp-custom.php?
Lots of things!
Check out this codex article:
https://codex.buddypress.org/how-to-guides/changing-internal-configuration-settings/
February 4, 2010 at 10:44 pm #62426In reply to: .Pot File : Why can't I just change this in NotePad
Peter Anselmo
ParticipantYeah, the command line conversion is a barrier for a lot of people, as they either don’t have command line access, or if they do, gettext is not installed on the server.
You can find some alternate ways to generate .mo files here:
https://codex.wordpress.org/Translating_WordPress
Also, there is no bp-custom.php file by default. You just create it as a new file, and put it directly in the plugins folder. BuddyPress will automatically check there for it.
Yeah, it’s a bit of work to change strings, but anything simpler would likely not be upgrade-proof, or would be much slower.
-
AuthorSearch Results