Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 6,001 through 6,025 (of 68,969 total)
  • Author
    Search Results
  • #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

    #276267
    Prashant Singh
    Participant

    Hi,

    To generate all those sections if you want to use shortcode then there are multiple solutions like:

    Shortcodes for BuddyPress

    BuddyPress Activity Shortcode

    Thanks

    #276256

    In reply to: Sidebars and pages

    lordmatt
    Participant

    That might just be the most useful and easy to implement thing anyone has ever told me about buddypress. So simple when you know how. Thank you, @Damon18.

    #276255
    lordmatt
    Participant

    My set up is multisite with subdomains and buddypress on the root site. I am the admin.

    It has been noted before by users but I had always got past it by hitting refresh and removing the groups from any sort of caching at all. I’ve noticed that using switch users is fine everywhere but in groups where you have to fight to stay logged in and on the right user.

    Recently, however, it has gotten worse. I cannot administrate any groups as I am instantly logged out on EVERY new groups page I view. I navigate to site, login and browse around – all good. Go to groups – logged out. Hit login and get redirected back to groups. All good. Change page (logged out again). Rinse and repeat.

    I purged the site cache, my browser cache even cookies. I logged into the DB and optimised the tables. I have tried everything I can think of and yet I cannot stay logged in when viewing groups.

    #276253
    shanebp
    Moderator

    You can’t do it in BuddyPress. You need to do it in bbPress. And you’ll need to hire a developer to write some custom code.

    #276251
    lookingahead
    Participant

    yes — i’m aware, @shanebp lol

    i’m asking how to do this in buddypress and mentioned bbpress for reference

    can you actually help or are you just responding to tell me to go elsewhere?

    #276247
    shanebp
    Moderator

    It’s not clear what the issue is.

    If you are referring to the ‘p’ tags in the description,
    it is a known bug. For now, here is the fix:

    Description Groups

    #276238
    Prashant Singh
    Participant

    BuddyPress Activity Plus

    Please try this plugin once.

    Thanks

Viewing 25 results - 6,001 through 6,025 (of 68,969 total)
Skip to toolbar