-
shanebp replied to the topic avoid potential overloading in the forum How-to & Troubleshooting 11 years, 1 month ago
Yes the plugin will use a lot of resources, in the form of spikes.
A lot depends on the amount of resources you have available.
From what you’ve written, it seems that the ‘load’ would come from creating matches based on the questionnaire, not from the actual questionnaire. So storing those answers in another database probably may not help…[Read more]
-
shanebp replied to the topic avoid potential overloading in the forum How-to & Troubleshooting 11 years, 1 month ago
Your question is not simple 🙂
re First: I don’t think a webservice will reduce the load
re Second: each request does Not require reloading WP
Since you’re generating and processing the requests ‘locally’, using a webservice might slow things down, depending on the setup of your servers.
This is different from what you’re doing, but might be…[Read more]
-
shanebp replied to the topic Combine /user & /user/profile pages? in the forum How-to & Troubleshooting 11 years, 1 month ago
-
shanebp replied to the topic Search page to search custom user fields in the forum Creating & Extending 11 years, 1 month ago
You could use this or study it to write your own:
https://wordpress.org/plugins/bp-profile-search/ -
shanebp replied to the topic Function to update databse fields in the forum How-to & Troubleshooting 11 years, 1 month ago
-
shanebp replied to the topic Include a 'Members of my groups'-view in the index.php of members in the forum How-to & Troubleshooting 11 years, 2 months ago
In members/index.php, you will see this:
<?php bp_get_template_part( 'members/members-loop' ); ?>
Either create your own template and call it there.
Or adjust the members/members-loop.php file.Since you are using a child theme, probably easiest to go with the adjust-file approach.
Based on what you’re doing, there is no need to change…[Read more]
-
shanebp replied to the topic Hide Admin from Group List in the forum How-to & Troubleshooting 11 years, 2 months ago
Re your rebuild of the ajax_querystring…
It’s even better to remove yourself before that query is constructed.
Take a look at this hook: bp_pre_user_query_constructRe remove group admin from loop…
That’s a tough one.
I recall not being able to do that or that the consequences were too ugly or some fail.
This is kinda of clunky – but…[Read more] -
shanebp replied to the topic Database Schema map in the forum How-to & Troubleshooting 11 years, 2 months ago
@xkronik13x
Thanks much for the map.
Do you know when it was generated ? -
shanebp replied to the topic creating a placeholder on drop down lists on profiles in the forum Requests & Feedback 11 years, 2 months ago
Please add the patch to the ticket so that core devs can decide if they want it.
-
shanebp replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
@henrywright-1 Solve that one !
-
shanebp replied to the topic Add Profile Field to Member Page in the forum How-to & Troubleshooting 11 years, 2 months ago
@bphelp Thanks for the pointer.
@buddhatunes Thanks for the purchase. Looks good on your site.
-
shanebp replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
>This would be something different than their username.
You mean different than their user_id ?
You can create anything you like, such as integer assigned to a user.
How you create it, where you store it and how you use it will require knowledge of WP, BP, php and mysql. -
shanebp replied to the topic Xprofile check if user can view field in the forum Creating & Extending 11 years, 2 months ago
@r-a-y
Any reason not to use bp_xprofile_get_hidden_fields_for_user() ? -
shanebp replied to the topic [Resolved] List Members based on extended profile field value in the forum Creating & Extending 11 years, 2 months ago
It’s already an array. No need to turn it into an array. And that not how to create an array anyways.
Try:
<?php
global $wpdb;
$db_query = "SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 13 AND value = 'Yes'";
$match_ids = $wpdb->get_col($db_query);
?>
<?php if ( bp_has_members( $match_ids ) ) : ?>If that doesn’t work, try:…[Read more]
-
shanebp replied to the topic [Resolved] List Members based on extended profile field value in the forum Creating & Extending 11 years, 2 months ago
Make sure this exists on the page before the query:
global $wpdb;then try: “SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 13 AND value = ‘Yes'”;
or “SELECT user_id FROM wp_bp_xprofile_data WHERE field_id = 13 AND value = $attend_value”;
I don’t recall if you have to implode the $get_these_members array before passing it to…[Read more]
-
shanebp replied to the topic Profile Avatar Showing Wrong Image in the forum How-to & Troubleshooting 11 years, 2 months ago
I don’t think avatar folders are deleted when a user deletes their account.
But that shouldn’t matter because avatar folders are based on user_ids which are auto-incremented.Are you saying that all new members end up with the image in this folder:
/wp-content/uploads/avatars/10Do you have the same image selected as the default avatar under…[Read more]
-
shanebp replied to the topic How can I add additional info to members page? in the forum Creating & Extending 11 years, 2 months ago
You may be interested in this premium plugin: BuddyProfileData
From PhiloPress
-
shanebp replied to the topic Link from WordPress Author Page to Buddypress Profile Page in the forum Creating & Extending 11 years, 2 months ago
read:
try:
<h2 class="author-title"><?php printf( _x( 'by %s', 'Posts by...', 'buddypress' ), bp_core_get_userlink( $author_id ) ); ?></h2>
-
shanebp replied to the topic Geting input values in Edit Profile page in the forum How-to & Troubleshooting 11 years, 2 months ago
Remove all the changes listed above that you made to edit.php.
In functions.php, paste this:
function something_updated_profile( $user_id, $posted_field_ids, $errors ) {
[Read more]
if ( empty( $errors ) ) {
print_r( $posted_field_ids );
echo "<br>user id: " . $user_id . "<br>";
print_r( $_POST );
}
}
add_action('xprofile_updated_profile',… -
shanebp replied to the topic Geting input values in Edit Profile page in the forum How-to & Troubleshooting 11 years, 2 months ago
use this hook:
do_action( 'xprofile_updated_profile', bp_displayed_user_id(), $posted_field_ids, $errors );
found in:
buddypressbp-xprofilebp-xprofile-screens.php L. 125
- Load More
@shanebp
Active 6 hours, 59 minutes ago