Search Results for 'buddypress'
-
AuthorSearch Results
-
September 12, 2010 at 10:55 pm #92258
LPH2005
Participant@mercime – thank you ! That was exactly the error. Now I have to wrap it around login vs. logged out people … and it’ll be good to go
September 12, 2010 at 10:45 pm #92257In reply to: Hide BuddyPress from non-loged-in users
September 12, 2010 at 9:45 pm #92255Paul Wong-Gibbs
Keymaster@modemlooper Looks like the above should sort you out? Let me know.
Paul Wong-Gibbs
KeymasterEither the upload was corrupted, or you’ve edited in functions.php and missed out some PHP syntax. Compare it to the original version at https://svn.buddypress.org/tags/1.2.5.2/bp-themes/bp-default/functions.php and see if you can see what caused it to break.
September 12, 2010 at 9:18 pm #92253Justin Frydman
ParticipantThank you both for your help, so I’m hoping I can return the favor. Modemlooper, here is how I adjusted the My Friends tab, but it has sub nav code for you, maybe it will help. Credit for this from @jeffsayre
`function my_friends_setup_nav() {
global $bp;/* Add ‘Friends’ to the main navigation */
if( bp_friend_get_total_requests_count($disp_user) > 0 && bp_is_my_profile()) {
bp_core_new_nav_item( array( ‘name’ => sprintf( __( ‘Friends (%d) (%d)‘, ‘buddypress’ ), friends_get_total_friend_count(), bp_friend_get_total_requests_count() ), ‘slug’ => $bp->friends->slug, ‘position’ => 60, ‘screen_function’ => ‘friends_screen_my_friends’, ‘default_subnav_slug’ => ‘my-friends’, ‘item_css_id’ => $bp->friends->id ) );
} else {
bp_core_new_nav_item( array( ‘name’ => sprintf( __( ‘Friends (%d)‘, ‘buddypress’ ), friends_get_total_friend_count() ), ‘slug’ => $bp->friends->slug, ‘position’ => 60, ‘screen_function’ => ‘friends_screen_my_friends’, ‘default_subnav_slug’ => ‘my-friends’, ‘item_css_id’ => $bp->friends->id ) );
}$friends_link = $bp->loggedin_user->domain . $bp->friends->slug . ‘/’;
/* Add the subnav items to the friends nav item */
bp_core_new_subnav_item( array( ‘name’ => __( ‘My Friends’, ‘buddypress’ ), ‘slug’ => ‘my-friends’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_my_friends’, ‘position’ => 10, ‘item_css_id’ => ‘friends-my-friends’ ) );
bp_core_new_subnav_item( array( ‘name’ => sprintf( __( ‘Requests (%d)‘, ‘buddypress’ ), bp_friend_get_total_requests_count() ), ‘slug’ => ‘requests’, ‘parent_url’ => $friends_link, ‘parent_slug’ => $bp->friends->slug, ‘screen_function’ => ‘friends_screen_requests’, ‘position’ => 20, ‘user_has_access’ => bp_is_my_profile() ) );if ( $bp->current_component == $bp->friends->slug ) {
if ( bp_is_my_profile() ) {
$bp->bp_options_title = __( ‘My Friends’, ‘buddypress’ );
} else {
$bp->bp_options_avatar = bp_core_fetch_avatar( array( ‘item_id’ => $bp->displayed_user->id, ‘type’ => ‘thumb’ ) );
$bp->bp_options_title = $bp->displayed_user->fullname;
}
}do_action( ‘friends_setup_nav’ );
}add_action( ‘bp_setup_nav’, ‘my_friends_setup_nav’, 11 );`
September 12, 2010 at 9:06 pm #92252modemlooper
ModeratorI was looking at one of @djpaul ‘s plugins to see how the sub nav items were added below but I can’t seem to get it to show up.
September 12, 2010 at 8:56 pm #92251In reply to: Sort by xprofile field on Members page
Tosh
ParticipantI’m looking to do something similar. I want to sort members by who has the most points. Any direction would be helpful.
Here is the sql when points are logged:
‘ global $wpdb;
$wpdb->query(“INSERT INTO `”.CPDB.”` (`id`, `uid`, `type`, `source`, `points`, `timestamp`)
VALUES (NULL, ‘”.$uid.”‘, ‘”.$type.”‘, ‘”.$source.”‘, ‘”.$points.”‘, “.time().”);”);’September 12, 2010 at 8:35 pm #92247rich! @ etiviti
Participantinterim – what about filtering on bp_has_groups and unset the items? (and readjust the count)
September 12, 2010 at 8:22 pm #92245David Bisset
ParticipantFollowup: I have created a trac for this. Thanks to @boonebgorges and @pgibbs for the suggestion.
September 12, 2010 at 8:18 pm #92244In reply to: I need to block user access to the dashboard
rawkey
ParticipantThanks @erikshosting just what I was looking for !
September 12, 2010 at 6:56 pm #92235In reply to: bp_profile_field_data
Paul Wong-Gibbs
KeymasterIt’s a serialised array, so that’s why it looks odd. Can you submit this as an enhancement for 1.2.6 on https://trac.buddypress.org/ please? BP Core doesn’t use this function directly so we ought to be able to tidy up this templatetag.
September 12, 2010 at 6:56 pm #92234In reply to: Buddypress forums not working
christofian
ParticipantI don’t think the problem is any of the plugins, but buddypress itself. I would file a bug, but I have no idea what is causing it. People, please give us a little bit of help here. This problem is driving us mad, and I have been searching on the forums and finding nothing.
September 12, 2010 at 2:34 pm #92229In reply to: Avatar Crop Tool Only Shows A Portion Of Avatar
thelandman
Participant@darrin365, I think this might solve your problem!
Go into Buddymatic theme header.php file and make sure that its not calling a different version of jquery.
Make sure you are running jquery 1.4.2.
September 12, 2010 at 2:20 pm #92226In reply to: creating a new page with a chat script
thelandman
Participant@paulhastings0, of course I’ll try turn it into a plugin. I’ve never written a plugin but I’m pretty sure I can take a crack at it.
@pcwriter, the simple way to do it would be to make the “chat” page open in a new window. That’s how deviantart.com does it.
September 12, 2010 at 12:26 pm #92221In reply to: Buddypress and jquery incompatability
Paul Wong-Gibbs
KeymasterI think it’s here https://wordpress.org/extend/plugins/first-visitor-message/. I can see straight away that it is loading its own version of jQuery. It is also loading its own javascript on every front-end and admin page load. I think if these issues were addressed in the plugin, it would work properly with BuddyPress.
September 12, 2010 at 9:40 am #92220In reply to: Buddypress and jquery incompatability
joshuacrowley
MemberI’ve just had another look at it and isolated the plugin.
It was “First Visit Message” as demonstrated on this site http://www.thijmenstavenuiter.nl/ I’m no coder but I think it’s using jquery to do what it does.
I can’t find it in the plug-in directory so perhaps the author, Thijmen Stavenuiter withdrew it after s/he figured out it was creating a conflict.
It affected the avatar crop tool by not allowing me to crop an image and also Buddypress Link plugin- which was frustrating as it wouldn’t let me upload a link.
September 12, 2010 at 9:26 am #92219In reply to: Buddypress and jquery incompatability
joshuacrowley
MemberOkay Paul, i’ll get back to you with some leads later tonight, I’ve still yet to pinpoint which plugin is causing problems at the moment, doing my head in a bit because the same error has effected a few different features of the site – i assume.
September 12, 2010 at 9:20 am #92218In reply to: Buddypress and jquery incompatability
Paul Wong-Gibbs
KeymasterIf you can give us the name of plugin whose javascript conflicts with BuddyPress’ avatar crop, we can investigate and see how to improve it. If you get a browser warning message, too, that would be helpful in pinpointing the error.
September 12, 2010 at 9:16 am #92217In reply to: Buddypress and jquery incompatability
joshuacrowley
Member@jenyus is right! jQuery conflicts appear to be rife. I’ve had multiple plugins affect the functionality of the Avatar and avatar crop feature, with the only solution turning them off. There needs to be a better way of isolating problems concerning jQuery.
September 12, 2010 at 8:26 am #92215In reply to: BP Xtra Signup Version 1.4
Hugo Ashmore
ParticipantJust been having a play around, although can’t yet see an approach to change the mismatch notice when > 0 characters I did add in a stronger warning on username password matches.
I changed //password1 == username to return ‘badPassUsername’ leaving ‘badPass’ to work for the score < 40
Added a new var badPassUsername = 6
added new ‘case 6’ to the switch and made relevant adjustments to the var pwsL10n in bpxs-core.php
so now on my copy a username == password1 match informs the user the password is insecure as username matches password, that’s the polite version anyway

