Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 19,526 through 19,550 (of 94,540 total)
  • Author
    Search Results
  • wdstuff54
    Participant

    Hi,

    Based on the selection a user makes of a custom field when registering, the correct “Field Group” should appear on their profile (both back-end editing and front-end viewable to the public).

    I added a custom profile field to the “Base” group. It is a drop down box called “Account Type” which appears on the registration page.
    The options are:
    Actor
    Producer
    Director

    Now the part where I’m stuck.

    When registering, if a user selects “Actor”, they should have the “Actor” custom profile field group appear on their profile. If “Producer” is selected, then the “Producer” custom profile field group should appear, etc.

    I don’t want this based on WP role which I’ve seen some people use to solve this. Instead, it should be based on the selection of that initial custom profile field “Account Type”.

    Either a plugin or custom code would be much appreciated!

    I’m using the latest version of BuddyPress V2.2.3.1 and the latest version of WordPress V4.2.2.

    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/

    #239682
    ibrahim_alfors
    Participant

    Hello, so I’m trying to do some coding with buddypress on my own. I’m trying to make a search function in my website where users can search for members using the data from their profiles.

    For example, There are teachers and students on the website. On a page called “Find Teachers”, I want the users to be able to search for teachers using their names and the subjects they teach. A teacher adds these subjects using checkboxes on his profile.

    I have created the query for the searching by name but when I tried to add searching by the checkboxes values I couldn’t understand the way Buddypress handles the checkboxes data in the database. When the teacher checks “English”, “Math” and “Substitute” from the provided choices, the data in the database appears like this:
    a:3:{i:0;s:7:”English”;i:1;s:4:”Math”;i:2;s:10:”Substitute”;}

    Now I want to compare the data the user will insert in the search form with the data in the website but I can’t figure out the way Buddypress Encrypts the data in the database.

    Is there maybe a function included with Buddypress that would encrypt the data from the form to the format in the database or perhaps decrypt the data from the database so I can compare them in a sensible way?

    I really need help with this, thanks guys!

    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.

    dlt101
    Participant

    The following line of code (run during ‘init’ action) …
    $userID = $bp->displayed_user->id;
    produces an error in the debug.log.
    Undefined property: stdClass::$id

    Yet if I print_r($bp->displayed_user), the ‘id’ property is there and set.

    I am using the latest WordPress and Buddypress.
    What am I missing?

    #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

    robertroos
    Participant

    Hi,

    I’ve just installed BuddyPress on my website and I want to start using it. I’ve setup the default pages and they seem to work. Now I want to create a menu structure by adding items from the BuddyPress list to my menu. Unfortunately most of these preset links won’t work. If I click on these items e.g. Activity it redirects me to my profile page (UserPro a 3rd party user profile plugin). It seems there is some kind of redirect from these menu links to default profile page. Hope anyone knows what this issue is?

    Regards,

    Robert

    #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

    albydigei
    Participant

    In my site (http://pickandpopculture.it) buddypress notifications works just on mentions, when I reply to a comment’s user he doesn’t see any kind of notification. Is this problem just of my site?
    Wordpress 4.2.2 with “Hueman theme”

    Thanks

    disha76
    Participant

    Use buddypress like whatsapp – possible?
    Some broad thoughts will be appreciated.
    Themes like buddyboss can probably help with always-on notification – but I have not used and no idea. Your thoughts will be appreciated.

    majecdad
    Participant

    Hey,

    After more hours than I care to admit, 🙂 I finally found a way to add a custom post to an activity stream without Site Tracking… thanks @shanebp for this.

    However, two issues came up… 1) the blurb in the SWA is not as expected, and 2) the Featured image never came through. I’m just trying to get an idea as to why.

    As referenced, the activity_action is: $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>' );

    But what shows up on the SWA is: “username wrote a new item” — where username links to the Author and the word item links to the post.

    I was expecting something along the lines of: “username created a new Post, post title” — where post title was the title of the post and its link.

    Any guidance on what I am missing to make these two things happen?

    Thanks!

    #239643
    nimon
    Participant

    Since the most recent question about LaTeX is about 5 years old, I think it is worth asking again if there is any improved support for this. The de facto LaTeX plug-in for WordPress has got to be QuickLaTeX, it blows the others out of the water, and QuickLaTeX relies upon parsing the text somebody writes, and rendering anything parenthesised by dollar signs $…$ as math. It has an option to apply to the entire site, which is ideal for those building websites involving lots of math.

    Now, I am currently involved in designing a learning management system, and what I want is for all text produced by anyuser to be QuickLaTeXable. At the moment, LaTeX renders in many places but not all. In particular, in messages between users in the BuddyPress system it displays raw, as $\int_{a}^{b}f(x)\,dx$ for example. I haven’t tested for every possible context, and you may have a better idea of where/why equations work and don’t work.

    Is there any hope of BuddyPress/bbPress working together with QuickLaTeX to produce a solution to the basic problem of having mathematical conversations on a WordPress site?

    #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.

    #239625
    Lars Henriksen
    Participant

    Hi,

    1) I’m looking for ways to let members show Goodreads books in their profile. I was wondering if it was possible to create an extended profile field for a Goodreads ‘currently reading’ rss-link and have it display the content in the member profile?

    2) Or even better, but far more workextensive, I know: How about a “Buddypress Book Club plugin” – book stuff and book shelves in your member profile and review and recommendation functions – something like Goodreads?

    Thanks

    #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/

    #239608
    tammywashington
    Participant

    We are using WordPress Multisite version 4.2.2 with sub-domain folders. We are using the following plugins:

    BuddyPress ver. 2.2.3.1, BuddyPress Xprofile Custom Fields Type ver. 2.1.6, and s2Member Framework ver. 150311 + s2Member Pro v150311.

    When a user uploads their avatar image to the primary website along with additional BuddyPress Profile Custom Field information the avatar image does not show in the subdomain for the user account. We added the following code to the bp-custom.php file suggested from this link but it still does not allow the profiles images to show in the sub-domain:

     /* This fixes the MULTIBLOG avatar problem */
    function nfm_bp_avtar_upload_path_correct($path){
    	if ( bp_core_is_multisite() ){
    		// $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );
    		$path = ABSPATH . 'wp-content/uploads/';
    	}
    	return $path;
    }
    
    add_filter('bp_core_avatar_upload_path', 'nfm_bp_avtar_upload_path_correct', 1);
    
    function nfm_bp_avatar_upload_url_correct($url){
    	if ( bp_core_is_multisite() ){
    		$url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . '/wp-content/uploads';
    	}
    	return $url; 
    }
    
    add_filter('bp_core_avatar_url', 'nfm_bp_avatar_upload_url_correct', 1);
    #239606

    In reply to: Acoustic signal

    danbp
    Participant

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

Viewing 25 results - 19,526 through 19,550 (of 94,540 total)
Skip to toolbar