Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 15,351 through 15,375 (of 69,016 total)
  • Author
    Search Results
  • #203933
    crazyboy
    Participant

    thanks
    here is the code on functions.php

    function validate_referrer()
    {
      global $bp;
      global $wpdb;
      $referrer = $_POST['field_3'];
      $members = $wpdb->get_var("SELECT * FROM wp_users WHERE user_login = '$referrer'");
    
      if (!$members) {$bp->signup->errors['field_3'] = __('Please enter the correct referrer','buddypress');}
    }
    
    add_action('bp_signup_validate', 'validate_referrer');
    #203907
    shanebp
    Moderator

    So the field should contain the user_login of one of the members?
    Untested – try this in bp-custom.php.
    Put the correct field name in ‘your-field-name’.

    function crazy_check_referrer() {
      global $bp, $wpdb;
    
      $referrer_field = $_POST['your-field-name'];
    
      $referrer_check = $wpdb->get_var( "SELECT ID from wp_users WHERE user_login = '$referrer_field' ");
    
      if( $referrer_check == NULL ) 
        $bp->signup->errors['your-field-name'] = __('That person was not found','buddypress');
    
    }
    add_action('bp_signup_validate', 'crazy_check_referrer');
    1a-spielwiese
    Participant

    @hnla / https://buddypress.org/support/topic/different-profile-types-and-different-user-roles-part-ii/#post-201146:

    By chance I found the solution regarding the ‘default user role’-issue:

    Within the wp-admin-folder there is not only an options-general.php, rather as well an options.php.

    Within the comment at the beginning of this file is written: ‘If accessed directly in a browser this page shows a list of all saved options along with editable fields for their values.’

    Therefore I adressed this file with 1a-spielwiese/wp-admin/options.php – and there I found the opportunity to change the default user role:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/wp-admin-options-php.jpg

    After changing it into ‘fan’ (note: it’s not possible to leave the line blank!), on the page options-general.php?page=wp-roles-at-registration it is now possible to select only the roles ‘fan’ and ‘team’:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/rar-settings_without_subscriber.jpg

    And after saving it, ‘subscriber’ disappears from the registration page as well:

    http://1a-spielwiese.de/wp-content/uploads/2014/10/register-page_without_subscriber.jpg

    —-

    However, these other above mentioned problems:

    A. How can I make profile fields, which are asigned only to one member category / user role, ‘required’? Cfr. above.

    C. What is the purpose of the penultimate step of the instructions of @noizeburger? – What have I to check for seeing, whether it works or not?

    and

    D. Why does the last step of the instructions of @noizeburger do not work for me? How can I make the member category / user role unchangeable for my members?


    @amalsh
    / @jonaro / @lebearuk / @kamillamonkey and @jeffacubed:

    Do you have any idea regarding this issues?

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

    are still unresolved.

    #203665
    danbp
    Participant
    #203659
    walshfilho
    Participant

    @danbp

    I found the conflict plugin. It is the BuddyPress Like plugin. When I deactivate it I am able to edit the theme. Is there anything to do about it? Or just deactivate for now and than activate on production?

    #203658
    walshfilho
    Participant

    @danbp

    I´ve deactivaded BR language and went to dashboard > apparence > menus and open screen options. It is frozen when the buddypress plugins is enabled. When is disabled all works fine.

    1a-spielwiese
    Participant
    #203651
    Paul Wong-Gibbs
    Keymaster

    Short of giving your users extra hugs and re-assuring them that their WordPress usernames aren’t particularly private bits of data, you’re going to have to get your hands dirty. 🙂

    It might be down to how the other plugin creates user accounts. Most plugins that allow sign-in using other services’ authentication systems (such as Facebook) don’t “properly” create WordPress user accounts; they use MySQL statements directly instead of using WordPress’ APIs.

    This can cause problems with plugins that expect certain user record fields to be in a particular format (if some other plugin came along and just inserted something in a custom format in place). I am not saying that this is the case with this plugin, as I haven’t looked at its code, but I’ve seen this sort of thing before.

    If you can create a test account and then go into your DB’s wp_users table and find your test user, and let us know what the values of the user_login, user_nicename, display_name fields are — and which one of these @mentions is using, and which one you would like it to use.

    I built @mentions in the last BuddyPress release and while I’m not sure if it’s possible to get it to change how it behaves like this, understanding what you’d want different with real data from a test account will help us help you, and at worse, give a suggestion for ways we could make advanced customisations possible for this in future BuddyPress releases.

    #203650
    Paul Wong-Gibbs
    Keymaster

    Hmm. Using get_avatar to change the class for blog comments is an interesting approach, though I guess it has pitfalls like this. BuddyPress customises the entire string, so your str_replace is probably not matching.

    How about hooking at priority 12 instead of 10, and doing some debugging so you can fix up your str_replace for when BuddyPress is active? You might need two str_replace statements to handle BP and no BP, or you might want to switch to a preg_replace or something like that.

    #203649
    1a-spielwiese
    Participant

    Let’s come back to the beginning:

    1st: Revolved.

    2nd: Resolved.

    a) I decided finally for having only one border color. If you want to have different border colors, you have to make different definitions for #buddypress .standard-form #basic-details-section and #buddypress .standard-form #profile-details-section

    and, if you use them, for: #user-role-section and #buddypress .standard-form #blog-details-section.

    b) I have abstained from having the text lines ‘WordPress’ respec. ‘BuddyPress’ at the borders and from making the bottom-borders more strong.

    3rd: Revoled.

    4th: Revolved.

    5th:

    I guess, it would be most comfortable, to have within the Dashboard check boxes for deciding, whether a certain field group or field should be displayed on registration page or not.

    Not revolved.

    6th to 8th:

    a) Finally I have abstained from having the blog-details-section on the registration page.

    b) I didn’t collect information about changing this section.

    —-

    So, the main issues are revolved. I would have no objections against marking the entire thread as ‘[Resolved’].

    #203644
    danbp
    Participant

    @oshimamasara7,

    I translated buddypress.pot from English to Japanese.(about 80%)

    Guess you translated the wrong file.
    Must be buddypress.po, not buddypress.pot. And you have to compile the po file into mo.

    In the header information, they’re missing keywords. You have only
    “X-Poedit-KeywordsList: _;_;_e\n”

    Should be
    “X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;”
    “_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;”
    “esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n”

    1. Rename the file to buddypress-ja.po
    2. Add the above keywordlist manually, with a text editor.
    3. Open the file with poEdit and run “update” from source or from a blank pot file (yours contain a translation, you’ll have to get a new virgin copy)
    4. Translate !
    #203643
    danbp
    Participant

    @walshfilho,

    to get buddypress menus, go to dashboard > apparence > menus and open screen options (top right corner) and check buddypress.

    If you can’t edit the theme, try to deactivate BR language in wp settings for english and see if it helps.

    #203638
    bp-help
    Participant
    #203636
    walshfilho
    Participant

    Hi @bphelp

    The theme is Buddy for Buddypress. I have tried with twenty thirteen and 4 other themes, also no luck with the buddypress plugin enabled. When the plugin is disabled all works fine.

    Regards,

    Walsh

    shanebp
    Moderator

    Try this in bp-custom.php

    remove_action( 'messages_message_sent', 'bp_messages_message_sent_add_notification', 10 );

    add_action is ~L. 191 in buddypress\bp-messages\bp-messages-notifications.php

    mcpeanut
    Participant

    @r-a-y Yes mate, you have summarized it correctly.

    May i add one other important note though, this has NOT just started happening, this has been happening in buddypress since i started using it in 1.9!

    I have been mentioning this issue for a while , i have tested this on 3 different live servers and a home setup using desktopserver, all with fresh installs of wordpress and buddypress alone (NO OTHER PLUGINS EVERYTIME), How many times have i tested since 1.9? well lets say its gotta be at least 100 fresh installs of wordpress all with default themes since wordpress 3.7 ish.

    if you want to go look for yourself there is a perfect example of this happening at buddyboss demo theme if you log in and hit the load more button then add over 5 comments to a test status then refresh it and scroll down and hit load more again, you can do this here where you will then notice they are not collapsed .

    http://www.buddyboss.com/demo/buddyboss/

    #203631
    bp-help
    Participant

    @walshfilho
    Whats the theme? Sounds more like the theme is the issue rather than buddypress. Have you tried activating a known theme that works with buddypress like twenty thirteen or twenty fourteen to see if the issue persists? If you can edit the theme and menus with those themes then that should tell you that your theme is at fault and you should contact that themes author for support.

    #203629
    Halo Diehard
    Participant

    I don’t know, but it sure would be cool if someone who has done it could verify. I’ve not done a lot of playing around with filters, either in WP or BuddyPress, and it’s overwhelming and makes me nervous.

    I’ll contact the plugin creator on the issue of the automatic user_login name, but there are a lot of posts dating back quite a few years with forum owners crying out how confusing it is for their members when their members can change their nicename but the @mention is something else; sure would be nice if the option to synchronize them were part of the core BuddyPress functionality.

    #203628
    shanebp
    Moderator

    @r-a-y

    [off topic – If you’ve a spare moment, lol…]
    re: the use of count_total

    It might be a factor in this bbpress ticket re Activity entries:
    https://bbpress.trac.wordpress.org/ticket/2690

    https://buddypress.org/support/topic/bbpress-post-edit-causes-multiple-activity-entries/

    r-a-y
    Keymaster

    So to summarize, the activity comments are not being collapsed when you hit the “Load More” button, correct?

    If so, this sounds like a javascript event delegation bug. Once someone else has duplicated this issue, can someone please post this on our ticketing system?
    https://trac.buddypress.org/newticket

    Use the same credentials as you use here on bp.org.

    #203623
    1a-spielwiese
    Participant

    @danbp:

    I found the solution:

    1st:

    The new code within my reddle-child/functions.php is now:

    /* Vorspann-Text für Neuigkeiten-Seite */
    
    function spielwiese() {
    echo '<p><small>Auf dieser Seite werden Dir alle Online-Aktivit&auml;ten bei 1a-Spielwiese angezeigt. Mit dem "Zeige"-DropDown-Men&uuml; auf der rechten Seite kannst Du die Liste auf jeweils eine bestimmte Art von Ereignissen (z.B. Profil-Aktualisierungen) einschr&auml;nken.
    <br>
    Wenn Du eingeloggt bist, siehst Du neben dem Tab "Alle Mitglieder" auch noch Tabs "Meine Gruppen" und "Erw&auml;hnungen". Mit diesen Tabs kannst Du Dir die Aktivit&auml;ten in den Gruppen, denen Du angeh&ouml;rst, bzw. die Neuigkeiten, in denen Du selbst erw&auml;hnt bist, anzeigen lassen.</
    <br>
    Au&szlig;erdem kannst Du die Neuigkeiten auch als <a href="https://de.wikipedia.org/wiki/RSS" target="_blank">RSS-Feed</a> abonnieren.
    <br>
    In den Neuigkeiten selbst werden Dir die 1a-Spielwiese-Mitglieder, die an den fraglichen Aktivit&auml;ten beteiligt waren, und ggf. die Gruppen, in denen bzw. in Bezug auf die die sie stattfanden, angezeigt. Wenn Du eingeloggt bist, kannst Du die einzelnen Neuigkeiten sowohl kommentieren als auch favorisieren. Nachdem Du die erste Neuigkeit favorisiert hast, erscheint ein neuer Tab zwischen "Meine Gruppen" und "Erw&auml;hnungen", der alle Deine "Favoriten" auflistet.</small></p>
    <br>';
    }
    add_action ( 'vorspann_activity-seite', 'spielwiese' );

    2nd:

    Within my reddle-child/buddypress/activity-folder is now a modified version of the index.php from the original buddypress/bp-templates/bp-legacy/buddypress/activity-folder.

    The modification is, that I inserted there between the lines

    <div id="buddypress">

    and

    <?php do_action( 'bp_before_directory_activity_content' ); ?>

    simple the line:

    <?php do_action( 'vorspann_activity-seite' ); ?>

    I guess: This thread can be marked as ‘[Revolved]’.

    #203622
    r-a-y
    Keymaster

    This might not answer your question, but try BP’s built-in activity comment / blog comment synchronization feature.

    To try this, login to your WP admin dashboard. Navigate to “Settings > BuddyPress”.

    Click on the “Settings” tab. Check “Allow activity stream commenting on blog and forum posts” and save.

    Now make a blog post and comment from the activity stream or from the blog post. Activity comments and blog comments should now be synched.

    The alternative is this older plugin:
    https://wordpress.org/plugins/buddypress-activity-as-blog-comments/

    It used to replace the WP comments section with the BP activity reply system, but it’s been awhile since I’ve tested this one so it might not work any more.

    #203620
    r-a-y
    Keymaster

    As hnla mentioned, if you’re using theme compatibiliy, /wp-content/themes/our-theme/registration/register.php is the wrong file to use for your overrides. This file is for older bp-default themes. BP 2.1 made the change so only bp-default themes can use this older template naming convention.

    If you only want to modify the contents of the registration template part and not the entire page template, you should copy:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/register.php

    to:
    /wp-content/themes/our-theme/buddypress/members/single/register.php.

    Then, you should compare your older registration mods and copy them to this file.

    If you want to change the entire registration page layout (header, footer, etc), check out the Template Hierarchy codex article for more info:

    Template Hierarchy

    #203619
    shanebp
    Moderator

    I’ve never done this, but…

    I believe @mention uses a member’s login name – so it is unique.

    I also believe you can change that so their user_nicename is used by putting:
    ( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', false );
    in bp-custom.php

    Note: user_login, user_nicename and display_name are all the same unless changed in wp-admin or a user’s profile. But that change only applies to display_name afaik.

    So if you want the functionality of @mentions, I believe you need to expose user_login.

    @[name] is set via \buddypress\bp-members\bp-members-functions.php -> bp_core_get_username() which has a filter
    apply_filters( 'bp_core_get_username', $username );
    You could experiment with that filter and see what breaks :}

    #203615
    1a-spielwiese
    Participant

    I found two more solutions:

    1st:

    a) The place of the field for determining the user role is depending on the plugins/wp-roles-at-registration/wp-roles-at-registration.php

    The relevant line of the original version of that file is:

    add_action('bp_after_signup_profile_fields', array($wp_rar_plugin, 'bp_choose_roles_registration_form'));

    I substituted there bp_after_signup_profile_fields by template_notices and now the field at issue is displayed not the end, rather at the beginning of my registration page:

    http://1a-spielwiese.de/registrieren/

    b)

    For creating the headline and the introductory text I made a second change within the same file. I changed the following section. The first and the last line of the quote is the original code, and the lines inbetween I inserted:

        <div class="register-section" id="user-role-section">
        
        <h4-a><?php _e( 'Benutzer/in/rolle', 'buddypress' ); ?></h4-a>
    
        <p><small><em>Entscheide Dich bitte als allererstes f&uuml;r eine der Benutzer/in/rollen "Team" oder "Fan" (bitte w&auml;hle nicht die Rolle "Subscriber"; diese Angabe soll noch gel&ouml;scht werden). In Abh&auml;ngigkeit von Deiner Antwort wirst Du nach Abschluss der Registrierung und wenn Du Dich das erste Mal bei 1a-Spielwiese einloggst und Dir Dein Profil ansiehst, die M&ouml;glichkeit haben, einige erg&auml;nzende rollenspezifische Profilangaben zu machen.</em></small></p>
    
        <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?></label>

    2nd:

    As well I was able to integrate now not only the ‘base’-profile field group. For that it is neccessary to copy a long section of the buddypress register.php. This sections begins with:

    			<?php /***** Extra Profile Details ******/ ?>
    
    			<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    
    				<?php do_action( 'bp_before_signup_profile_fields' ); ?>
    
    				<div class="register-section" id="profile-details-section">
    
    					<h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4>
    
    					<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    
    					<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    And it ends with:

    					<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" />
    
    					<?php endwhile; endif; endif; ?>
    
    					<?php do_action( 'bp_signup_profile_fields' ); ?>
    
    				</div><!-- #profile-details-section -->
    
    			<?php endif; ?>

    The only two things, which are obligatory then:

    • You have to insert the entire copied section behind the last line of the original section.
    • And you have to change 'profile_group_id' => 1, into 'profile_group_id' => 2, (for adressing your second profile field group – and so on regarding the further profile field groups).

    Besides I changed the <h4>-headline and inserted introductory text behind that headline. Therefore my code there is:

    					<h4-a><?php _e( 'Profile Details - Teil II: Kontaktendaten', 'buddypress' ); ?></h4-a>
    
    				<p><small><em>Beachte bitte, dass Du in zu den Profilfeldern in diesem Abschnitt selbst entscheiden kannst, wem Deine Angaben, die machst, angezeigt werden sollen.</small></em></p>
Viewing 25 results - 15,351 through 15,375 (of 69,016 total)
Skip to toolbar