Forum Replies Created
-
I’m not aware of a plugin that does what you wish.
But it wouldn’t be that hard, if you know how to code, to write such a plugin or extend the plugin you mention.
You might try asking that plugin’s author to add those features.
Or you could hire someone to make the changes:
In reply to: If statement for latest activityUntested, but try my amendment to your gist.
https://gist.github.com/4290064
btw – you really should have tried something like Hugo kept telling you. It’s okay to make mistakes and any effort you make will encourage others to help. Otherwise you risk falling into the do-this-for-me-for-free-and-do-it-now category of poster.
In reply to: If statement for latest activityUse
https://gist.github.com/
to share your member-header.php file and put some notes in the area that you’re having trouble with.In reply to: Send user notification when activity is deletedToo bad about the release timing, but good work David.
In reply to: Send user notification when activity is deletedYeah, those fields will be empty unless the values are passed by whatever is calling the function that has the do_action ‘bp_before_activity_delete’
Iffy, but try adding this to the top of your function:
global $activities_template;and then revert to:
$message .= bp_get_activity_content_body();There is definitely some BP way to get the activity content… sometimes it takes some real searching.
And since the activity id is being passed, there is always the custom query approach.
If you don’t know how to do that, take a look at $wpdb and get_var
https://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_VariableThe query will something like this:
$content_id = $args[‘id’];
$content = $wpdb->get_var( “SELECT content FROM wp_bp_activity WHERE id = $content_id” );In reply to: Send user notification when activity is deletedTry
$message .= $args['content'];You don’t say which Jaguar plan you have.
If it’s just webhosting, then you’re hitting a resource limit.
Most simple plans have a very low resource limit.
And WP + BP needs more resources than most simple sites.
( Any page requires a lot of database calls. Your wait time is probably due to waiting for the database to respond. Jaguar is not going to reconfigure their database setup for shared hosting. )Re cache plugin – they would help but not enough to solve the problem.
You’re experiencing these problems without any user load, iow. your site is in production.
As soon as you add any server load, the problems will magnify.I wouldn’t waste any more time with Jaguar.
Start shopping for new hosting asap.
And accept that you’ll need to upgrade from any hosting plan that charges ~$10 a month as soon as your site has more than 25 users – if you want the users to have decent loadtimes.note: if you have a different plan with Jaquar then the performance and their response is even more damning. Move !
Use the Groups extension api
https://codex.buddypress.org/developer-docs/group-extension-api/332 users have registered
100 users have logged in at least once
so 232 users registered but never logged in
In reply to: Edit bp-members-functions.php to include UsernameEditing core files is not recommended, but try this, untested:
After this:
`
$message = apply_filters( ‘bp_core_signup_send_validation_email_message’, $message, $user_id, $activate_url );
`Put this:
global $wpdb;$username = $wpdb->get_var( “SELECT user_login FROM $wpdb->users WHERE ID = $user_id” );
$message .= ” Your user name for log-in is ” . $username;
Take a look at xprofile_get_field_data() in /bp-xprofile/bp-xprofile-functions.php
In reply to: How to add a custom activity?You can adapt this to your needs:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/display-custom-post-types-in-activity-feed/In reply to: Using posts2posts parameters with bp_has_members()Did you read the code as he suggests ?
meta key / value is supported, but do you see anything that shows that custom parameters from your plugin are supported ?
Did you try making a call(s) provided by your plugin and then converting the return(s) into a param supported by bp_has_members?
Try using the ‘include’ param.
In reply to: Using posts2posts parameters with bp_has_members()What makes you think you can pass custom parameters to bp_has_members ?
I’m not sure if it’s possible, but why would you want page cache?
Using it means your members will be looking at stale pages.
For example Users A & B are online.
User A creates some content (update, comment, etc)
User B won’t see it until they log-out, log-in.In reply to: Can there be “groups within groups”?Take a look at this, might do everything you need:
https://wordpress.org/extend/plugins/bp-group-hierarchy/
Note – It can have minor conflicts (mainly css, afaik) with other plugins.Or you can use the
https://codex.buddypress.org/developer-docs/group-extension-api/I’ve used that api to create things like “Team Sheets” within a group / league.
You can do a lot with it, if you can program.Permissions and owner/group are two different things.
If you can’t change the owner/group, talk to your hosting company.In reply to: Place all custom posts by a member in new tabWhat have you tried so far?
Anything like this?
$member_id = $bp->displayed_user->id; $args = array( 'author' => $member_id, 'post_type' => 'adventure' ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : etcIn reply to: Cache problem ?imo – it’s not about cache, it’s about the available memory on your server and various mysql settings. You don’t want to cache forum calls anyways.
BP 1.7 is addressing some of its’ long queries.
Perhaps BB is also interested – you should post your question and research on https://bbpress.org/forums/In reply to: Members profiles as products to a cart like systemThere is no existing plugin, afaik.
You’ll need to write some custom code or hire somebody to do that:
https://buddypress.org/community/groups/bp-jobs-board/forum/Please submit a ticket to https://buddypress.trac.wordpress.org/
use ftp or something like cpanel/file-manager to delete the ajax file from the theme /_inc/ folder.
In reply to: [Resolved] Print user id in profile page> indise bold tags
``
In reply to: Need help with Custom CodeWhy are you using this: $activityDescription = (activityDescription[0]);
instead of this: $activityDescription = activityDescription[0];I would go with the latter version and echo it and comment out everything below it, to ensure it is as you expect. Or just var_dump($activityDescription) after you do the explode and before you reassign it.
In reply to: Need help with Custom Code> I need it the code to do what it is doing now, but instead of just with the 1 post, I need it to work for the last 20….
Did you try a for loop
`
for($i=0, i<20; ++i) {
$activity = $activities[$i];
etc
`