how to remove header from registration page? [closed]

If you don’t mind editing your themes files, you can remove color.css from the registration page by editing the functions.php file and change line 127 from: wp_enqueue_style( ‘frisco-color-css’); to: if ( ! is_page( ‘register’ ) ) wp_enqueue_style( ‘frisco-color-css’); Otherwise you can include a function in a plugin or similar: add_action( ‘init’, function() { if ( … Read more

Change Buddypress Activity Stream Date format [closed]

The two filters you’re looking for are (source): bp_activity_time_since bp_activity_permalink To modify the date format, you could probably use the bp_core_time_since_pre filter to bypass BuddyPress’s time_since calculations (source). Alternatively, you could completely override (i.e. replace) the activity meta output with the bp_insert_activity_meta filter

Buddypress Language Files Question [closed]

The naming convention for plugins translation files (.mo and .po files) is pluginname-language_COUNTRY.mo. So, for example, a French translation files of Buddypress will be: buddypress-fr_FR.mo and buddypress-fr_FR.po. After renaming these files, put them in wp-content/languages directory and your translation should work. Note that WP_LANG must be defined with the same language (fr_FR for example) for … Read more

How to: get_user_meta – BuddyPress [closed]

Inside the loop, you can get the currently iterated user id using bp_get_member_user_id(). Also, it’s best practice to use bp_get_user_meta(), because it works better with certain kinds of BP plugins (multi-network, etc). Thus: if ( bp_has_members() ) { while ( bp_members() ) { bp_the_member(); $user_last = bp_get_user_meta( bp_get_member_user_id(), ‘last_name’, true ); } }

How to send a BuddyPress user a notification on a plugin event? [closed]

First you need to setup component for this: function notifier_setup_globals() { global $bp, $current_blog; $bp->notifier = new stdClass(); $bp->notifier->id = ‘notifier’; $bp->notifier->slug = ‘notifier’; $bp->notifier->notification_callback = ‘bp_notifier_format_notifications’;//this is a function which gets notifications $bp->active_components[$bp->notifier->id] = $bp->notifier->id; do_action( ‘notifier_setup_globals’ ); } add_action( ‘bp_setup_globals’, ‘notifier_setup_globals’ ); To add notifications call something like this inside your action: bp_core_add_notification( … Read more

Display multi-select box choices in a bullet list [closed]

From your comment below: This code displays the members selections but only as a comma separated list: <?php bp_member_profile_data( ‘field=Countries’ ); ?> // $countries_csl should contain something like ‘hufflepuff, hogwarts, heaven, hell’ $contries_csl = bp_get_member_profile_data( ‘field=Countries’ ); // convert the comma seperated list (csl) into an array by using explode( [delimiter], [string] ) $countries = … Read more

Wp favorites posts by specific category? [closed]

This should do what you want: $have_favorite_posts = false; $favorite_post_ids = wpfp_get_users_favorites(); $cat = get_category_by_slug(‘news’)->cat_ID; // or if you want to use the category name (as tried in your code) // $cat = get_cat_ID(‘News’); if (! empty($favorite_post_ids)) { $fp_query = new WP_Query(array( ‘cat’ => $cat, ‘post__in’ => $favorite_post_ids, )); if ($fp_query->have_posts()) { $have_favorite_posts = true; … Read more