Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 8,276 through 8,300 (of 32,678 total)
  • Author
    Search Results
  • shanebp
    Moderator

    You’re talking about the value of $this in the filter call in class BP_Legacy extends BP_Theme_Compat ?
    add_filter( 'bp_get_activity_action_pre_meta', array( $this, 'secondary_avatars' ), 10, 2 );

    Good question.
    And I’d be interested in the answer.

    There must be a simple way to disable secondary avatars…
    You might want to ask about this on Slack.

    Meanwhile, this works, not very efficient ‘tho.
    Hook is in bp-activity\bp-activity-template.php

    function remove_secondary_avatar( $item_id ){
    	
    	$item_id = '';
    	
    	return $item_id;
    }
    add_filter( 'bp_get_activity_secondary_avatar_item_id', 'remove_secondary_avatar' );

    And this works, but I don’t know why :<

    function remove_activity_secondary_avatars( $action, $activity ) {
        
        if ( $activity->component = NULL ) {
    	// don't do anything
        }
    
        return $action;
    }
    add_filter( 'bp_get_activity_action_pre_meta', 'remove_activity_secondary_avatars', 10, 2 );
    #240860
    jourdesign
    Participant

    Hello Everyone, I was wondering if anyone can help me with this when ever any member of my community tries to send a message I keep getting this error.

    <b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, function 'bp_dtheme_ajax_messages_autocomplete_results' not found or invalid function name in <b>/.../wp-includes/plugin.php</b> on line <b>496</b><br />

    I tried following the steps for this https://buddypress.trac.wordpress.org/ticket/4180 but the code is exactly the same as what was written.

    #240855
    danbp
    Participant

    @oliver_rub,

    all i could say is that is an old request, even if confidential.
    See this ticket opened 4 years ago
    and this bbpress ticket kicked to 2.7 as idea. And why not 6.0 ? 😉

    Supposing that if more people would ask, it will be resolved faster.

    Aside, the gist given by imath need to be completed to work with BP 2.3.2.1 on text Tab (only) by adding
    bp_is_group to if ( function_exists( 'bbpress' ) && is_bbpress() || bp_is_group() )

    And to enable visual editor, no need of a plugin. See here.

    #240843
    mandilpradhan
    Participant

    The BP XProfile User Sync had returned this error when I tried to activate it:

    string(85) “BP XProfile WordPress User Sync plugin: Could not set “can_delete” for xProfile field”

    #240842
    mandilpradhan
    Participant

    Hi.

    I am running WordPress Ver 4.2.2 with Buddypress 2.3.2.1.

    There seems to be some error on my Extended Profile Field pages and there are 14 ‘First Name’ Primary fields on it which I can’t seem to delete (Screenshot of admin and registration page attached).

    I noticed this error after I tried to install the ‘BP XProfile WordPress User Sync’ plugin which failed as it is only meant for older versions of BP.

    The installation is located at http://www.rbsalumni.com. Any help would be much appreciated!

    Error Screenshot

    #240832
    ashu2106
    Participant

    i m newbie in buddypress but good in wordpress, i m using buddypress and my requirement is show the group as DROPDOWN instead as Deault showing on Group page

    i m using wordpress latest version 4.2 and buddypress latest version

    can u please guide me how can i achieve my goal

    if you need more clarification , i will give ,if it will resolve in two days , it will be very good for me

    thanks

    #240828

    In reply to: SEO issues

    Henry Wright
    Moderator

    The W3C validator is saying you can’t have an empty form action attribute. So instead of:

    <form action=""

    you will need to provide a value like this:

    <form action="some-script.php"

    You could open a ticket on Trac or alternatively you could solve the problem by providing a value yourself. Check out the BuddyPress Template Hierarchy article for details on how to override templates.

    #240780
    #240779
    r-a-y
    Keymaster

    @nithin270 @dineshravajani07 – Please help us debug bp_verify_nonce_request():
    https://buddypress.trac.wordpress.org/browser/tags/2.3.1/src/bp-core/bp-core-functions.php#L2005

    Judging by what you are doing, it appears that function is returning false.

    Can you debug that function and find out whereabouts the function is failing for you?

    Are your sites behind a reverse proxy?

    #240768
    pihla
    Participant

    Yes, this is exactly the case, it does not create the second group, because the id is 0 so the auto-increment is not working (and the first one created a row in the database, but does not show in the front end)

    Yes, there is nothing wrong with the id 0 with the forum, I was just wondering why does it give duplicate entry warning with this:
    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO wp_bp_groups ( creator_id, name, slug, description, status, enable_forum, date_created ) VALUES ( 22, ‘Vanhat talot’, ‘vanhat-talot’, ‘Vanhat talot’, ‘public’, 0, ‘2015-06-16 08:25:16′ )

    and the only 0 in this insert is the enable_forum which should not be primary, but well this might just refer to the group_id field that is not auto incremented.

    I even updated the themes Buddy Press and bbPress files (Kleo-theme) and updated again Buddy Press, even though it was in version 2.3.1, did not help…

    @shanebp where did you find the information about the non-BP reports where WP 4.2.2 $wpdb->insert_id returns 0? I could try to find the info from there.

    #240767

    Topic: Member import

    in group forum Installing BuddyPress
    Zoe Ellison
    Participant

    Could anyone advice me on how to import members to BuddyPress from a cvs file, I tried to purchase the BuddyPress Members Import plugin but only got as far as add to cart and the check out process would not load.

    I have been able to import all the members into WordPress it self, but this does not display them correctly within the BuddyPress members page.

    #240760
    pihla
    Participant

    I emptied these three:
    wp_groups
    wp_groups_groupmeta
    wp_groups_members

    I managed to create one group (which does not show in the public side) but the next group I created gave this error:
    WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]
    INSERT INTO wp_bp_groups ( creator_id, name, slug, description, status, enable_forum, date_created ) VALUES ( 22, ‘Vanhat talot’, ‘vanhat-talot’, ‘Vanhat talot’, ‘public’, 0, ‘2015-06-16 08:25:16’ )

    I can not understand, this seems to say that enable_forum would be primary key which it can not be…

    #240750
    Garrett Hyder
    Participant

    Hello,

    Wanted to provide some code for those that’ll find it useful as well as suggest this as a Feature.

    I’ve written two functions that work together to provide a filter on the Users panel in WordPress so you can then query by Group Members and have it load the user list.

    // Update User Query Filter for Group Member Filter
    add_filter( 'pre_user_query', array( $this, 'bp_group_members_filter_query' ) );
    add_action( 'restrict_manage_users', array( $this, 'bp_group_members_filter' ), 20 );
    
    // Group Members Query Filter
    function bp_group_members_filter_query( $query ) {
        global $bp, $wpdb, $wp_query, $pagenow;
    
        if ( ! is_admin() || $pagenow != 'users.php' )
            return $query;
    
        if ( isset( $_GET['group'] ) && ! empty( $_GET['group'] ) ) {
            $group_id = $_GET['group'];
            $query->query_from .= " INNER JOIN {$bp->groups->table_name_members} ON {$wpdb->users}.<code>ID</code> = {$bp->groups->table_name_members}.<code>user_id</code>";
            $query->query_where .= " AND {$bp->groups->table_name_members}.<code>group_id</code> = '{$group_id}'";
        }
    
        return $query;
    
    }
    
    // Group Members Filter
    function bp_group_members_filter() {
        global $wpdb;
        $groups = $wpdb->get_results("SELECT * FROM wp_bp_groups");
    
        if ( ! empty( $groups ) ) { ?>
            <label class="screen-reader-text" for="group"><?php esc_html_e( 'Filter by Group', 'wplms-customizer' ); ?></label>
            <select name="group" id="group" class="group-filter" style="display:inline-block; float:none;">
                <option value=''><?php esc_html_e( 'Filter by Group', 'wplms-customizer' ); ?></option>
            <?php foreach ( $groups as $group ) : ?>
                <option value="<?php echo esc_attr( $group->id ); ?>"<?php if ( isset( $_GET['group'] ) && ! empty( $_GET['group'] ) && $_GET['group'] == $group->id) { echo ' selected="selected"'; } ?>><?php echo $group->name; ?></option>
            <?php endforeach; ?>
            </select>
            <?php
            submit_button( __( 'Filter', 'wplms-customizer' ), 'secondary', 'bp-filter-users', false );
    
            wp_nonce_field( 'bp-filter-users', 'bp-filter-users-nonce' );
        }
    }

    Feel free to provide feedback and use for your own site. Would love to see this become a feature in a future release.

    All the best,
    Cheers

    #240715
    CodeMonkeyBanana
    Participant

    With standard buddypress (no modifications) you can freely view anyone’s messages without even logging in. Personally I think that is not very good security/privacy, whatever you want to call it.

    I made a ticket as I don’t think that “private messages” should be publicly viewable
    (https://buddypress.trac.wordpress.org/ticket/6504#ticket)

    What privacy/security checks would you recommend for people who don’t want users private data publicly viewable?

    #240714
    Henry Wright
    Moderator

    Also, to answer your question:

    How would you do the security check?

    These must be done server side. You’re right to think that anything done via the client can be tainted (manipulated by an end user).

    The general process is:

    • Make an AJAX call passing any client-side data to the server
    • Process the data (secure it and perform necessary privacy checks) and then send a response
    • Do something client-side with that response

    For more info on AJAX and WordPress, check out the AJAX in Plugins article.

    Arup
    Participant

    Hi, I am having issue with wp-signup.php. when buddypress plugin is installed in my site then wp-signup.php this page redirects to home page. Without buddypress plugin wp-signup.php working fine. But I need buddypress plugin also. So how can solve this issue?
    Note: I am using latest wordpress version, I setup pretty permalink option, I also tried with twenty fifteen theme, but still having this issue.
    Note: I have installed WPMUDEV Plugin.

    Thanks in Advance.
    Arup

    danbp
    Participant

    The following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair

    Those pages are not created automatically. When you get this error message, you have to create the pages manually first.

    Go back to bp settings > pages tab and allocate the new pages to the respective component. Save.

    You have also to set pretty permalinks to something other thant “by default”. Save.

    Now BP has his page assigned and should work.

    About the missing button.
    Clear your browser cache.
    If you use a cache plugin, clear it.
    Go to wp-config.php and activate debug mode at the end of the file.

    Deactivate all plugins except BP and activate one of WP’s theme (2015, 2014 or 2013…)

    See if you get some error message and correct the errors (if exist).

    If after tracking/repairing errors, the button is still not showing, deactivate buddypress, delete it and upload a fresh copy of BuddyPress to your site. Sometimes files can be corrupted and need to be replaced. No worry, this will not affect any data in your DB.

    If still nothing, check that your host plan has the required php version to be used with WP and BP: at least 5.2.4

    #240687
    ct25
    Participant

    I’ll try to explain it differently:

    I had a problem on my WordPress members page, it was not automatically refreshing when you change the sort terms (alphabetical, last activity). Also, when you manually refreshed the page it did not change the order. I added select and when statements to the member-template.php and it sorted correctly but it did not automatically refresh. When you change the sort it would bring up no member but the manual refresh brought the members back according to the sort mode selected. This issue also happened with the other themes.

    I believed it was the Ajax issue that many users were having (there are many forums about this same issue) and none of the fixes worked. So then, one user suggested to deactivate the plug-in, delete it, and reinstall. That also did not work.

    I did notice the Ajax bypass code is located in a core file however, none of the files are active at this point (the all say inactive in the editor).

    After the plug-in was reinstalled it caused the function not to work at all.

    #240668
    danbp
    Participant

    hi @wpthemes,

    thank you for sharing, even if bp-default theme is no more maintained. This old theme is only in for backward compatibility with older install.
    More here:
    The future of the bp-default theme

    danbp
    Participant

    @shaquana_folks,

    do you plan to ask the same question each day ? It’s the fourth time now, and you received many answers in the past 3 days. Or you received erroneous answers or you didn’t understand them or couldn’t find a solution by yourself. That’s life and i’m sorry for you but it’s just a forum here, not a miracle shop.

    You say My hosting plan server is iPage (which uses NGINX), running a 5.0 PHP version.

    If 5.0 is really the php version, you can’t use WP or BP with this old version as both require at least 5.2 version.

    For Nginx server, have you read WP’s codex ?
    https://codex.wordpress.org/Nginx
    Search for nginx install on wordpress.org brings also several answers…

    For paid consultants, post the job to http://jobs.wordpress.net/ or BP Jobs Board.

    #240638

    In reply to: Image watermark

    danbp
    Participant

    Hi,
    searching for a while now for a plug-in that watermarks the image that a user uploads.

    Depends which image you’re speaking about. On a WP install, most images are loaded to Media Library. And for this you have at least a dozen of plugins to watermark pictures.

    If you’re using a plugin with his own upload directory, you could try this plugin which let you select a specific folder.

    By default, BP only handles with profile pictures, stored in /uploads/avatars/

    #240631
    Henry Wright
    Moderator

    Rendez Vous is the closest thing I know of. Feel free to search the Plugin Directory to see if anything else is available.

    #240628
    Henry Wright
    Moderator

    Have you tried Rendez Vous?

    #240625

    In reply to: SEO for Member Pages

    Henry Wright
    Moderator

    Have you tried WordPress SEO by Yoast?

Viewing 25 results - 8,276 through 8,300 (of 32,678 total)
Skip to toolbar