Forum Replies Created
-
Hi @aquapan
Have you thought about using multisite? This may or may not work for you – see the Codex for more info on it:
In reply to: Forum Posting time stampHi @siteshack
Do you have a link to the question you posted?
In reply to: Including post categories in the activity streamUsing
get_the_category_listmakes displaying the categories very simple! Nice find.Hi @josswinn
Is this ticket related to your problem by any chance?
In reply to: change the "term" avatar to "profile photo"I’m 99.87% sure the change-avatar URL (slug) is hard coded. See this ticket for more info:
In reply to: Buddypress Profiles feature requestwp_editorneeds to identify your textarea. It does that through the textarea’s ID.Usage is this:
wp_editor( $content, $textarea_id, $settings = array() );I see your textarea uses
bp_the_profile_field_input_name()as it’s ID. So as a very basic (un-working) example, it would be:wp_editor( $content, bp_the_profile_field_input_name(), $settings = array() );In reply to: log gin off reroute to wrong page@dverburg-1 I’m not aware of a setting in BP core. But, there is a plugin which lets you do that.
Theme My Login
https://wordpress.org/plugins/theme-my-login/The redirection feature is the bit that does what you need.
In reply to: Including post categories in the activity streamI’m not aware of an exact tutorial but to give you an overview of what needs to be done…
You can use
wp_get_post_categories()to get a list of categories for a particular post.For more information on how to use
wp_get_post_categories(), see:
https://codex.wordpress.org/Function_Reference/wp_get_post_categoriesadd_filter()will let you hook your filter function tobp_blogs_activity_new_post_actionhttps://codex.wordpress.org/Function_Reference/add_filter
More info on WordPress filters:
https://codex.wordpress.org/Plugin_API#FiltersHi @oken
In BP 1.9 + you can now do
echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );In reply to: Recent comments page linktoss up between going through one by one or pulling page and re-writing.
I’ve used that page a huge number of times – mainly for the
is_functions. I actually had it bookmarked at one point 🙂 I’m sure i’ll find a need for it again soon so personally I wouldn’t pull it if the choice were mine.So I take it there’s no recent comments or recent posts pages? 🙂
In reply to: Recent comments page link@hnla – i’ll search the BP v 1.9.1 code base.
Results:
bp_is_recent_postsnot found in 528 documents.
bp_is_recent_commentsnot found in 528 documents.Looks like these functions don’t exist today at least. They may have existed in the past perhaps?
In reply to: Including post categories in the activity streamHi @ewebber
You can do that by filtering
bp_blogs_activity_new_post_actionIn reply to: Preserving whitespace from bp profile fieldsNo, even if I bypass BP completely and construct a direct SQL query to return the field I have the same problem.
Humm, that rules out something like
wp_filter_nohtml_ksesacting on the returned value. SO is a good place to ask actually – hopefully someone over there can help out.In reply to: Preserving whitespace from bp profile fieldsHi @terraling
Take a look at the first few lines in bp-xprofile/bp-xprofile-filters.php
There’s lots of filters in place that act on the xprofile field value. Could be one of them?
In reply to: custom members loopIn reply to: custom members loopTry this:
$update = get_usermeta( bp_get_member_user_id(), 'bp_latest_update' ); if ( is_array( $update ) ) { $activity = bp_activity_get_specific( array( 'activity_ids' => $update['id'] ) ); $activity = $activity['activities'][0]; echo $activity->date_recorded; }Are you up for freelance work?
I don’t think that will be needed as I think this should work now.
In reply to: custom members loop@mykrabuilding could it be that the two members you’re displaying haven’t made an activity update yet? Just a thought! If that is the case then it’ll just need a simple check introduced to see if the member has made an activity update – if they haven’t then display nothing, if they have then display the date.
In reply to: ERROR: Your reply cannot be created at this time.@trainingforamarathon I had this problem once before. Which version of BP and WP are you using. Plugins? Theme?
In reply to: Change thumb avatar files to full.@lrv No, using the bp-custom.php approach – you’d need to re-upload existing avatars in order for the new sizes to be used.
The alternative is to use the full size avatar throughout your theme. However, this might involve making changes to multiple template files (depending on your theme).
In reply to: Change thumb avatar files to full.Hi @lrv
Do you have a link to the original thread you opened? I’ve noticed the same thing happening so will pass on any info you have to the core dev team.
Regarding full avatars instead of thumbs – you can set the thumb (and full) avatar size in your bp-custom.php file. For example:
define ( 'BP_AVATAR_THUMB_WIDTH', 80 ); define ( 'BP_AVATAR_THUMB_HEIGHT', 80 ); define ( 'BP_AVATAR_FULL_WIDTH', 300 ); define ( 'BP_AVATAR_FULL_HEIGHT', 300 );If you don’t already have a bp-custom.php file, just create one and drop it in your plugins directory – i.e. yoursite.com/wp-content/plugins/bp-custom.php
In reply to: Buddypress Profiles feature requestYou can render an editor using the WordPress function
wp_editor()https://codex.wordpress.org/Function_Reference/wp_editor
Also, you might need to remove some BP filters on the member bio content areas – I’m not sure if there are any in place which strip HTML etc.
In reply to: site like behance.net with buddy press?The BP Global Unified Search plugin does that (and a lot more too):
In reply to: site like behance.net with buddy press?In reply to: custom members loopI’ve now had a chance to do this at my PC. Just tested this so it should work:
$update = get_usermeta( bp_get_member_user_id(), 'bp_latest_update' ); $activity = bp_activity_get_specific( array( 'activity_ids' => $update['id'] ) ); $activity = $activity['activities'][0]; echo $activity->date_recorded;In reply to: Codex: Activity stream actions page@hnla good idea! It does look like it needs a little love