Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,926 through 12,950 (of 69,016 total)
  • Author
    Search Results
  • #239695
    majecdad
    Participant

    First, @henrywright, I think you were right, that code was not creating the entry, it was created because I had add_post_type_support( 'alert', 'buddypress-activity' ); in bp-custom too. Thanks for making me think twice.

    It’s amazing what you can learn in 12 hours. Not enough, but it’s a start. So I tossed the baby out with the bathwater, and read this about 15 times to get to a partial understanding of it. I am now using this:

    // Don't forget to add the 'buddypress-activity' support!
    add_post_type_support( 'alert', 'buddypress-activity' );
     
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
     
        bp_activity_set_post_type_tracking_args( 'alert', array(
            /*'component_id'             => buddypress()->blogs->id,*/
            'action_id'                => 'new_alert',
            'bp_activity_admin_filter' => __( 'Published a new alert', 'buddypress' ),
            'bp_activity_front_filter' => __( 'Alerts', 'buddypress' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s posted an important new <a href="%2$s">** Alert **</a>', 'buddypress' ),
            'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">alert</a>, on the site %3$s', 'buddypress' ),
            'position'                 => 100,
        ) );
    }
    add_action( 'bp_init', 'customize_page_tracking_args' );

    After about 20 different mods, adding and deleting and changing, I got a CPT to take to the activity stream, with the (mostly) modified text I was looking for.

    I actually don’t even know what some of the items in the array are, I just changed things until they worked. 🙂 In fact, I had to comment out component id, because I still haven’t figured out what goes there to keep from getting a WSOD.

    The only main thing I’d really still like to accomplish is getting the Post Title in the link that is created here: '%1$s posted an important new <a href="%2$s">** Alert **</a>' — where it would be like “soandso posted an important new Alert:The Title of the CPT”

    Any ideas out there?

    If this is still not the right/best way to accomplish this, I’m open to suggestion. But I think I am at least stepping in the right direction.

    Thanks.

    #239694
    niranjan4790chouhan
    Participant

    I’ve tried AddToAny, Ultimate social media and icon plugin in buddy press theme. but it is not sharing image and correct title on facebook. Is this problem of buddypress theme?

    #239685
    ibrahim_alfors
    Participant

    @shanebp thank you for the reply.

    I have researched the plugins that allow the searching for members and I found that this plugin is great but unfortunately the requirements of my client need a lot more customization and I find the documentation of buddypress much more helpful.

    About the:
    xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )
    I think using that in a Query would be very expensive as it would require doing more database transaction over the search transaction. Am I right?

    The wild card seems like a decent way to go with it, I think I will try that 🙂

    Thank you.

    #239683
    shanebp
    Moderator

    a:3:{i:0;s:7:”English”;i:1;s:4:”Math”;i:2;s:10:”Substitute”;}
    is a serialized array.

    BuddyPress will unserialize profile data via
    xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )
    and return an array.

    But if you want to do this in the context of a search query, you probably want to use wildcards in the mysql statement, for example: %math%.
    This can be tricky to implement if you haven’t done it before.

    There is already a good plugin that does member searches based on profile field values:
    https://wordpress.org/plugins/bp-profile-search/

    PinkishHue
    Participant

    @rglennall I’m assuming this should go in your bp-custom.php file, see info here if unfamiliar:

    bp-custom.php

    Hope that helps!

    #239679
    majecdad
    Participant

    Hi @henrywright

    The code was that that I pulled from the other post. Here it is:

    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action,  $post, $post_permalink ) { 
    
       if( $post->post_type == 'agency' ) {
    	$activity_action  = sprintf( __( '%1$s created a new Post, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }
    	
       return $activity_action;
    }
    

    the only change was that I changed the post_type from ‘projects’ in the original to ‘agency’ in mine, and changed ‘Project’ to ‘Post’ in the next line.

    This is my first test use of CPT’s and then trying to tie them to the BP stream, so I’m learning. 🙂

    Thanks.

    #239673

    In reply to: WP_Query and BP

    shanebp
    Moderator

    I need page ID of current BP page

    Which, as you’ve noted, will be 0.
    And don’t expect that to change any time soon, if ever.

    If you want to know which BP page you are on, via a boolean, see:

    Template Tag Reference

    #239658
    peter-hamilton
    Participant

    pretty cool theme, not 100% sure about the left bar which takes so much of the pages without adding much

    But pretty cool mate.

    P.H.
    My Buddypress Theme

    #239656
    hammed4real101
    Participant

    Am using statfort-educational-wordpress, and have enable sidebar on the buddypress activity page.

    am really confuse, help me out.

    http://themeforest.net/item/statfort-educational-wordpress-theme/6839697

    #239653
    Henry Wright
    Moderator

    Hi @albydigei

    This functionality is currently in development. See this ticket for progress:

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

    #239634
    proteas
    Participant

    I deactivated all other plugins besides BuddyPress. Activated the 2014 theme. Changed the language to English and made sure BuddyPress pages were all assigned. The permalinks were already not on default. Then I deleted the wp-config and htaccess.

    Then I got to the point of install. I was asked for database information. I put the information of my already existing database, but I changed the wp_ table prefix to match the one I use for my already existing database and WP said that there was already an installation and didn’t go further. It automatically generated the wp-config with new hashes, but not .htaccess. I created it myself and only put the WP default .htaccess code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Just to make sure, I also downloaded my entire public_html directory, and also downloaded a fresh copy of WordPress 4.2.2 and BuddyPress 2.2.3.1 and then ran them through a file difference checker application. The only two differences I found were:

    1. “version.php” inside the WordPress “includes” folder
    had as last line $wp_local_package = ‘el’; and I removed it and

    2. in BuddyPress “bp-members” folder the file “bp-members-template.php” I had changed a language string and I replaced the entire file with the fresh copy.

    All other WordPress and BuddyPress files are completely identical with the original versions.

    I used a different browser to register, but the problem persists exactly the same. It doesn’t work for any gmail account, but works for 1 of the two domains that used to work before.

    #239630
    danbp
    Participant

    I’m unable to tell what happens. I tried to register, received the mail, clicked on activation link and error message.
    Tried to login, and didn’t found the wp-login page.

    Some url’s are weird or wrong… and i suspect you haven’t correctly setup BuddyPress.

    Deactivate all plugins but BP
    Deactivate kleo theme and activate 2012 or 2014.

    Go to BP settings and check all pages. You need a page for each component. This page must only have a title and should be absolutely blank, without any template or page model assigned.

    Go to permalinks and select an option. Whatever except default. Save.

    Via FTP, delete wp-config.php and htaccess. This will not affect the DB content
    Run WP install again (yoursite.com/install). The goal is to generate a brand new htaccess and wp-config file.
    When you’re asked for, use salt key generator and copy/paste the result to wp-config

    If all went correctly, you have a fresh install.

    Return to BP settings and check that anything is still in place. Register and activation page maybe completed or not assigned. In this case, assign a page to each.

    Return to permalinks and simply save the page.

    Now you can test registering again. If it is ok, you activate kleo and re-test registering.

    Subsidiary question: have you installed WP manually or did you used a hosted automated package ?

    Check also kleo’s support about BP configuration.

    #239624
    majecdad
    Participant

    In case anyone was wondering, this was resolved by the fine folks over here. https://buddypress.org/support/topic/group-moderator-broken/

    Just cleaning up after myself. I can’t close because I was not the OP. 🙂

    #239623
    jookkoo
    Participant

    Hello, Henry Wright

    Admin hosting on trying to fix this. For more information.
    – On hosting, when login to wp-admin and put the username,password after click login. it display White page.

    -On Localhost i am install Query Monitor plugin. and the report as below:
    PHP Error – Declaration of BP_Core_Login_Widget::form() should be compatible with that of WP_Widget::form()
    -Location – wp-content/plugins/buddypress/bp-core/bp-core-widgets.php:138

    Please help
    Thank you

    #239613
    danbp
    Participant

    Annoying issue, was initially reported for BP 1.7

    See https://buddypress.trac.wordpress.org/ticket/4948

    Reopen the ticket, give details and this topic url
    To login use same credentials as for here.

    #239610
    proteas
    Participant

    I have already deactivated all plugins, leaving only BuddyPress active and it still happens.

    The plugins I currently have installed are:
    Agreeable
    bbPress
    BuddyPress Activity Privacy
    BuddyPress Cover Photo
    BuddyPress
    WPBakery Visual Composer
    K Elements
    Rendez Vous
    Revolution Slider
    Social Articles
    Ultimate Coming Soon Page
    W3 Total Cache
    Wp Mail Bank by Tech Banker
    WordPress Simple Security Firewall
    WPAchievements

    danbp
    Participant

    Please search before asking. Search: Remove Profile Links brings up:

    https://buddypress.org/support/topic/on-profile-base-answers-to-fields-works-as-links/

    #239606

    In reply to: Acoustic signal

    danbp
    Participant

    Get inspired by reading from here
    or try to develop something from here

    danbp
    Participant

    @tstrickland415, do you use trunk version ?
    BuddyPress 2.3 introduces the member-type-specific directories. But at this time, we are still under BP 2.2.3.1 and my code is for 2.2.x only

    You have to find your own solution. I have no trunk install under hand at the moment, sorry.

    tstrickland415
    Participant

    Ok now everything works as you mentioned, but there’s just one caveat. The xprofile gets updated fine, but it’s not updating the actual Members Type field in the Extended Profile section of the Users panel in the backend.

    To clarify, when we make the xprofile field it’s a completely separate field than the Members Type field that Buddypress introduced recently. So in the Users->Extended Profile section there’s two fields for Member Types, the one we created and the one Buddypress introduced. Your code is only affecting the one we created and not the real Buddypress Member Type field. Is there a way to have the BP Member Type field get updated with the corresponding member type from the xprofile field?

    almase
    Participant

    dont really understand.
    this code?

    	function bp_get_activity_comment_date_recorded() {
    		global $activities_template;
    
    		if ( empty( $activities_template->activity->current_comment->date_recorded ) )
    			return false;
    
    		$date_recorded = bp_core_time_since( $activities_template->activity->current_comment->date_recorded );
    
    		/**
    		 * Filters the recorded date of the activity comment currently being displayed.
    		 *
    		 * @since BuddyPress (1.5.0)
    		 *
    		 * @param string|bool Date for the activity comment currently being displayed.
    		 */
    		return apply_filters( 'bp_activity_comment_date_recorded', $date_recorded );
    	}

    and add to function.php?

    #239583
    danbp
    Participant

    Do you want to
    1) show a picture in place of a radio button ?
    2) show a picture related to the radio button (if yes, show pic 1, if no show pic2) ?

    If option 1, see here, see also selectbox, etc
    If option 2, see here, at least for inspiration

    almase
    Participant

    Ok i found here an other code:
    https://buddypress.org/support/topic/activity-time-is-gmt-activity-stream-posted-an-update-time-is-incorrect/

    
    function format_activity_date() {
      $activityDate=bp_get_activity_date_recorded();
      // Get GMT offset from root blog
      $root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' );
      // Calculate offset time
      $time_offset = $time + ( $root_blog_offset * 3600 );
      // Format the time using the offset and return it; date-i18n retrieves the date in localized format
      return '' . date_i18n("l, M j, Y, g:ia T", strtotime($activityDate) + $time_offset) . '';
    }
    add_filter('bp_activity_time_since', 'format_activity_date');

    The timezone is now the right one for the first posting in stream, but the comments in stream have now the wrong timezone…. 🙁

    danbp
    Participant

    Please have a look to this ticket
    https://buddypress.trac.wordpress.org/ticket/6421

    Don’t hesitate to give more details or information to the devs. Login is using same credentials as on this forum.

    #239563
    danbp
    Participant

    Tutorial is here:

    2.2 Member Types – Setting user member types during registration (xProfile)

    Closing this topic as duplicate.

Viewing 25 results - 12,926 through 12,950 (of 69,016 total)
Skip to toolbar