Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 5,976 through 6,000 (of 68,948 total)
  • Author
    Search Results
  • #276411

    Thanks for the super quick response @shanebp!

    I did take a look at this filter, but in reviewing the BP_Email class, it would appear that this only disables the BP PHP Mailer templating system, but still sends the email using WP Mail.

    I really want to prevent it from sending any BP Emails at all, whether through WP Mail, or the BP_Email system.

    I also noticed the “bp_send_email” action hook, which looks like it could be used to collect all of the token data from the email before it is sent:

    https://github.com/buddypress/BuddyPress/blob/6f6bbc1ccf78a1c91e7b0bf33de704807570002b/src/bp-core/bp-core-functions.php#L3140

    In theory, I could use this to send my own email using the Email Type and Token data. Is there anywhere in the BP source code that will show me how the associative array for the Token data is formatted? And is there anywhere that I can see a list of the supported Email Types?

    Any help with this would be much appreciated!

    #276405
    heikesworld
    Participant

    There should really be a flag option incorporated in Buddypress! I believe it is vital for a social network to be able to flag inappropriate posts and users.

    #276404
    mattmatthew
    Participant

    Actually, it was working some time ago and was showing all widgets but, I wanted to remove the Title of the page as it was showing repeated Title, so for Members page from “Page Attributes” I changed “Default Template” to “No Title” and then all widgets gone away. So, I don’t think its a bug of theme.

    All other buddypress pages are showing sidebar widgets. Only Members page has issues. So my question is, in case if I deletes or edit members or any other buddypress default pages by mistakes, I can’t recreate them? Technically they are all blank pages.

    #276399
    mattmatthew
    Participant

    Buddypress does this automatically. It requires a blank page with default template, no membership required.

    This is how it works for other pages.

    #276383
    shanebp
    Moderator

    Go here and scroll to the bottom: https://codex.buddypress.org/emails/

    #276376
    Matt Pritchett
    Participant

    I think I’ve found it. In buddypress/bp-activity/classes/class-bp-activity-component.php, on line 182, the two arguments has_directory and directory_title seem to drive this listing inside of parent::setup_globals($args). I’ll be testing this tonight.

    #276373

    In reply to: Description Groups

    Theunis Coetzee
    Participant

    Just a quick note:

    I’ve searched through their tickets and this is being addressed and from what I can figure out doing a quick read through the fix should be released in 3.2.0.

    The fixes for the defect follows a slightly different approach so it’s worth a read-through if you would like to attempt using a different method. I unfortunately haven’t got time to test for now, so I’m just mentioning the alternative for those interested.

    https://buddypress.trac.wordpress.org/ticket/7923

    #276367
    dutch84
    Participant

    @prashantvatsh Sorry to bother you, but I tried the following solution, and it is still not working:

    First, I added the following code to my bp-custom.php file:

    <?php
    
    //The following creates avatar class in activity stream
    //based on x-profile field data
    
    function buddydev_create_avatar_class_based_on_field_data() {
        
    	$user_id = bp_get_activity_user_id();
    	$title = xprofile_get_field_data('25', $user_id); // field ID or name
    	$title = strtolower( $title );	
    	$class = $title.'avatar';
    	
    	echo $class;
    }
    
    add_action( 'create_activity_avatar_class_based_on_field_data', 'buddydev_create_avatar_class_based_on_field_data', 10, 1 );
    
    ?>

    Then, I added the following as a class inside the div tag for activity avatar in my buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php file:

    <?php do_action( 'create_activity_avatar_class_based_on_field_data'); ?>

    Yet still it is not working. Did I put the do_action in the wrong file?

    #276344
    lookingahead
    Participant

    oh that fixed it by the way, thanks for the link @shanebp

    now, the only weird thing i need to fix is the fact that the group title is not showing and instead says, ‘hidden group’

    why in the world this would be something to show in lieu of the group title is beyond me. the group title is nowhere to be shown on the page, at all….so if a user is part of multiple hidden groups it can get confusing very fast, if they can’t figure out which group they’re in without going through comments, etc…i’d rather not do that to users.

    i want the title of the group to show where it says, ‘hidden group’ rather than the message that it’s hidden.

    if for some reason that is ‘too complex a task’ for buddypress to handle or involves a lot of wacky workarounds, i’d rather change that message to something else that i can use as a default, and then just use the description to signify which group they’re in, and what the group was created for.

    screenshot of what i’m speaking of:

    Image and video hosting by TinyPic

    #276341

    In reply to: Description Groups

    lookingahead
    Participant

    @ipokkel unfortunately that line (line 62) does not exist, and it appears there’s been a change to that file since you posted your workaround.

    so where would i place that fix now? there appear to be several places that are similar to the code you mentioned, but nothing is exactly the code you mentioned…i think. i may have missed it if it is elsewhere; short on coffee today. 😀

    thoughts?

    here’s the code in that file:

    <?php
    /**
     * BuddyPress - Groups Header
     *
     * @since 3.0.0
     * @version 3.1.0
     */
    ?>
    
    <?php bp_get_template_part( 'groups/single/parts/header-item-actions' ); ?>
    
    <?php if ( ! bp_disable_group_avatar_uploads() ) : ?>
    	<div id="item-header-avatar">
    		<a href="<?php echo esc_url( bp_get_group_permalink() ); ?>" class="bp-tooltip" data-bp-tooltip="<?php echo esc_attr( bp_get_group_name() ); ?>">
    
    			<?php bp_group_avatar(); ?>
    
    		</a>
    	</div><!-- #item-header-avatar -->
    <?php endif; ?>
    
    <div id="item-header-content">
    
    	<p class="highlight group-status"><strong><?php echo esc_html( bp_nouveau_group_meta()->status ); ?></strong></p>
    
    	<p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
    		<?php
    		echo esc_html(
    			sprintf(
    				/* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
    				__( 'active %s', 'buddypress' ),
    				bp_get_group_last_active()
    			)
    		);
    		?>
    	</p>
    
    	<?php bp_nouveau_group_hook( 'before', 'header_meta' ); ?>
    
    	<?php if ( bp_nouveau_group_has_meta_extra() ) : ?>
    		<div class="item-meta">
    
    			<?php echo bp_nouveau_group_meta()->extra; ?>
    
    		</div><!-- .item-meta -->
    	<?php endif; ?>
    
    		<?php if ( ! bp_nouveau_groups_front_page_description() ) { ?>
    			<?php if ( bp_nouveau_group_meta()->description ) { ?>
    				<div class="group-description">
    					<?php echo bp_nouveau_group_meta()->description; ?>
    				</div><!-- //.group_description -->
    			<?php	} ?>
    		<?php } ?>
    
    </div><!-- #item-header-content -->
    
    <?php bp_nouveau_group_header_buttons(); ?>
    
    #276334
    shanebp
    Moderator
    #276319
    Prashant Singh
    Participant

    Hi,

    Please check this thread: https://buddypress.org/support/topic/how-to-show-sitewide-activity-in-profile-page/

    And try to use that activity loop.

    Thanks

    #276318
    Prashant Singh
    Participant

    Yes, it seems so. bp-custom.php is a file that resides in your WordPress ‘plugins’ folder, I think you have created that in BuddyPress folder. Please put that in the plugins folder.

    #276315
    lookingahead
    Participant

    that plugin has several issues…unfortunately. one look at the reviews and i knew that was not a plugin i’d ever use.

    i decided to not try to upload pics in the activity stream afterall. i’m going to just go with the forums and am using GD image there; works well.

    my new issue: trying to figure out where the template/shortcode is in either bbPress or BuddyPress that creates a topic discussion page. the page where the actual topic discussion takes place…not merely the default forum page with all the topics listed there.

    if you know where i can find that shortcode/code that structures the topic page where the topic itself is discussed, please let me know…

    #276312
    jebus
    Participant

    Thanks, but I’m not sure how that applies to my question. I’m talking about the registered and activity date/time in the Edit Profile page within the WP admin. They’re showing GMT time, not the selected time zone.

    Specifically, they’re at lines 1090 and 1150 of /plugins/buddypress/bp-members/classes/class-bp-members-admin.php.

    #276311
    Prashant Singh
    Participant
    #276306
    Prashant Singh
    Participant

    We already have sidebar for BuddyPress(Members sidebar), you can use your widgets there as well and it will show on buddypress members pages.

    For other solution, you can override buddypress templates and then can call your sidebar in template as well.

    Thanks

    Prashant Singh
    Participant
    #276301
    karimbelghazi
    Participant

    sorry forget to mention : latest wordpress : 4.9.8 buddypress 3.1 and islemag theme…but the issue is still there event if i switch to twentyfefteen or twenty seventeen
    tnx

    #276296
    dom123
    Participant

    Hello Prashant Singh,

    thanks for your quick reply. With the plugins you mention I can only put single parts on a page (like the activity stream or the members listing), but not the whole content (with the profile picture, the profile header, all the menu tabs etc.). I need to do this so I can design the surrounding with the theme’s settings (such as custom sidebars with background gradient colors etc.) …I guess there is not an easy way to take the whole BuddyPress console and put it within a normal page, but what would be a good workaround for that?

    #276295
    Carsten Lund
    Participant

    This issue has been known for over a year, why hasn’t buddyPress come up with a solution by now?
    When can we expect to see an update from BuddyPress?

    Prashant Singh
    Participant

    Yeah, As shane said it’s not default BuddyPress feature. You must have any plugin there that is creating that page and restricting from seeing home page.

    Thanks

    #276274
    Prashant Singh
    Participant

    Hi,
    I know you want to use BuddyPress function only but as an alternative you should use this one if you want to add class there:

    get_avatar( bp_displayed_user_id(), $size = '150', 'default_image_url', 'alt_text', $args = array( 'class' => array( 'newClass' ) ) );

    For other solution, paste the following in your child theme’s functions.php file:

    add_filter( 'bp_get_displayed_user_avatar', 'bp_get_displayed_avatar_class',10,3 );
    function bp_get_displayed_avatar_class ($avatar, $r, $args){
    	$args['class'] = 'newClass';
    	return $avatar;
    }

    and keep your code same bp_displayed_user_avatar('width=150');

    Thanks

    #276272
    Prashant Singh
    Participant

    Basically there are multiple plugins that allows to upload media and the plugin I gave you should work for sure to upload image in activity. Anyways, you can try this one as well https://wordpress.org/plugins/buddypress-media/

    #276269
    Prashant Singh
    Participant

    Hi,

    Try overriding the widget code in child theme and the edit it there.

    You can find the file at buddypress->bp-blogs->classes->class-bp-blogs-recent-posts-widget.php

    Thanks

Viewing 25 results - 5,976 through 6,000 (of 68,948 total)
Skip to toolbar