Forum Replies Created
-
In reply to: Activity Meta/Entry.php if ( is_user_logged_in() )
Im an idiot.. i found it at / buddypress / bp-templates / bp-legacy / buddypress / activity / entry.php
is there a way to do this in “BP-Custom”?
In reply to: Show & Tell: VeloHive.comUpgrading to php7 is on my to do list… but its a bit of a bear to wrestle with on my VPS with (mt).. so Im holding off on upgrading for a bit
In reply to: Customizing BuddyPress Avatars – BROKEN??This worked!
adding
add_filter('bp_core_fetch_avatar_no_grav', '__return_true');this is what my bp-custom looks like now to make it work:
define('BP_DEFAULT_COMPONENT', 'profile' ); define ( 'BP_AVATAR_THUMB_WIDTH', 125 ); define ( 'BP_AVATAR_THUMB_HEIGHT', 125 ); define ( 'BP_AVATAR_FULL_WIDTH', 150 ); define ( 'BP_AVATAR_FULL_HEIGHT', 150 ); add_filter('bp_core_fetch_avatar_no_grav', '__return_true'); define ( 'BP_AVATAR_DEFAULT', 'https://veloXXXXXXXhive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-150px-x-150px-17Teeth-EVO.png' ); define ( 'BP_AVATAR_DEFAULT_THUMB', 'https://veloXXXXXXhive.com/wp-content/uploads/2017/06/VeloHive-Default-User-Avatar-125px-x-125px-17Teeth-EVO-THUMBNAIL.png' );Someone should probably update that codex doc
Oooh… this was an easy way to get it to be “ROWS”
td { display: table-row; }<table class="profile-fields"> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class(); ?>> <td class="label"><?php bp_the_profile_field_name(); ?></td> <td class="data"><?php bp_the_profile_field_value(); ?></td> </tr>I found this at bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
I have no idea about HTML.. any tips?
@henrywright Brajesh is the developer as is @buddydev (I believe Brajesh runs it)
@HenryWright Big thanks! I love recommendations like these..
I’ve installed it. I hope it doesnt affect site performance. I’ll report back if it does!
In reply to: How do i use bp_user_query search_terms on my theme?Ok. Im a dummy..
I need to use bp_has_members
bp_has_members("search_terms={return-users-with-term-from-get_search_query}")my goal is to have a code snippet that i can use inside my theme so that anytime theres a search – it also returns a list of bp members.
any ideas? (p.s. i really have no clue what im doing)
<p>members <?php echo bp_has_members("search_terms={return-users-with-term-from-get_search_query}"); ?>" . these are members </p> <p>normal post " <?php echo esc_html( get_search_query( false ) ); ?> ". Here are the results:</p>In reply to: Random User when /Members is loaded?@espellcaste @danbp
That worked well!!! *thank you – thank you*I also added the code below to display 50 users – is there a way to combine them or factor it down?
function more_users( $args ) { if ( is_admin() && ! defined( 'DOING_AJAX' ) ) { return $args; } $args['per_page'] = '50'; return (array) $args; } add_filter( 'bp_after_has_members_parse_args', 'more_users', 10 ); ?>In reply to: Random User when /Members is loaded?I found this handy
It works in BP-custom.php — im trying to get it to load instead of “alphabetical”
// Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; class BP_Loop_Filters { /** * Constructor */ public function __construct() { $this->setup_actions(); } /** * Actions * * @uses bp_is_active() * @uses is_multisite() */ private function setup_actions() { /** * Adds the random order to the select boxes of the Members, Groups and Blogs directory pages */ // Members component is core, so it will be available add_action( 'bp_members_directory_order_options', array( $this, 'random_order' ) ); // You need to check Groups component is available if( bp_is_active( 'groups' ) ) add_action( 'bp_groups_directory_order_options', array( $this, 'random_order' ) ); // You need to check WordPress config and that Blogs Component is available if( is_multisite() && bp_is_active( 'blogs' ) ) add_action( 'bp_blogs_directory_order_options', array( $this, 'random_order' ) ); } /** * Displays a new option in the Members/Groups & Blogs directories * * <a class="bp-suggestions-mention" href="https://buddypress.org/members/return/" rel="nofollow">@return</a> string html output */ public function random_order() { ?> <option value="random"><?php _e( 'Random', 'buddypress' ); ?></option> <?php } } // 1, 2, 3 go ! function bp_loop_filters() { return new BP_Loop_Filters(); } add_action( 'bp_include', 'bp_loop_filters' );In reply to: Random User when /Members is loaded?@danbp Is it possible to this in bp-custom.php
In reply to: whats-new-textarea – sizeBig thanks! its definitely got me to the right direction..
though… im a little nervous to make updates on Buddypress.js-im trying it out now on twenty seventeen
In reply to: whats-new-textarea – sizeHey Guys,
Any idea how I can make the “Post Update” always be visible.
Thanks – any tips would be helpful