Search Results for 'buddypress'
-
AuthorSearch Results
-
October 29, 2010 at 11:28 pm #96954
Boone Gorges
KeymasterPing @djpaul
October 29, 2010 at 11:15 pm #96952In reply to: Buddyvents 1.2.2
Anonymous User 96400
Inactive@ffdltd
I’ve added you already to the support group. The paid support is basically only for our free plugins.October 29, 2010 at 10:18 pm #96949In reply to: New avatars after installing latest BP?
r-a-y
KeymasterIf you like secondary avatars, but don’t like the blog ones, you might want to try this:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/am-i-going-mad-or-are-there-now-avatars-next-to-posts-in-the-activity-stream/?topic_page=2&num=15#post-76621October 29, 2010 at 8:11 pm #96942In reply to: Last few groups
Anonymous User 96400
InactiveOctober 29, 2010 at 7:35 pm #96940In reply to: Buddypress and wp-wishlist help
Michel Fortin
ParticipantSusan, I know this is old news, but I use Private BuddyPress:
https://wordpress.org/extend/plugins/private-buddypress/
It protects BP pages that are not protected by WishList.
October 29, 2010 at 6:03 pm #96937anindyaray
Memberyes now I understand a bit
A lot of thanks to you @hnla
October 29, 2010 at 5:50 pm #96936In reply to: Buddyvents 1.2.2
Anonymous User 96400
InactiveOctober 29, 2010 at 5:43 pm #96935In reply to: Header image on network site
A Weathers
Participantok…i gave this a try…
example.com – primary site – enabled edublogs theme – expected edublogs theme to work – functioned as expected
example.com/site1 – activated buddypress default theme on site – worked as expected
example.com/site2 – activated buddypress child theme on site – worked as expectednow, i wanted to customize the header on example.com/site2. i logged in with the admin for example.com/site2 but was unable to customize header, so i logged into example.com with superadmin and went to example.com/site2 backend. I updated the header to a customized image, but it doesn’t show up anywhere!
October 29, 2010 at 3:52 pm #96928In reply to: How to overwrite a core buddypress function?
Paul Wong-Gibbs
KeymasterYeah, there are not any ‘plugable’ functions in BP.
October 29, 2010 at 3:44 pm #96926In reply to: How to overwrite a core buddypress function?
rich! @ etiviti
Participantthere is no action to trigger on (though that wouldn’t allow you to overwrite a function – i don’t believe any “pluggable” functions exists in bp. action is just a hook point)
there is a filter on the return of that function though bp_core_get_username but passes the determined username
October 29, 2010 at 3:29 pm #96921In reply to: Remove group updates, but not personal ones
ewebber
Participantthanks @nuprn1 it seems that changing that one line as above has done what I need it to – I also removed the drop down from the main status box – now just admins can post to the groups
October 29, 2010 at 2:35 pm #96915anindyaray
MemberYes atlast … Thanks a lot @hnla and also @rogercoathup

