-
Henry replied to the topic [Resolved] URGENT : Change Logo Url to Profile Url if Logged In in the forum How-to & Troubleshooting 11 years, 5 months ago
<?php if ( is_user_logged_in() ) { ?>
<a href="/<?php echo bp_core_get_username( bp_loggedin_user_id() ); ?>" title="Profile"><img src="logo.png" alt="Logo" /></a>
<?php } else { ?>
<a href="/" title="Home"><img src="logo.png" alt="Logo" /></a>
<?php }… -
Henry replied to the topic Restration Page Re-directs to Homepage in the forum How-to & Troubleshooting 11 years, 5 months ago
What @bphelp said and also try going to WP Admin > BuddyPress > Pages and then under Registration make sure your “Register” page isn’t set to your homepage.
-
Henry replied to the topic [Resolved] Ajax Fails When Posting On Another User's Activity? in the forum How-to & Troubleshooting 11 years, 5 months ago
@newkindofcool thanks for the update, always good to hear the solution when one comes along!
-
Henry replied to the topic Dynamic profile fields in the forum How-to & Troubleshooting 11 years, 5 months ago
bump
-
Henry replied to the topic Exclude self from members directory in the forum How-to & Troubleshooting 11 years, 5 months ago
I ended up using
if ( bp_get_member_user_id() == bp_loggedin_user_id() ) continue;
right afterbp_the_member()
in members-loop.php. I borrowed the idea from an old post by @r-a-yThe only drawback with this approach is the numbers in the pagination will be off by 1.
So even though the pagination might read “Showing 1 – 5 of 5 members”, you will…[Read more]
-
Henry replied to the topic Exclude self from members directory in the forum How-to & Troubleshooting 11 years, 5 months ago
Thanks @ aces seems like an interesting plugin. I’ll check it out
-
Henry replied to the topic Exclude self from members directory in the forum How-to & Troubleshooting 11 years, 5 months ago
Thanks for confirming. I’ll just filter out the logged in user. Probably also do it for the follow pages (I’m using the BP follow plugin too)
-
Henry started the topic Exclude self from members directory in the forum How-to & Troubleshooting 11 years, 5 months ago
Does the currently logged in user appear by default in the members directory? If so, is there a reason for this? I was thinking of excluding the currently logged in user.
-
Henry replied to the topic Is there a way to have a member count for registrations? in the forum How-to & Troubleshooting 11 years, 5 months ago
If you want to display the active member count which will exclude people who have completed the registration form but not yet activated their account, then use this
<?php echo bp_core_get_active_member_count(); ?>
If you want everyone including people who have not yet activated then use this
<?php
[Read more]
global $wpdb;
$sql = "SELECT COUNT(*)… -
Henry started the topic Edit profile fields loop in the forum How-to & Troubleshooting 11 years, 5 months ago
The edit profile fields loop is great if you need all fields that are text inputs to be the same (share the same markup). what if you want text inputs to be different for certain fields? perhaps some fat? some 100% width of the page, some with a green background?
Anyone ever attempted to remove the loop in edit.php and add HTML for each field…[Read more]
-
Henry replied to the topic Get xprofile field value in functions.php in the forum How-to & Troubleshooting 11 years, 5 months ago
Didn’t see your last post…
Brilliant! Glad you got it working :}
-
Henry replied to the topic Get xprofile field value in functions.php in the forum How-to & Troubleshooting 11 years, 5 months ago
Try putting everything except the
add_action( 'init', 'my_em_setup_nav' );
inside themy_em_setup_nav()
function. Sofunction my_em_setup_nav(){
global $bp;$args = array(
'field' => 'Role',
'user_id' => bp_loggedin_user_id()
);
$role = bp_get_profile_field_data($args);if( $role == 'Role1' )…[Read more]
-
Henry replied to the topic Get xprofile field value in functions.php in the forum How-to & Troubleshooting 11 years, 5 months ago
try adding this to the first line of your function in functions.php
global $bp;
-
Henry replied to the topic Get xprofile field value in functions.php in the forum How-to & Troubleshooting 11 years, 5 months ago
$args = array(
'field' => 'Role',
'user_id' => bp_loggedin_user_id()
);$role = bp_get_profile_field_data( $args );
…should be what you’re after.
-
Henry replied to the topic [Resolved] Activity stream accessible to everyone in the forum Installing BuddyPress 11 years, 5 months ago
@ghera74 you can see the sitewide activity stream (without being a registered member) by going to yoursite.com/activity
-
Henry replied to the topic [Resolved] Ajax Fails When Posting On Another User's Activity? in the forum How-to & Troubleshooting 11 years, 5 months ago
I think I’ve come across this myself. I themed my activity pages so assumed the issue was caused by something I had introduced. I suggest you raise the issue at BuddyPress Trac where the developers can pick it up and confirm if it is a bug.
-
Henry replied to the topic Complete list of all BuddyPress pages in the forum How-to & Troubleshooting 11 years, 5 months ago
Hey @bphelp, nice plugin idea! I think lots of companies would want to use something like that as a kind of intranet for staff only.
So far i’ve come up with:
Registration and login
Register
Activate
Login
Lost password
Reset passwordLanding pages
MembersMessaging component
Inbox
Sentbox
Compose
Single messageProfile…[Read more]
-
Henry replied to the topic child theme integration in the forum How-to & Troubleshooting 11 years, 5 months ago
Building a child theme and then switching shouldn’t be a problem. For a tutorial on how to create a child theme see the Codex
https://codex.buddypress.org/legacy/building-a-buddypress-child-theme/ -
Henry replied to the topic redirect to profile page? in the forum How-to & Troubleshooting 11 years, 5 months ago
Trying changing
wp_redirect( get_option('siteurl') . '/profile' );
to
wp_redirect( '/members/' . bp_core_get_username( bp_loggedin_user_id() ) );
-
Henry replied to the topic Duplicate profile field names in the forum How-to & Troubleshooting 11 years, 5 months ago
Thanks for the feedback guys. I have quite a few field names that could easily be duplicates. My current workaround is exactly what you’ve suggested (naming them all differently “Work email” “Home email” and so on). I was hoping there was some easy approach I was overlooking
- Load More
@henrywright-1
Active 9 years, 10 months ago