Forum Replies Created
-
In reply to: Where did user interactions go?
Can you try overwriting what is in your /buddypress/bp-themes/bp-default/ folder from the manual package?
Do the buttons show up when you use the bp-default theme?
In reply to: Add Bp users to multiple blogs at registrationCheck out the following network plugin:
https://wordpress.org/extend/plugins/wpmu-new-blog-defaults/It doesn’t add a field on the registration page, but it gives the super admin the option of adding users to specific blogs in the admin area.
In reply to: Post Thumbnail in BP-Default ThemeSounds like you have the image working, but you need to get acquainted with CSS, especially the float declaration.
Try fooling around with this in your stylesheet:
`
.entry .thumbnail {float:left; padding-right:1em;}
`In reply to: API documentation…Check out:
http://codex.buddypress.orgFeel free to fill in the gaps.
In reply to: Group Activity FeedFor the alternative method, use Rich’s block activity types plugin:
https://wordpress.org/extend/plugins/buddypress-block-activity-stream-types/There’s a bug in the ‘bp_get_the_profile_field_datebox’ that’s preventing overriding the date field.
See – https://trac.buddypress.org/ticket/2947.—
@bobsie – To override the year value temporarily, you’ll need to patch /buddypress/bp-xprofile/bp-xprofile-templatetags.php:
https://trac.buddypress.org/attachment/ticket/2947/2947.001.patch (only lines 457-534 are important).Once you’ve made those changes, add the following to your theme’s functions.php:
`
function my_datebox_field ($html, $type, $day, $month, $year, $default_select ) {// change your max year here
$year_max = 2013;/* Check for updated posted values, but errors preventing them from being saved first time */
if ( !empty( $_POST ) ) {
if ( $day != $_POST )
$day = $_POST;
}if ( !empty( $_POST ) ) {
if ( $month != $_POST )
$month = $_POST;
}if ( !empty( $_POST ) ) {
if ( $year != date( “j”, $_POST ) )
$year = $_POST;
}$html = ”;
switch ( $type ) {
case ‘day’:
$html .= ‘–‘;for ( $i = 1; $i < 32; $i++ ) {
if ( $day == $i ) {
$selected = ‘ selected = “selected”‘;
} else {
$selected = ”;
}
$html .= ” . $i . ”;
}
break;case ‘month’:
$eng_months = array( ‘January’, ‘February’, ‘March’, ‘April’, ‘May’, ‘June’, ‘July’, ‘August’, ‘September’, ‘October’, ‘November’, ‘December’ );$months = array( __( ‘January’, ‘buddypress’ ), __( ‘February’, ‘buddypress’ ), __( ‘March’, ‘buddypress’ ),
__( ‘April’, ‘buddypress’ ), __( ‘May’, ‘buddypress’ ), __( ‘June’, ‘buddypress’ ),
__( ‘July’, ‘buddypress’ ), __( ‘August’, ‘buddypress’ ), __( ‘September’, ‘buddypress’ ),
__( ‘October’, ‘buddypress’ ), __( ‘November’, ‘buddypress’ ), __( ‘December’, ‘buddypress’ )
);$html .= ‘
‘;for ( $i = 0; $i < 12; $i++ ) {
if ( $month == $eng_months[$i] ) {
$selected = ‘ selected = “selected”‘;
} else {
$selected = ”;
}$html .= ” . $months[$i] . ”;
}
break;case ‘year’:
$html .= ‘—-‘;for ( $i = $year_max; $i > 1899; $i– ) {
if ( $year == $i ) {
$selected = ‘ selected = “selected”‘;
} else {
$selected = ”;
}$html .= ” . $i . ”;
}
break;
}return $html;
}
add_filter( ‘bp_get_the_profile_field_datebox’, ‘my_datebox_field’, 10, 6 );
`In reply to: PHP help links in bp_core_add_message@ewebber – Just checked. Yeah the message gets escaped, so you can’t add HTML by default.
If you want to add HTML, you’ll have to remove how BP renders the message, then you’ll have to write your own custom message function.
Untested, but this should work in your theme’s functions.php:
`
remove_action( ‘wp’, ‘bp_core_setup_message’, 2 );function my_bp_core_setup_message() {
global $bp;if ( empty( $bp->template_message ) )
$bp->template_message = $_COOKIE;if ( empty( $bp->template_message_type ) )
$bp->template_message_type = $_COOKIE;add_action( ‘template_notices’, ‘my_bp_core_render_message’ );
@setcookie( ‘bp-message’, false, time() – 1000, COOKIEPATH );
@setcookie( ‘bp-message-type’, false, time() – 1000, COOKIEPATH );
}
add_action( ‘wp’, ‘my_bp_core_setup_message’, 2 );function my_bp_core_render_message() {
global $bp;if ( $bp->template_message ) {
$type = ( ‘success’ == $bp->template_message_type ) ? ‘updated’ : ‘error’;
?>
<div id="message" class="”>template_message; ?>
<?php
do_action( ‘bp_core_render_message’ );
}
}`You can apply a filter to ‘bp_get_the_profile_field_datebox’ to add extra years:
`apply_filters( ‘bp_get_the_profile_field_datebox’, $html, $day, $month, $year, $default_select );`
Find the bp_get_the_profile_field_options() function in /buddypress/bp-xprofile/bp-xprofile-templatetags.php where this filter is defined, so you’ll have a better idea of how to override it.
Some sample code that you can add to your theme’s functions.php:
`function my_year_field ($html, $day, $month, $year, $default_select ) {
// your code to override the year field
}
add_filter( ‘bp_get_the_profile_field_datebox’, ‘my_year_field’, 10, 5 );
`In reply to: Too late to create a child theme?Remember the codex is your friend!
https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/
https://codex.buddypress.org/theme-development/In reply to: Group Settings will not be saved…Like I mentioned, that is the intended behaviour. This is probably done to prevent accidentally spamming your users every time the group description is changed.
File a ticket if you are not satisfied with this:
https://trac.buddypress.org/newticketLogin with the same credentials you use here on bp.org.
In reply to: Private Messaging BrokeObject caching bug most likely experienced with W3 Total Cache.
If you don’t have W3 Total Cache installed, not sure.In reply to: Ban and Kick User is BrokenThanks for noting the problems!
Added a potential fix here:
https://trac.buddypress.org/ticket/2661In reply to: Embedded Video not Displaying on HomepageTry reading up on enabling a third-party provider for WordPress’ embedding capability:
https://codex.wordpress.org/Embeds#How_Can_I_Add_Support_For_More_Websites.3FIf you want to use Wistia code, which I’m guessing you need to use the “ or “ tags, you’ll need to bypass the activity filters that are in place by default, so malicious content will not get the chance to be executed.
If you trust your userbase, you can disable these filters by reading this:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/make-users-able-to-use-and-in-their-postsIf you’re planning on just embedding the Wistia video on a blog post, just enable some form of WordPress plugin that allows you to embed content like this:
https://wordpress.org/extend/plugins/embed-object/In reply to: Change RSS outputYou basically have to unhook how BuddyPress creates feeds and create your own files and display methods.
Here’s a thread from awhile back detailing how to do this for the group activity feed:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/group-activity-feed-1/You should be able to duplicate this for all the other feeds as well.
In reply to: Group Settings will not be saved…This is the default behaviour, which is kind of counter-intuitive.
I would recommend using the BP Group Email subscription plugin instead (which I believe you’re thinking of):
https://wordpress.org/extend/plugins/buddypress-group-email-subscription/In reply to: PHP help links in bp_core_add_messageHaven’t tested this, but try adding your message in a variable:
`
$message = ‘This is my message with a link
‘;
bp_core_add_message( $message );
`As far as I know, there is no automatic matching plugin based on a user’s profile fields.
However, users can manually search for other members.
Use the BP profile search plugin for more fine-tuned searches:
https://buddypress.org/community/groups/bp-profile-search/In reply to: Error with BP-usernames-only@footybible – Yes please send me a link. If you have an email addy, use http://scr.im and post it that way.
In reply to: Friend Requests and Sending Messages Not WorkingRe: friend requests page – you have to be logged in in order to view that page. This is a usability bug; will post it on the BP Trac.
In reply to: Error with BP-usernames-only@footybible – We’re not always online at the time you want to be!
Try deactivating and deleting the plugin, then install the plugin manually:
https://downloads.wordpress.org/plugin/buddypress-usernames-only.zipIf the problem persists let me know and I’ll look into it.
In reply to: Child Themes – Best PracticeSome recommend copying the default CSS over to your stylesheet.
Benefits of this approach is one less data request and full control over your styles (good when you’re designing a completely different look from bp-default).
Negative is if your child theme completely relies on the bp-default theme with little design changes, you might as well use the @import- declaration so you can easily override selected style declarations on a case-by-case basis. Some theme designers frown upon using !important, but at the end of the day, it’s your call.
In reply to: Site Title in Admin BarJust tested this on BP 1.2.6 and your example works for me.
What version of BuddyPress are you using? This was a bug in a previous version of BP.
In reply to: Buddypress 1.2.6Re #1 – BP 1.2.7 will fix this.
If you can’t wait until then, try the solution posted in this thread:
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-76621Re #2 – Most likely a child theme issue. Can you post a screenshot to confirm?
@zomex – You might want to try this in your theme’s functions.php:
`remove_action( ‘init’, ‘bp_core_add_admin_bar_css’ );
if ( !is_admin() )
add_action( ‘init’, ‘bp_core_add_admin_bar_css’ );`Untested, but give it a shot.
—
Actually, based on your report, it’s hard to give a definitive answer. What exactly is breaking in the admin area?
In reply to: Forum Directory Margin Cut offPlease don’t bump your thread after two hours; a good window for bumping is 24 hours.
Also no one can tell based on your screenshot what exactly needs to be fixed in the CSS.
I’m guessing it’s a padding / margin or z-index issue.If possible, can you post a link to your site?