Search Results for 'buddypress'
-
AuthorSearch Results
-
October 3, 2014 at 4:04 pm #203933
In reply to: validate xprofile field's value on registration
crazyboy
Participantthanks
here is the code on functions.phpfunction 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');October 3, 2014 at 3:16 pm #203907In reply to: validate xprofile field's value on registration
shanebp
ModeratorSo 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');October 3, 2014 at 2:47 pm #2038901a-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.
October 3, 2014 at 12:53 pm #203665In reply to: [Resolved] buddypress.pot is OK?
danbp
ParticipantOctober 3, 2014 at 12:23 pm #203659In reply to: Buddypress plugin freezing theme edit
walshfilho
ParticipantI 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?
October 3, 2014 at 12:04 pm #203658In reply to: Buddypress plugin freezing theme edit
walshfilho
ParticipantI´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.
October 3, 2014 at 11:35 am #203657October 3, 2014 at 9:18 am #203651In reply to: Conflict (sort of) with Social Login & Mentions
Paul Wong-Gibbs
KeymasterShort 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.
October 3, 2014 at 9:09 am #203650In reply to: BP avatars missing special classes
Paul Wong-Gibbs
KeymasterHmm. 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.
October 3, 2014 at 8:59 am #203649In reply to: Reshaping the registration page
1a-spielwiese
ParticipantLet’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-sectionand#buddypress .standard-form #profile-details-sectionand, if you use them, for:
#user-role-sectionand#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’].
October 3, 2014 at 7:58 am #203644In reply to: [Resolved] buddypress.pot is OK?
danbp
ParticipantI 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”- Rename the file to buddypress-ja.po
- Add the above keywordlist manually, with a text editor.
- 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)
- Translate !
October 3, 2014 at 7:44 am #203643In reply to: Buddypress plugin freezing theme edit
danbp
Participantto 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.
October 3, 2014 at 12:07 am #203638bp-help
Participant@iburnthings
Please review:October 2, 2014 at 11:39 pm #203636In reply to: Buddypress plugin freezing theme edit
walshfilho
ParticipantHi @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
October 2, 2014 at 11:20 pm #203635shanebp
ModeratorTry 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
October 2, 2014 at 11:02 pm #203633mcpeanut
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 .
October 2, 2014 at 10:39 pm #203631In reply to: Buddypress plugin freezing theme edit
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.October 2, 2014 at 9:43 pm #203629In reply to: Conflict (sort of) with Social Login & Mentions
Halo Diehard
ParticipantI 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.
October 2, 2014 at 9:38 pm #203628In reply to: Integrating AJAX Activity Stream with custom markup
shanebp
Moderator[off topic – If you’ve a spare moment, lol…]
re: the use of count_totalIt might be a factor in this bbpress ticket re Activity entries:
https://bbpress.trac.wordpress.org/ticket/2690https://buddypress.org/support/topic/bbpress-post-edit-causes-multiple-activity-entries/
October 2, 2014 at 7:59 pm #203624r-a-y
KeymasterSo 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/newticketUse the same credentials as you use here on bp.org.
October 2, 2014 at 7:54 pm #203623In reply to: [Revolved] Introductory Text for the Activity Page
1a-spielwiese
ParticipantI 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äten bei 1a-Spielwiese angezeigt. Mit dem "Zeige"-DropDown-Menü auf der rechten Seite kannst Du die Liste auf jeweils eine bestimmte Art von Ereignissen (z.B. Profil-Aktualisierungen) einschränken. <br> Wenn Du eingeloggt bist, siehst Du neben dem Tab "Alle Mitglieder" auch noch Tabs "Meine Gruppen" und "Erwähnungen". Mit diesen Tabs kannst Du Dir die Aktivitäten in den Gruppen, denen Du angehörst, bzw. die Neuigkeiten, in denen Du selbst erwähnt bist, anzeigen lassen.</ <br> Auß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ä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ä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]’.
October 2, 2014 at 7:53 pm #203622In reply to: Using BP's Status Updates as a Commenting System
r-a-y
KeymasterThis 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.
October 2, 2014 at 7:38 pm #203620In reply to: Upgrading 2.0.2 to 2.1 breaks registration template
r-a-y
KeymasterAs hnla mentioned, if you’re using theme compatibiliy,
/wp-content/themes/our-theme/registration/register.phpis 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.phpto:
/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:
October 2, 2014 at 7:10 pm #203619In reply to: Conflict (sort of) with Social Login & Mentions
shanebp
ModeratorI’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.phpNote: 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 :}October 2, 2014 at 5:19 pm #203615In reply to: Reshaping the registration page
1a-spielwiese
ParticipantI 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_fieldsbytemplate_noticesand 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ür eine der Benutzer/in/rollen "Team" oder "Fan" (bitte wähle nicht die Rolle "Subscriber"; diese Angabe soll noch gelöscht werden). In Abhä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öglichkeit haben, einige ergä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> -
AuthorSearch Results