-
Henry Wright replied to the topic Avatar upload on sign up, s2members in the forum How-to & Troubleshooting 11 years ago
Hi @ouegy
How are you saving the actual file to your file system?
-
Henry Wright replied to the topic Create custom register.php page in the forum How-to & Troubleshooting 11 years ago
Hi @mvaneijgen
Take a look at the BuddyPress Template Hierarchy article. It explains how BuddyPress will look for specific template files inside your theme if you’ve created them. These then override the default.
-
Henry Wright replied to the topic Pre loading members in the forum Creating & Extending 11 years ago
The wp_users table description can be found here:
https://codex.wordpress.org/Database_Description
And here’s the BuddyPress database diagram:
Hope that helps you.
-
Henry Wright replied to the topic [Resolved] Friendship request not working in the forum How-to & Troubleshooting 11 years ago
Try using the Twenty Fifteen theme and then deactivating all plugins one-by-one. The idea is to find out which piece of code is introducing the problem.
-
Henry Wright replied to the topic [Resolved] Friendship request not working in the forum How-to & Troubleshooting 11 years ago
Try using the Twenty Fifteen theme and then deactivating all plugins one-by-one. The idea is to find out which piece of code is introducing them problem.
-
Henry Wright replied to the topic avatar does not show in the forum How-to & Troubleshooting 11 years ago
OK, now with Twenty Fifteen activated, try deactivating all plugins you have installed and remove any custom code you may have in your bp-custom.php file (if you have one).
-
Henry Wright replied to the topic Pre loading members in the forum Creating & Extending 11 years ago
Hi @alexbotkin
I’m not aware of an Excel importer. Perhaps try searching the WordPress Plugin Directory for one.
-
Henry Wright replied to the topic Add custom xprofile links in the forum How-to & Troubleshooting 11 years ago
Right. In that case, you can just modify the output of your
forloop. For example:for ( $i = 0; $i < $sportsSize; $i++) {// For this particular $i, get the URL here and store it in a $url variable. You may need to query the db again? i.e. where will you get the URL from, or where are you storing it?
$femaleSport = $wpdb->get_var(…[Read more]
-
Henry Wright replied to the topic Add custom xprofile links in the forum How-to & Troubleshooting 11 years ago
Right. In that case, you can just modify the output of your
forloop. For example:for ( $i = 0; $i < $sportsSize; $i++) {// For this particular $i, get the URL here and store it in a $url variable. You may need to query the db again?
$femaleSport = $wpdb->get_var( "SELECT COUNT(user_id) FROM ar_bp_xprofile_data WHERE value = 'female'…[Read more]
-
Henry Wright replied to the topic Add custom xprofile links in the forum How-to & Troubleshooting 11 years ago
Right. In that case, you can just modify the output of your
forloop. For example:for ( $i = 0; $i < $sportsSize; $i++) {// For this particular $i, get the URL and store it in a $url variable. You may need to query the db again?
$femaleSport = $wpdb->get_var( "SELECT COUNT(user_id) FROM ar_bp_xprofile_data WHERE value = 'female' AND…[Read more]
-
Henry Wright replied to the topic Add custom xprofile links in the forum How-to & Troubleshooting 11 years ago
Right. In that case, you can just modify the output of your
forloop. For example:for ( $i = 0; $i < $sportsSize; $i++) {// For this particular <em>$i</em>, get the URL and store it in a <em>$url</em> variable. You may need to query the db again?
$femaleSport = $wpdb->get_var( "SELECT COUNT(user_id) FROM ar_bp_xprofile_data WHERE…[Read more]
-
Henry Wright replied to the topic How To bp_set_member_type? in the forum Creating & Extending 11 years ago
If you look at my snippet here, you will see that I’ve hooked the
my_set_default_member_type()function tobp_core_signup_user. Now,bp_core_signup_userfires each time a new user registers on your website. This means thatbp_set_member_type( $user_id, 'student' )executes each time a new user registers on your site.Then if you look here, you’ll…[Read more]
-
Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to & Troubleshooting 11 years ago
Hi @youmin
My post was this:
Just to point out, you can’t use or in PHP. Instead you should use a double pipe like this ||.
This is wrong! You can in fact use the
oroperator in PHP, it just takes a lower precedence than||.Hence why I deleted my post.
Hope that clears things up.
-
Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to & Troubleshooting 11 years ago
Hi @youmin
My post was this:
Just to point out, you can’t use
orin PHP. Instead you should use a double pipe like this||.This is wrong! You can in fact use the
oroperator in PHP, it just takes a lower precedence than||.Hence why I deleted my post.
Hope that clears things up.
-
Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to & Troubleshooting 11 years ago
Hi @youmin
My post was this:
Just to point out, you can’t use
orin PHP. Instead you should use a double pipe like this||. So your code becomes:if ( ( $userdata['role'] == "subscriber" ) || ( $userdata['role'] == "contributor" ) )
wp_update_user( $userdata );This is wrong! You can in fact use the
oroperator in PHP, it just takes a l…[Read more] -
Henry Wright replied to the topic How To bp_set_member_type? in the forum Creating & Extending 11 years ago
Hi @youmin
If you don’t already have your roles set-up then this is how you’d add them:
add_role(
'student',
__( 'Student' ),
array(
'read' => true, // true allows this capability
'edit_posts' => true,
'delete_posts' => false, // Use false to explicitly deny
)
);The 3rd parameter is where…[Read more]
-
Henry Wright replied to the topic Add custom xprofile links in the forum How-to & Troubleshooting 11 years ago
Hi @barodscheff
Can you clarify exactly what you’d like to link and where you’d like to link to?
-
Henry Wright replied to the topic How to assign a WP user role based on a registration in the forum How-to & Troubleshooting 11 years ago
Hi @spiritix
Just to point out, you can’t use
orin PHP. Instead you should use a double pipe like this||. So your code becomes:if ( ( $userdata['role'] == "subscriber" ) || ( $userdata['role'] == "contributor" ) )
wp_update_user( $userdata ); -
Henry Wright replied to the topic Getting an error"You do not have sufficient permissions to access this page." in the forum How-to & Troubleshooting 11 years ago
You’ll need to switch to the default theme (let’s say Twenty Fifteen) to see if that works. Also, deactivate your plugins one by one. The idea is to isolate the issue (work out which plugin is introducing the problem)
-
Henry Wright replied to the topic Getting an error"You do not have sufficient permissions to access this page." in the forum How-to & Troubleshooting 11 years ago
Which theme and plugins are you using?
- Load More
@henrywright
Active 1 year, 10 months ago