@imath thanks for the above code which “adds the post type title into the link in replacement”
But i need to change one small thing in that code but i dont know how.
Here is my code in bp-custom.php —
add_post_type_support( 'job_listing', 'buddypress-activity' );
function customize_page_tracking_args_job() {
// Check if the Activity component is active before using it.
if ( ! bp_is_active( 'activity' ) ) {
return;
}
bp_activity_set_post_type_tracking_args( 'job_listing', array(
'component_id' => 'activity',
'action_id' => 'new_job_listing',
'bp_activity_admin_filter' => __( 'Published a new Job', 'text-domain' ),
'bp_activity_front_filter' => __( 'Job', 'text-domain' ),
'contexts' => array( 'activity', 'member' ),
'activity_comment' => true,
'bp_activity_new_post' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>', 'text-domain' ),
'bp_activity_new_post_ms' => __( '%1$s posted a new Job: <a href="%2$s">Job</a>, on the site %3$s', 'text-domain' ),
'position' => 100,
) );
}
add_action( 'init', 'customize_page_tracking_args_job', 999 );
Here is the result…
PathPoint-SSB posted a new Job: Job 5 hours, 53 minutes ago
Here is what it looks like after I use your code to insert the Title of the Job
pathpoint posted a new Receptionist/Administrative Assistant 5 hours, 49 minutes ago
As you can see, it changes the Users name and also I cant change this part “posted a new”. I would like it to read “posted a new Job: ”
Any ideas?
Thanks for any insight on this,
Aaron
I have had some complaints from users that when they try to post in a forum thread they get the following error message:
“You cannot reply to this topic”
I am confused by this as other users do not have the same problem and I was under the impression that when a user posts to a forum in a group they do not belong to, they are automatically added to that group.
Can someone tell me:
1. Am I right in saying that BuddyPress’s default behaviour is that when a user posts to a forum in a group they do not belong to, they are automatically added to that group?
2. If that is the case, why it isn’t working here and how it might be fixed?
I am using WordPress 4.1.0, BuddyPress 2.1.1 and BBPress 2.5.6.
Very long names in both the name fields of buddypress registration breaks theme and appearance and the top bar when very loooo…oong names are used. How to deal it programmatically?
I find that wp org limits the number of alphabets you can register a name with, but my wp bp install allows almost unlimited length. Is there a plugin or something wp org is using ? Is it available for all ? Thanks.
for example – see the overlaps below
Very long names in both the name fields of buddypress registration breaks theme and appearance when very loooo…oong names are used. How to deal it programmatically?
I find that wp org limits the number of alphabets you can register a name with, but my wp bp install allows almost unlimited length. Is there a plugin or something wp org is using ? Is it available for all ? Thanks.
Yes, sorry I didn’t see your latest post.
Great to see you got it working! 😀
Ok, I have this working! For anyone else struggling with this, these are the steps I took:
1. I created a custom registration form ( I needed more than one form for my setup) using the tutorial from Brajesh Singh http://buddydev.com/buddypress/show-buddypress-user-registration-form-everywhere-buddypress-site/
2. I added a hidden input field to my form:
<input type="hidden" name="user_type" id="user_type" value="your_role" />
3. I added a user_meta during the registration to store the role for later use during the activation process:
function store_user_role($user_id) {
$user_type = $_POST['user_type'];
$user_role = $user_type;
switch($user_role) {
case "your_role":
add_user_meta( $user_id, '_member_role', 'yourrole');
break;
case "my_role":
add_user_meta( $user_id, '_member_role', 'myrole');
break;
default:
add_user_meta( $user_id, '_member_role', 'defaultrole');
}
}
add_action( 'bp_core_signup_user', 'store_user_role', 20, 1);
4. Then during the activation process you check to see which user role is stored in the user_meta, and assign that as the actual WP user role:
add_action('bp_core_activated_user', 'bp_custom_registration_role',10 , 3);
function bp_custom_registration_role($user_id, $key, $user) {
$userdata = array();
$userdata['ID'] = $user_id;
$key = '_member_role';
$single = 'true';
$userRole = get_user_meta( $user_id, $key, $single );
if ($userRole == 'yourrole')
$userdata['role'] = 'yourrole';
if ($userRole == 'myrole')
$userdata['role'] = 'myrole';
if (($userdata['role'] == "yourrole") or ($userdata['role'] == "myrole"))
wp_update_user($userdata);
}
That’s it. I used a few different examples from these support forums so credit goes out to those who got this stuff working in the first place. Hope this helps someone else.
Hi, i need help with my buddypress installation. on the registration page after hitting complete sign up site redirects to the home page and basically does nothing. no confirmation email, no new user when i checked the dashboard, nothing.
Can you help please? i’m out of options.
No other plugins installed/activated, just buddypress.
Using the canvas plugin by woothemes.
Hello,
I am having an issue with my member list since the last update. It keeps showing a higher number every day for member list, like it’s up to over 6,000 now, but it isn’t in the Dashboard. We have just over 2,000 members.
Any idea why it would be collecting all these ghost accounts? I’ve never had this happen before and the site has been up for over two years.
The second problem is that the ‘Recently Active’ widget isn’t registering the proper number of people. I have it set to 24 and it only displays 5-8. And it’s the the Who’s Online one I’m referring to.
Plus, the friend list isn’t working any more. When you go to check the friend list, even if it shows you have friends, nobody shows up. Or only a few people show up.
Is anyone else having these issues since the update?
Thanks. Any help would be greatly appreciated.
Anisa
Hi Guys,
I would like some info about the daily activity for any user.
My idea is to limit the post (text, pics, videos) of every user to 10 (or a specific number) per day and after that number of post the user have to wait until midnight or 24h to post again.
Is that possible with buddypress?
Thanks for your help.
Nick
I am trying to make a classic myspace website. Pretty close to a replica. I want people to have a profile song, (not on their feed but on their profile). I want an about me Section all on the same page as the feed. Not the tabs that they currently have. Those tabs seem a little a clunky for me.
That lets people customize it and add HTML, and embeded what ever they want into their about me section. Like the old Myspace.
(picture of the old myspace)
http://www.qualitative-research.net/index.php/fqs/article/viewFile/1576/3227/6579
@jordanerollin There is a group e-mail plugin called “BuddyPress Group Email”. I have never used it therefore have no working knowledge of it.
I can see from the website there is a tab it says “Send Mail”, but you could possibly change that via a language file edit if you wanted it to say “Messages.”
From the quick read it says:
Allow group admins and moderators to send emails
BuddyPress Group Email
The plugin itself has been around for a good while. I found it in a post from 5 years ago, so maybe somebody with some knowledge of the plugin could better advise.
https://buddypress.org/support/topic/groups-send-internal-message-to-all-group-members/
Note: It is not free.
Welcome on BuddyPress !
You’re on the wrong forum.
bbPress has it own support forum.
Why would you uninstall BP and reinstall it, you even don’t know where the issue came from ?
Take a breath and stay calm. 😉
Activate Twenty Fifteen theme.
Deactivate all plugins except BP.
check for anything is correct. If it is, you can reactivate your plugins one by one, checking after each for an issue, untill you find eventually a culprit.
If all is correct, the only thing who may bring an issue at this stage is your theme.
Activate it and see the result. If you get the same issue, you should contact the theme support.
We cannot help you for this, as it is a premium theme and we have no free access to it’s code.
Please read also here, where some basics are explained.
https://codex.wordpress.org/Debugging_in_WordPress
hi @mrgiblets,
what about a show/hide toggle comment button ?
https://buddypress.org/support/topic/how-to-show-comments-only-when-i-click-on-comment-button/
Or disabling comments selectively ?
https://buddypress.org/support/topic/blog-forum-comments/
See this filter bp_activity_can_comment in:
bp-activity-template.php
bp-blogs-activity.php
im desperate here … will i lose something if i deactivate buddypress and unintall it and install it again ?
but isnt it possible for you to see what entrance in css file there could be mess up its up when it is errors im getting only with buddypress ? After this was installed ? my site havent got these load and error without buddypress
Hi all
I’m fairly new to buddypress so please be patient!
I have installed buddypress on to my site. On a test registration everything works and it redirects to the an activation email has been sent. However no email is received to the mailbox put in but the user can sign in anyway without activation!
I’m using buddypress with minimosity theme from themeforest.
Hope someone can help!
Hey Everyone,
I have recently moved my buddypress site to a new server and since the move both the Add Friend and Join Group buttons are failing to work anymore.
I just get the error: Are you sure you want to this? Please try again.
But, when you click to try again it does not work.
I believe the functioning of the buttons are working as members who are accepting friend requests that were sent previous to the server move are able to process.
I wondered if you could suggest a reason for these buttons not to work since moving servers, so I can pass on to the hosts in the hope it can be resolved as soon as poss.
Thank you for your time.
Wordpress version: 4.1.1
Buddypress version: 2.2.1
Hi @mrgiblets
That’s slightly odd. You’d expect to see the change if the rest of your translated strings are working.
Are you working from the latest BuddyPress .pot file?
Hi danbp,
I can not find a setting to allow explicit @mention. I allowed the activity stream in buddypress. And @mentions are working fine in there.
The notifications if someone is mentioned in the bbpress forums are working fine, too. I even have a dropdown field with suggestions for @mention in bbpress.
The only thing is the missing link to the profile behind the @mention in replies…
forums and buddypress sites are exluded from caching…
Thanks
Matthias
@rosyteddy a couple of good reads there man, i like to read through the comment sections on articles like the ones above because there is some good points raised, there are alot of varied opinions as how to effectively pull this off dependent on the complexity of your site, which i would consider mine as quite complex, the reason for the questions and advice is because of how complex i consider the website to be, i have alot of stylesheets for various different things here there and everywhere loading when not needed etc, in the past i have used plugins to successfully combine and serve them as one cached minified version etc.. but i was just wanting to go more in depth with it and configure it all myself to run at an optimum level.
I am going to be messing around with this over the next few days and will get back to you on what i feel was the best way to do it, any more advice off anyone else who has tackled doing this manually for wordpress/buddypress give us a shout.
WP: 4.1.1 (not multi-site)
BP: 2.2.1
Theme: Twenty Fifteen
Plugins activated: Akismet
Link: ClubBnb
Hi everybody.
I recently installed Buddypress (first time) for a travel-community site and all was running smoothly. An hour ago I accidentally overwrote the site’s wp-config.php with my local (vanilla) version. I managed to get it up and running again but I found that the posts, authors, users and other pertinent details are missing from the blog. I checked out the DB at PhpMyAdmin (Godaddy) and saw that they are still there.
Prior to this I backed up my DB (1,500-ish posts and 60+ users who’ll be after my hide when this isn’t resolved so I’m getting my passport ready just in case 😀 ).
I’m stumped now so I might as well ask for help from you guys (while I grab a beer that I do not deserve).
For now I’ll try to recreate the site in my local machine using the most recent DB backup and see what’ll happen.
If you need more specifics just let me know.
Thanks guys.
I tried that plugin but my plugin setup is far to complex for it to work without breaking ALOT of things on my site, it wouldn’t be worth all the troubleshooting with these other plugins (as i suspected), the website is very ambitious and i have a set amount of plugins i need running to achieve it, removing features is not an option, the main thing im concentrating on is performance with all of the plugins active (which is alot more than the average site so hence the problems) and im trying to combine all my js files in the most efficient way i can without again breaking functionality , i don’t really need all the website to be ajaxed as such it is more a case of just the buddypress tabs on the profile areas that is the issue really