What I wanted to work further on is to then halt the process until user had made a change as at the minute despite the warning the registration will still submit that numpty password.
September 12, 2010 at 8:13 am #92214leguis
ParticipantThanks gpress is a great plugin
September 12, 2010 at 5:39 am #92211imjscn
Participant@boonebgorges, if I want to do this on the header of profile page—
if user ID is 1 or 2, displayABCinstead of
“last update’, “mention this user”….if user is anybody else, display item-meta as normal.
How to do this?September 12, 2010 at 2:13 am #92201Pisanojm
ParticipantAlso check out the well-supported themes by the wpmudev.org group… they cost, but they will provide fantastic support and are guaranteed to work with all upcoming BP updates… Agree with @modemlooper …. the beauty of BuddyPress is you can do anything… the caveat with that is you have to spend a lot of time figuring it all out, trying things, and you might even need to learn a little “programming” along the way to make it do what you want…
September 12, 2010 at 1:59 am #92200Pisanojm
Participant@nuprn1 @mercime @boonebgorges
Thank you for leading me to the code to get to this… I basically just did a super-slight mod of Rich’s code. Here is what I used and I put it in the the bp-custom.php file in the plugins directory:
`<? function my_group_loop_activity_item() {
global $bp, $activities_template;
if ( !bp_is_active( ‘activity’ ) )
return;
if ( !bp_group_is_visible() )
return;
$show_hidden = false;
/* Group filtering */
$object = $bp->groups->id;
$primary_id = bp_get_group_id();
if ( ‘public’ != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) )
$show_hidden = true;
/* Note: any params used for filtering can be a single value, or multiple values comma separated. */
$defaults = array(
‘display_comments’ => false, // false for none, stream/threaded – show comments in the stream or threaded under items
‘sort’ => ‘DESC’, // sort DESC or ASC
‘page’ => 1, // which page to load
‘per_page’ => false, // number of items per page
‘max’ => 1, // max number to return
‘include’ => false, // pass an activity_id or string of ID’s comma separated
‘show_hidden’ => $show_hidden, // Show activity items that are hidden site-wide?
/* Filtering */
‘object’ => $object, // object to filter on e.g. groups, profile, status, friends
‘primary_id’ => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
‘action’ => ‘new_forum_topic’, // action to filter on e.g. activity_update, new_forum_post, profile_updated
‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id
/* Searching */
‘search_terms’ => false // specify terms to search on
);
$r = wp_parse_args( $args, $defaults );
extract( $r );$filter = array( ‘user_id’ => false, ‘object’ => $object, ‘action’ => $action, ‘primary_id’ => $primary_id, ‘secondary_id’ => $secondary_id );
$activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );
while ( bp_activities() ) : bp_the_activity(); ?>
<div class="item-descb" id="activity-“>
Latest Topic Activity in the Group:
<a href="”>
<?php endwhile;
}
add_action( ‘bp_directory_groups_item’, ‘my_group_loop_activity_item’ );
?>`I also added this to the default.css to give me a little more control of the output (changed the div in the original to match below):
` ul.item-list li div.item-descb {
margin: 10px 0 0 64px;
font-size: 11px;
color: #888;
width: 85%;
}
`THANKS AGAIN! Here is a pict completed:
http://mustech.net/holder/grouptopic2.jpgSeptember 12, 2010 at 1:03 am #92199@mercime
ParticipantTheme, you can get a WordPress theme with magazine format then install BP Template Pack which you will need to tweak to mesh with HTML structure of your WP theme.
Photos, videos and audio (if you allow all three in admin) uploads working with BP Gallery Plugin, which is premium at this time. You could set Gallery page to include all media or set up pages for respective media. Edit – Also individual members plus groups have their own respective photo, video and audio gallery pages out of the box.
-
AuthorSearch Results