Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 10,176 through 10,200 (of 32,690 total)
  • Author
    Search Results
  • #201200
    jessicana
    Participant

    Which one to hack when running a wordpress site that is using buddypress plugin

    I read both documentations. I am hacking Functions.php.

    Can I hack both Functions.php and buddypress-functions.php?

    xQuit
    Participant

    Hello everyone, hope someone could enlighten me with this problem.
    We currently have two (2) authors in our site allowed to publish posts.Since BuddyPress is enabled (together with the Activity Stream module), all published posts and other site activity are logged.
    My question are:

    1. How come when I publish a post, the activity stream only shows the excerpt and would end in a […]?
    2. But when the other author publishes his post, it would be posted in the whole activity stream with a toggleable [Read More] button.

    #201180
    Henry Wright
    Moderator

    Hi @namrons

    This will most likely need a Trac ticket. Feel free to create one here:

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

    #201174
    Venutius
    Moderator

    Currently, the group home view simply shows the activity feed. Personally I think there should be opitions on what to show at this view, to allow it to be more customisable.

    I’m thinking a tick list of items that you want to include in the home view, so for example, if the group has a forum why not show this on the homepage? Same with the group description, maybe the group chat room and also any document folders etc.

    Generally with Buddypress and with WordPress, there are too many clicks required and too much scrolling to get to the information that you want. Each component is separate and you have to click on a link to see that particular feature, there are no aggregated views that summarise the information available. This makes things less accessible and less exciting.

    We live in a world of one click and zero patience, if we as a user to wait for a pageload then lets try to make that page as interesting as possible, with as much cool info as possible, lets not make them search out the information, lets give it to them as soon as they set a foot in the door.

    #201151
    1a-spielwiese
    Participant

    Follow-up:

    7th:

    Capability Manager Enhanced to define custom user roles, if you’re not satisfied with the default wordpress roles (subscriber, contributor,…).
    The first step is to create your user roles

    https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/

    As ready implied there: I did this – and it works so far.

    8th:

    Create a xprofile field (selectbox) with the title “User Role” and name the options “Band Role” and “Fan Role” – in my case. You can call them whatever you want. Place this field in the “base” profile group, otherwise it won’t be shown during registration. Also make the field “required”. In my case the user can’t decide, if the visibility of the field can be changed.

    I did it already, when I installed and activated ‘BP Profile Search’-plugin – and it works.

    However, to choosed a dropdown menu and the categories ‘team’ and ‘fan’.

    9th:

    I modified:

    ?php
    function custom_bp_core_signup_user($user_id) {
        $user_role = strtolower(xprofile_get_field_data('User Role', $user_id));
        switch($user_role) {
            case "Band Role":
                $new_role = 'band';
                break;
            case "Fan Role":
                $new_role = 'fan';
                break;
        }
        wp_update_user(array(
            'ID' => $user_id,
            'role' => $new_role
        ));
    }
    add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);

    into:

    function custom_bp_core_signup_user($user_id) {
        $user_role = strtolower(xprofile_get_field_data('Mitglieder-Kategorie (Team oder Fan?)', $user_id));
        switch($user_role) {
            case "Team":
                $new_role = team';
                break;
            case "Fan":
                $new_role = 'fan';
                break;
        }
        wp_update_user(array(
            'ID' => $user_id,
            'role' => $new_role
        ));
    }
    add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);

    (I omitted <?php, because I created not a new bp-costum.php, rather inserted the code into my yet existing bp-costum.php. I inserted the modified code above the line ?>.)

    I did not understand, which effect this insertion should have – but, however, – as far as I see – it causes no harm.

    Did anyone understood, for which purpose the above mentioned code is?

    10th:

    I inserted as well:

    //hide the user role select field in edit-screen to prevent changes after registration
    add_filter("xprofile_group_fields","bpdev_filter_profile_fields_by_usertype",10,2);
    function bpdev_filter_profile_fields_by_usertype($fields,$group_id){
    
    //only disable these fields on edit page
    if(!bp_is_profile_edit())
    return $fields;
    //please change it with the name of fields you don't want to allow editing
    $field_to_remove=array("User Role");
    $count=count($fields);
    $flds=array();
    for($i=0;$i<$count;$i++){
    if(in_array($fields[$i]->name,$field_to_remove))
    unset($fields[$i]);
    else
    $flds[]=$fields[$i];//doh, I did not remember a way to reset the index, so creating a new array
    }
    return $flds;
    }

    into my bp-costum.php – again above the line ?>.

    It does not work:

    — threre the user role is still changeable:

    http://kampfsportlerinnenneuwied.1a-spielwiese.de/wp-content/uploads/sites/2/2014/09/user_role_still_changeble.jpg

    — http://1a-spielwiese.de/members/kampfsportlerinnenneuwied/profile/edit/group/1 causes an redirection error. – The redirection error disappears, when I’m not logged in as kampfsportlerinnenneuwied, rather as superadmin.

    1a-spielwiese
    Participant

    @noizeburger

    I tried to follow your instructions:

    https://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/

    1st:

    I installed WP Roles at Registration plugin.

    2nd:

    I choose there:

    http://1a-spielwiese.de/wp-admin/options-general.php?page=wp-roles-at-registration

    ‘subscriber’ and ‘contributor’ and as ‘Label’ I decided for: ‘Mitglieder-Kategorie (Wähle als Team: Contributor; und als Fan: Subscriber)’ (Member-Category [Choose as Team: Contributor; and as Fan: Subscriber]).

    It works:

    http://1a-spielwiese.de/wp-content/uploads/2014/09/Reg_Form_with_User_Roles.jpg

    —–

    En passant: Is there any way for truly renaming the user roles from ‘contributor’ to ‘team’ and from ‘subscriber’ to ‘fan’, sothat I could keep the ‘Label’ simple (i.e.: without explaining: ‘Choose as Team: Contributor; and as Fan: Subscriber’)?

    —–

    3rd:

    I installed Buddypress-xProfiles-ACL as well and commented the following part out (Cfr. your instruction: ‘ xProfiles ACL needs to be hacked – see this support thread .’ and there: https://wordpress.org/support/topic/plugin-buddypress-xprofiles-acl-show-profile-fields-to-everyone?replies=4#post-2651753):

    /* function filter_xprofile_groups_with_acl() {
        global $bp, $profile_template, $current_user;
        get_currentuserinfo();
        foreach($profile_template->groups as $key => $profile_group) {
          if( ! in_array($profile_group->id, $this->user_allowed_xprofile_groups) ) {
            unset($profile_template->groups[$key]);
          }
        }
      } */

    4th:

    I created two new profile field groups: one for teams (with one question) and another for fans (with two questions):

    http://1a-spielwiese.de/wp-content/uploads/2014/09/new_profile_field_groups.jpg

    So far, it works as well – but now the problems start.

    5th:

    a) There is a user kampfsportlerinnenneuwied with the user role ‘author’ = ‘team’.

    http://1a-spielwiese.de/wp-content/uploads/2014/09/kampfsportlerinnen_author.jpg

    b) Neverthess that user get displayed both profile filed groups (‘Frage an Teams’ as well as ‘Fragen an Fans’):

    http://1a-spielwiese.de/wp-content/uploads/2014/09/both_fied_groups_for_kampfsport.jpg

    (But the text of second question of the ‘fan’-field group [‘Falls ja: Welche Sportarten?’] is not displayed.)

    When I leave the aboved mentioned code un-commented both field groups disappear from the page and the below (section 6th) mentioned redirection error disappears as well…

    c) Continuing with the commented code version: If this user answers (only) the “team-question” and tries to save the change, the message is displayed: ‘Bitte überprüfe vorm Speichern ob Du alle notwendigen Felder für diese Profilgruppe ausgefüllt hast.’ (Please check before saving, whether all required field groups are filled in.)

    I guess it’s, because the “fan-question” requires as well an answer; but it is not answered, because that member is a team (not a fan).

    6th:

    Even worse, when I click there:

    http://1a-spielwiese.de/members/kampfsportlerinnenneuwied/

    http://1a-spielwiese.de/wp-content/uploads/2014/09/profile_edit.jpg

    on ‘Bearbeiten’ (Edit), I receive a redirection error message:

    http://1a-spielwiese.de/wp-content/uploads/2014/09/redirection_error.jpg

    How can I resolve this problems?

    And finally: How I can get displayed other profile field groups than the base group on the registration page?

    #201130
    ivanguinea
    Participant

    Sorry:

    This is the list of my plugins:
    BackWPup
    Better WordPress Minify
    Breadcrumb NavXT
    Buddypress
    BuddyPress Registration Groups
    Formulario de Contacto 7
    Cookie Law Info
    Gears
    Hide Admin Bar From Non-admins
    Hide User Profile Fields
    Límitador de intentos de login
    Nav Menu Images
    Paid Memberships Pro
    PMPro Check Levels
    PMPro Customizations
    PMPro Email Templates
    PMPro Register Helper
    Regenerate Thumbnails
    Remove Dashboard Access
    Revolution Slider
    Simple Social Icons
    Editor de Roles
    WordPress SEO
    WP-Optimize
    WPBakery Visual Composer
    WP Google Fonts
    WP Smush.it
    WP Super Cache
    WP User Frontend Pro

    My theme is Klein (http://klein.dunhakdis.me/)

    #201129
    hugblue71
    Participant

    I get this error :

    [26-Sep-2014 08:30:01] WordPress database error Duplicate entry ‘plugin buddypress-3e4c9c2f65c064f07f8ef075fd946a2c’ for key ‘context_name’ for query UPDATE wp_icl_strings SET name = ‘3e4c9c2f65c064f07f8ef075fd946a2c’ WHERE context = ‘plugin buddypress’ AND name = ’09b57733b0c38d449fe713f0eb8b090a’ made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, bpml_update_email_notifications_strings, icl_rename_string

    What do this mean ?

    #201121
    Kevin Murray
    Participant

    I’m using the twentyfourteen theme with bbpress 2.5.4 forums as part of Buddypress 2.1 on WordPress 4.0.

    When I try to create a new topic in a forum, I get a black page with the following in the tab:

    <br/> <b>fatal error</b> Call to undefined function: bb_get_id_from_slug() in <b> (…)bp-forums-functions.php <b/> on line <b>265</b>

    One of the forums is here: http://www.southernperspectives.net/groups/lab-group/forum/

    Any suggestions to resolve this would be much appreciated.

    #201098
    Henry Wright
    Moderator

    Hi @chiefalchemist,

    Should I add a new Role and have a cap (say) ‘employee”? Or remove caps from the Contributor role?

    Both are completely valid approaches but perhaps creating an ’employee’ role with custom capabilities would make more sense?

    Regarding the use of a membership plugin, you could go down that route, else the current_user_can() and user_can() functions will help if you decide to use custom code.

    Refs:

    #201090
    mabellaneda
    Participant

    Hello,

    I’m suffering a lot of issues too with the translation into Spanish, in such a way that I had to patch it several times after trying different configurations.

    So! To the point. It works for me now and I explain here my current configuration:

    1. I’ve downloaded the BuddyPress translation package from https://translate.wordpress.org/projects/buddypress/ and contributed with some translations (specifically for Spanish: https://translate.wordpress.org/projects/buddypress/dev/es/default)

    2. Saved the .mo and .po files in /wp-content/languages/plugins as recommended by the Moderators: https://translate.wordpress.org/projects/buddypress/dev/es/default.
    And configured the site in Spanish (particularly I tried to do it dinamically)

    3. Becuase I try to change the language dinamically according to the browser preferred language I use the xili-language plugin, which “helps” you to manage in what language you’ll display your WordPress, but I’m no sure if it is decisive for the BuddyPress translation. In this plugin there’s a configuration to mention and not enough documented. In case you use the plugn, in the tub “Settings for expert” there are rules to specify. My configuration is:
    Wordress rule –> translation in local
    BuddyPress rule –> no modification

    5. At this point the translation didn’t work correctly or I didn’t succeed in translating some strings that remained in English (like: “Members”, “Groups”, “Notifications”, “Activity” in the BuddyPress navigation menu and others). So, I edited the .po file with PoEdit and updated it with the BuddyPress catalog “buddypress.pot”:

    Customizing Labels, Messages, and URLs

    6. I updoaded the modified .po and .mo files to the mentioned folder /wp-content/languages/plugins and didn’t change a thing. I read then in forums the different issues with translations, for example:

    https://buddypress.org/support/topic/translation-fails-only-at-sitewide-activity/
    https://buddypress.trac.wordpress.org/ticket/5655
    https://buddypress.org/support/topic/buddypress-2-1-bp-language/
    https://buddypress.trac.wordpress.org/ticket/5887
    https://buddypress.org/support/topic/buddypress-2-1-known-issues/ (here there’s another workaround)

    7. And I added the following lines to the file functions.php of my child theme:

    function igf_my_child_theme_setup() {
    load_child_theme_textdomain( ‘my_child_theme’, get_stylesheet_directory() . ‘/languages’ );
    load_plugin_textdomain(‘buddypress’, false, basename( dirname( __FILE__ ) ) . ‘/languages/’ );
    }
    add_action( ‘after_setup_theme’, ‘igf_my_child_theme_setup’ );

    And it begans to translate correctly! I’m sorry I really don’t understand why. Furthermore I thought that the buddypress textdomain was set by the plugin xili-language but, as I said, I’m not clever enough or it is not well documented.

    I know there’s a lot of steps to do, I was really frustated with it, but if you try something like this

    Anyway, as this is my first post, I have to thank to the developers for the software and the great effort, of course; it has helped me a lot too.

    Regards.

    easytobuild
    Participant

    Hy there i have followed this tutorial https://rtcamp.com/wordpress-nginx/tutorials/multisite/subdomains/fastcgi-cache-with-purging/ everything works good except for buddypress.

    As i activate buddypress i get white screen on backend and front end. I do now know what the issue is as so far. I am asking here maybe someone else had this problem and found a fix.

    Thank you in advance, i will publish this same thing on nginx forums and on buddypress forums.

    #201085
    r-a-y
    Keymaster

    @ivanguinea – If you recently added some new strings on translate.wordpress.org, you might need to force a translation update to see the changes.

    By default, translation updates get updated when WordPress checks for new versions of plugins.

    One way to force this is by installing the WP Crontrol plugin and by forcing the 'wp_update_plugins' cronjob to run. Untested, but please do try and let us know if it works.

    #201066
    Leorek
    Participant

    Hello all.

    I’ve just done a fresh wordpress install enabling multisite, then I installed buddypress and later activating the option define( ‘BP_ENABLE_MULTIBLOG’, true ); (It’s an option I would like to have in my website).
    Everything works fine but in the network view -> Users -> Pending , in order to activate users, when I try to enter it shows a message ” You don’t have permission to access”. It only don’t work when ‘BP_ENABLE_MULTIBLOG’ is set to true.
    Any help?
    Thanks!

    #201062
    shanebp
    Moderator
    Uprootednut
    Participant

    I’ve seen the documentation that says you need to go to the language folder https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    I am using WordPress Multisite and I cannot see a /plugins/buddypress/bp-languages already in the plugin folder. Is this somthing I should add manually? I can see it in the orinial file I downloaded but not on the live version.

    gcskye
    Participant

    As the title states. I am no longer able to link the login page to my buddy press2.1 using wordpress 4.0.

    I recently moved the domain from a temporary domain to my new domain. The login page still works if I go to it directly but the url from menu is linking to the regular wordpress login (obviously because it isn’t looked). I’m not sure if it even worked after I upgraded to 2.1, I didn’t check.

    Any thoughts?!

    #201027
    dasfx3
    Participant

    BTW

    I’m new to wordpress – how were you able to find my user name? Should I be concerned about this as a security risk?

    r-a-y
    Keymaster

    Thanks for reporting, @michaeltransmissions.

    I’ve added a fix for this here:
    https://buddypress.trac.wordpress.org/attachment/ticket/5903/5903.01.patch

    Let me know if this works for you.

    #201020
    waitingforoctwp
    Participant

    Hi all, please excuse me if this is a dumb issue, I am very very new to WordPress.
    I am running Buddypress – all of my groups have forums associated with them. Forum posts look fine, but when they are edited I lose the html bar at the top and the edited post is full of displayed html tags. Any ideas?
    I am running the latest version everything (wordpress, bbpress, buddypress, theme, etc)

    #201010
    danbp
    Participant

    Just to let you know of this new plugin.

    https://wordpress.org/plugins/bp-xprofile-rich-text-field/

    Use with caution and read the instruction before enabling it. 😉

    #201009
    dasfx3
    Participant

    Hi,

    I have a site using buddypress and when users register from the site they get the welcome message that can be edited through wordpress. However, the welcome email comes from my hosting package at bluehost. What I’m wondering is how to change this so that the welcome message is more personalized to my site.

    wordpress version: 4.0
    buddypress version: 2.1

    http://www.filmmakersallianceburlington.com

    Thanks!

    #201004
    r-a-y
    Keymaster

    ivanguinea – If you look at the Spanish translation on translate.wordpress.org, there are still some strings that haven’t been translated:
    https://translate.wordpress.org/projects/buddypress/dev/es/default?filters[status]=untranslated

    You can help by translating these strings. If you decide to help and are not sure how to add your contributions, let us know and we’ll point you in the right direction.

    #201000
    Henry Wright
    Moderator

    Hi @manag99

    This can definitely be implemented with BuddyPress but you’ll need to use plugins and or custom code because what you need to happen doesn’t happen out-of-the-box. Try searching the WordPress Plugin Directory for individual plugins and then try them out on a test install.

    shanebp
    Moderator

    From what I recall, BP uses the bp_xprofile_data table to store the display name, field_id = 1, for each user.

    There is a BP setting for syncing BP and WP profiles.
    Some info on what that does:
    https://buddypress.org/support/topic/please-help-me-understand-a-wordpressbp-feature/#post-97470

    Re profile edit handling code: Look at function save() in class BP_XProfile_ProfileData in bp-xprofile\bp-xprofile-classes.php

Viewing 25 results - 10,176 through 10,200 (of 32,690 total)
Skip to toolbar