`
function cancel_header_padding_for_no_adminbar() {if(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar == false) ?>
body {padding-top:0;}
<?php
}
if (!is_user_logged_in())
add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );
`but One stupid question :
what is the difference between `!is_user_logged_in()` and `is_user_logged_in()` ?October 29, 2010 at 1:21 pm #96909Mark
ParticipantHave cleaned up the code and plugged in the code suggested by @hnla – gets rid of the need for implode/explode and also allows for the list of tags from the member profile to be live:
`
<?php //for use in the loop, list 5 post titles related to user profile interest areas
$backup = $post; // backup the current object
//Fetch profile tags from custom field ‘Areas of Interest’
$profileTagFull = xprofile_get_field_data( ’25’ , bp_loggedin_user_id() );//Fetch the text for the tags$profileargs=array(
‘tag_slug__in’ => $profileTagFull,
‘post__not_in’ => array($post->ID),
‘showposts’=>5,
‘orderby’ => rand,
‘order’ => DESC,
‘caller_get_posts’=>1
);
?>Content of Interest
- <a href="tag/”>
-
<?php
- cat_name . ‘: ‘; ?><a href="” rel=”bookmark” title=””>
- No related content
$profile_query = new WP_Query($profileargs);
if( $profile_query->have_posts() ) {
while ($profile_query->have_posts()) : $profile_query->the_post(); ?><?php endwhile;
} else { ?><?php }
$post = $orig_post;
wp_reset_query();
?>`
This is my CSS for the run-in list:
`
.comma-list ul, .comma-list li {
color: #ffffff;
font-size: 10px;
text-transform: uppercase;
display: inline;
line-height: 12px;
}.comma-list li {
text-decoration: underline;
}
`Looks a lot neater now – thanks!
October 29, 2010 at 1:19 pm #96908In reply to: Changing Group tab display defaults
Andrew Tegenkamp
Participant@r-a-y, thanks for this as it works great! To @Robcwright and others interested, I know it’s an old thread but have found this change will make it only do this for public groups or groups where you are a member and private groups will no longer redirect but keep the default setup. I put both in bp-custom.php and that seems to work great with a variety of child themes. If you want any other modifications for other cases I haven’t tried, just mention me in the reply and I’ll take a look when I can.
`
function redirect_to_forum() {
global $bp;
$path = clean_url( $_SERVER );
$path = apply_filters( ‘bp_uri’, $path );
if ( bp_is_group_home() && strpos( $path, $bp->bp_options_nav ) === false ) {
if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == ‘public’) {
bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
}
}
}
add_action( ‘wp’, ‘redirect_to_forum’ );function my_bp_groups_forum_first_tab() {
global $bp;
if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == ‘public’) {
$bp->bp_options_nav = ’50’;
$bp->bp_options_nav = ‘Activity’;
}
}
add_action(‘wp’, ‘my_bp_groups_forum_first_tab’);
`October 29, 2010 at 12:51 pm #96902In reply to: Remove group updates, but not personal ones
rich! @ etiviti
ParticipantOctober 29, 2010 at 12:40 pm #96901In reply to: [NEW PLUGIN] Your Classified Ads
Pisanojm
ParticipantThats great… I was just looking at your plugin as a possibility for our BuddyPress site yesterday. I will be trying it this week. TY!
October 29, 2010 at 12:38 pm #96900In reply to: BuddyPress Classifieds Component 1-beta released !
grosbouff
ParticipantPlugin deprecated for this one : https://buddypress.org/community/groups/creating-extending/forum/topic/new-plugin-your-classified-ads/
October 29, 2010 at 12:37 pm #96899In reply to: Buddypress Classifieds?
grosbouff
ParticipantThe plugin has been deprecated for this one : https://buddypress.org/community/groups/creating-extending/forum/topic/new-plugin-your-classified-ads/
October 29, 2010 at 12:03 pm #96896Hugo Ashmore
Participant@rogercoathup hmm yes like the sound of personalised content, in fact like the sound of that a great deal. think I was struggling to fit the profile checkboxes in to the equation despite having played around with using profile fields to, in some manner, confer extra meta data on members but penny finally dropped, and I’m wondering whether this can be taken further.
@tak5haka It’s a really nice idea, I had played with profile fields to see how effective it was to use radio button choices and/or checkboxes to use in profile checks to control display actions. Completely agree on personalisation of data, stickiness etc.
October 29, 2010 at 11:49 am #96891Roger Coathup
Participant@hnla – Might work well on the home page – you log in, and the sidebar immediately shows you a set of posts that are targeted to your interests.
Personalised content if you like.
It’s a useful snippet of code to bring posts relevant to some metadata (in this case an interests list). You could see it in other scenarios, e.g. you create a group about “Liquorice Allsorts” and a routine like this could pull in all relevant blog posts.
@tak5haka – impressed you stuck with it through the upgrade issues.
October 29, 2010 at 9:40 am #96883Mark
ParticipantDoh! You know, I was using explode() later on to extract the individual elements – don’t know why I didn’t think of using implode() to clean up the array.
Thanks @hnla – that works now. For reference, here is the full code – basically this uses the data derived from checkboxes in the member’s profile (in this case it’s called “Areas of Interest” with the field ID of 25 – change this to reflect your name/field ID) to hunt down related content tags and display a random list of content relevant to that member (remember to put the code mentioned by @boonebgorges (above) in your theme’s functions.php):
`
<?php //for use in the loop, list 5 post titles related to user profile interest areas – checkboxes in extended profile
$backup = $post; // backup the current object
//Fetch profile tags from custom field ‘Areas of Interest’ and clean up data
$profileTagFull = xprofile_get_field_data( ’25’ , bp_loggedin_user_id() );//Fetch the text for the tags
$profileTagClean = implode( ‘, ‘, $profileTagFull);//Clean up the data$profileargs=array(
‘tag_slug__in’ => explode( ‘, ‘, $profileTagClean ),
‘post__not_in’ => array($post->ID),
‘showposts’=>5,
‘orderby’ => rand,
‘order’ => DESC,
‘caller_get_posts’=>1
);
?>
Content of Interest
()-
<?php
- cat_name . ‘: ‘; ?><a href="” rel=”bookmark” title=””>
- No related content
$profile_query = new WP_Query($profileargs);
if( $profile_query->have_posts() ) {
while ($profile_query->have_posts()) : $profile_query->the_post(); ?><?php endwhile;
} else { ?><?php }
$post = $orig_post;
wp_reset_query();
?>`
Thanks to @hnla @r-a-y and @boonebgorges for their help.October 29, 2010 at 8:29 am #96878In reply to: Add content under group avatar
October 29, 2010 at 7:26 am #96875techguy
ParticipantAlso, if you want to do paid subscriptions you should really look at using the s2member plugin. It’s as simple and straightforward as you’re going to find to set up a paid section of BuddyPress.
October 29, 2010 at 5:49 am #96871r-a-y
KeymasterGood to know you figured it out!
BuddyPress has forced me to learn a lot more about WordPress as well. A win-win!October 29, 2010 at 5:47 am #96870Dickson Waudo
Participant@nuprn1 @r-a-y Just a little update,
Finally got around to it, actually the lastest Buddypress update kinda forced me to and it worked like a charm. I had to educate my self on wordpress’s apply_filters and add_filters.
I wrote a custum function that filtered the results of the groups_get_groups function, basically removing my “handy dandy” code from the core files into my cutome plugin class file. Thanks for all your help.
-
AuthorSearch Results