Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,751 through 5,775 (of 22,683 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 );
    #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”

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

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

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

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

    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?

    #240624

    In reply to: Limit Group per user

    Henry Wright
    Moderator
    #240606
    Henry Wright
    Moderator

    This sounds like a job for WordPress Cron. Note that WordPress Cron works slightly different to the UNIX version in that it runs only if there is a site visit. So if your website has low traffic then use a service such as Pingdom to ensure your site is hit regularly.

    #240579

    In reply to: unable activity

    kiwonuhm
    Participant

    hi,
    herre’s my answer

    1. Which version of WordPress are you running? 4.2.2
    2. Did you install WordPress as a directory or subdomain install? worpress directory
    3. If a directory install, is it in root or in a subdirectory? in root
    4. Did you upgrade from a previous version of WordPress? If so, from which version? no, installed new
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. – yes
    6. Which version of BP are you running? – new one
    7. Did you upgraded from a previous version of BP? If so, from which version? no, installed new on
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    I have some plugins, woocommerce, visual composer, forms, around 10
    9. Are you using the standard WordPress theme or customized theme? – purchased theme, multi news
    10. Have you modified the core files in any way?no
    11. Do you have any custom functions in bp-custom.php?no
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? bbpress 2.5.7, I installed individually
    13. Please provide a list of any errors in your server’s log files. – checking now
    14. Which company provides your hosting? – in South Korea, http://www.cafe24.com

    at the first place, the activation was worked. but this issue has started since when I tried to click translate button. I did many things that change theme, all plugin delete and activate, but buddypress is not working.
    if there are something I missed, please let me know what I have to try
    Thanks!

    #240565
    StefanBu
    Participant

    Hi shanebp,

    thanks, that helps. Its a pity, that bp_message_thread_has_unread() only checks for the loggedin user.
    Do you think it would be possible to copy and modify this function in a custom.php ?


    @danbp
    and Henry Wright:
    For our project, we want to forward unread messages via JSON API to an external system, which has a central processing and provides these messages to external displays of users – outside WordPress. Therefore, we need a central access to all unread messages of all users.

    #240551

    In reply to: Beginner’s Problem

    @mercime
    Participant

    @sebastianpierre BuddyPress is compatible with nearly all WordPress themes out of the box. I am assuming that you’re on the latest WordPress and BuddyPress verions. Change theme to either Twenty Fifteen or Twenty Fourteen, check if all the BP pages are showing up as expected. If it is, then double-check that you have the_title and the_content template tags in your custom theme’s page.php file.

    bp-template-pack files in my root folder

    Just to be clear, if you’re referring to this plugin https://github.com/boonebgorges/bp-template-pack then I suggest that you deactivate it and remove the folder/files you moved to your theme folder. If you’re referring to the bp-legacy files then I suggest that you resolve the issue of BP pages showing up in your theme first before doing any kind of customization.

    #240550
    danbp
    Participant

    Which theme do you use ?
    Can you test youre install with Twenty Fifteen theme and see if anything is translated ?
    Are the terms not translated on front-end, or also in back-end ?

    FYI, the spanish translation for BP is only completed to 96%, but activity is translated. To ensure you have the most recent copy, download the spanish .mo file from here and install it in wp-content/languages/plugins/buddypress-es_ES.mo

    #240545

    In reply to: After Registertion

    @mercime
    Participant

    Something may be getting lost in translation, but if you mean you want the user who has just logged in to be redirected to his/her profile, then check out https://wordpress.org/plugins/bp-redirect-to-profile/

    Henry Wright
    Moderator

    You could use current_user_can() to check the member’s capabilities. For example:

    if ( current_user_can( 'edit_pages' ) ) {
        // Output button
    }

    Ref: https://codex.wordpress.org/Roles_and_Capabilities

Viewing 25 results - 5,751 through 5,775 (of 22,683 total)
Skip to toolbar