Forum Replies Created
-
Has anyone had any success substituting the `Mystery Man` graphic by placing it in non-core or non-plugin directory without actually replacing the actual out-of-the box graphic?
I am trying to avoid having my custom Mystery Man graphic get overwritten if/when I do an upgrade to BuddyPress.
Thanks.
all three questions (a) – (c) simply related to the same issue @mercime.
I got a warning so do I really need to update the forums anyway? So what if I don’t? My question about being concerned was not to get feedback from my Sys Admin (which I am the S.A. for the site and server). WP warned me — so do I need to be concerned? The warning was cryptic with respect to WordPress/BuddyPress, not the server.
An my manual update question was this — if the automated WP routine can’t update the forums, is there a manual workaround.
per @r-a-y: “Is there any reason why you need multisite?”
It is my understanding that as of WordPress 3.0 MU was automatically built into core. I am not using multisite, per se, that I know if. At least I did not intent to use it. I do know that I have 2 dashboards in my WordPress under My Sites:
(1) Network Admin
(2) my Buddy Press siteIt does get a little hairy lopping through both dashboards to make settings tweaks and activate and deactivate plug-ins, etc.
I will certainly give ‘wpmu_signup_user_notification‘ a try…
So @mercime, if I already have bbPress installed and running, I should download it and install it again? It’s bbPress that drives this warning message?
Solved it.
Use WordPress functions but you must declare $current_user as GLOBAL
`global $current_user;
get_currentuserinfo();`Then you can reference:
`$current_user->user_login`Thanks @RogerCoathup.
I actually did Google it…i thought I needed a BP login.
So I tried
`get_currentuserinfo();
echo $current_user->user_login;`But I get nothing.
Then I tried `bp_loggedin_user_id()` and I get the ID NUmber — getting closer.
To I tried `bp_loggedin_user_login()` but that fails to get me the user_login. It must not be a defined function call.
Also tried `bp_loggedin_user()` and `bp_loggedin_user_name()` — nothing.
Tried `$user_login` — no good…
My Avatar Default was set already to Mystery Man.
So let me ask this…
Maybe it is not overwriting because it already saved the mystery man avatar to their profile? Is that what is happening?
I am trying to get BuddyPress to use my default avatar for all instances where the member has not yet loaded a picture (or avatar). But maybe my thinking is wrong…
Please confirm that I can or cannot overwrite the mystery man avatar, at anytime, on the fly?
Thanks @r-a-y !!
Ughh…excuse my frustration.
Scope and Objective: to enable the Admin (me) to create user accounts. To capture the username created and pro grammatically write to an external file in order to allow user to authenticate though our private authentication method. And to enable new user to receive a welcome email at time they get setup.
I do not care anything about when/how/why/or where they login or activate themselves so as to appear in BuddyPress. That is all down stream stuff that has nothing to do with my process.
The only effective hook I have found is the `add_action(‘user_register’, ”);` Works like a charm.
However, in order to get the user to be seen by BuddyPress I need to go through step #2 and Add New User in the Buddypress Admin page. That is where I tell WP/BP they are allowed access to the “site” and it is also where they get their role assigned.
I have over 200 users to setup in the next week. If I could just cut down my process time by 50% — that is to eliminate the 2 step process and make it a 1 step process — I would be a little happier.
I need to get the Buddypress equivalent hook to WP’s `add_action(‘user_register’, ”);`
That is why I am asking for an enhancement to BP to get an equivalent hook. Down the road it will make my setup life easier.
I have some screen shots over here –> http://wordpress.stackexchange.com/questions/59649/how-to-hook-into-add-new-member-in-buddypress/59937#59937
They might help trigger something you have done or seen in your BP implementation process…
Thanks !!!
any BP mystery men experts out there?
With some assistance from @r-a-y:
The bp_core_signup_user hook does something after BP has registered the user. Registering the user does not mean the user is activated yet.I ran a test:
`function myTest() {
echo ‘fingers are crossed’; exit;
}
add_action(‘bp_core_signup_user’, ‘myTest’);`I created a new user in the BuddyPress Add New User form. I checked the box to not send an email.
Results:
(1) add_action() interceptor did not echo and halt — not what I desired
(2) new user got an email — also, not what I desiredAny suggestions @r-a-y or other BP Guru’s? Thanks
Still awaiting feedback from the plugin developer –> https://wordpress.org/support/topic/plugin-email-users-questions-about-capabilities-before-i-attempt-to-install
Mainly to help anyone that looks here and tries to take away that `bp_core_signup_user` is the solution…well, it isn’t.
In my plugin I simply replaced:
`add_action(‘user_register’, ‘rebuildAuthUsers’); // rebuild the authorized user list anytime a new user is created through WordPress`with:
`add_action(‘bp_core_signup_user’, ‘rebuildAuthUsers’); // rebuild the authorized user list anytime a new user is created through BuddyPress`It did not intercept the registration process and launch my function.
Still digging…
In reply to: How to make a Discussion Group ”Sticky” [Closed]Can’t be done (http://wordpress.stackexchange.com/questions/59656/how-to-make-a-discussion-group-sticky-in-buddypress).
Have posted this as a Trac entrancement request. Hopefully it will get attention there…
Awesome @aces…I think we are getting closer…Do you know where I insert
<img src="http://my.BuddyPress_site.com/wp-content/themes/my-theme/images/mystery-man.jpg" />?Do I place it all by itself in my
functions.php file? If I do (being a PHP coder) I know a stray html tag will show that image on every page. I need to somehow wrap it around ado_action()or andadd-action()or anadd-filter()or anadd_filters()— I believe, as I learn more about hooking in WordPress/BuddyPress.Thanks for guiding me on what to most out there is such a simple replacement to the out-of-the-box Mystery Man image graphic.
@aces. I am looking through your response. Where do I define the location of my Mystery Man graphic inside your code solution?
I have it located at `../wp-content/themes/my-theme/images/mystery-man.jpg`
The hook is `bp_core_signup_user`. https://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-members/bp-members-signup.php#L443
Found it. Modified ../bp-themes/bp-default/members/index.php (after copying it to my custom themes directory).
In reply to: Member/User Specific Items using functions.phpHi @joelshakespear … I think you are about 4-5 days behind me. I looked into this very same thing and have some code for you to glance over:
`
if (bp_get_member_user_id() != 1 /*admin*/ && bp_get_member_user_id() != 35 /*user35*/ && bp_get_member_user_id() != 36 /*user36*/) {
$members_phoneNumber = bp_get_member_profile_data( ‘field=Phone Number’ );
if (empty($members_phoneNumber)) $members_phoneNumber = ‘(no phone number entered)’;
$members_title = bp_get_member_profile_data( ‘field=Title’ );
if (empty($members_title)) $members_title = ‘(no title entered)’;
echo ‘‘ . $members_phoneNumber . ‘ | ‘ . $members_title;
if (is_site_admin()) {
$user = new WP_User( bp_get_member_user_id() );
$user_role = ucwords(wp_sprintf_l( ‘%l’, $user->roles ));
if ($user_role == ‘Bbp_participant’) $user_role = ‘Administrator’;
echo ‘ | ‘ . $user_role . ‘‘;
}
echo ‘‘;
}
`I use it in the members loop script, but you could probably tear it apart and use it on the member’s page for your needs. Sure hope it helps you out.
I am now going to see if I have any luck with the Email Users plugin at https://wordpress.org/extend/plugins/email-users/
FYI, the BuddyPress development team has rejected my enhancement request to implement a Community Notification Capability (see https://buddypress.trac.wordpress.org/ticket/4381).
Sounds good @joelshakespear — I will gladly let you know what I find out. Keep checking back here and I will update this post as I gain ground on finding a good solution for Community Notification Capabilities.
Thanks @joelshakespear
Where is `BP Mass Messaging` ? Is it an Admin option? Is it a plugin?
If it is the plugin, I already tried it and it does not work. I got:
`You do not have sufficient permissions to access this page.`
Note, I am the WP Admin.Plus I don’t think it is supported by the developer any longer. I posted to their forum site and s/he did not respond.
P.S. we have our own servers and host the site internally so the email blast to our 250 members will not be an issue.
Interesting comment @Asynaptic (although it should probably be in its own topic thread).
We have been building an intranet site using BuddyPress over the past 3-4 months. We have 40+ members currently piloting it. We are a week or so away from opening it up to our entire organization of 200+ people.
One of the major issues I have been focused on is site speed and performance. I have been wrestling over and over with it to understanding if it is inherent in BP or has something to do with our server. We host about 60-70 other sites on the server and none of them perform as slowly as BP does.
I’ve done everything possible including all the recommendations at http://www.buddyboss.com/buddypress-speed-and-performance/
It runs better, but we still get feedback from the community every now and again on how slow it is loading some of our static pages as well and the dynamic ones.
In reply to: Word Press Roles and Buddypress Capabilitiesalright, thanks @PaulGibbs