Forum Replies Created
-
In reply to: I might be showing zero intelligence here.
@mike00m – first thing: if you want support on a particular problem, it really helps to give your thread a meaningful title that says something about the sort of problem you are experiencing.
Showing a list of latest posts from blogs around a WordPress multisite install is actually surprisingly challenging because of efficiency concerns. Polling lots of blogs takes a large amount of CPU time.
However, in BuddyPress, you can implement this relatively easily using a custom activity stream loop (which avoids the efficiency concerns):
Each time a post is saved, an entry with the details of the post is added to the activity stream.
You can then write a custom activity loop that just pulls out the latest blog post related activity.
Unfortunately, BuddyPress saves the info (thumbnail, excerpt, etc.) in a monolithic chunk that’s cumbersome to manipulate later (e.g. to pull out and style the thumbnail as you want). Therefore, you might also want to look at modifying the action hooks on post save, to set up the activity stream entry in the correct format for your site to begin with.
It’s relatively easy to set this up, but you do need to be a competent PHP / WordPress developer.
[it’s possible that someone else might be able to point you to an off the shelf plugin / widget for this]
In reply to: Calling last_active outside of member loopIt’s stored in the wp_user_meta table, and there are some BuddyPress wrapper functions around the standard WordPress get_user_meta() functions.
You should be able to use:
$activity = bp_get_user_meta( $user_id, ‘last_activity’, true );
Let me know if that works.
Cheers, Roger
Do you mean, you want to send an email to everyone when a new (blog) post is posted, or when any kind of item is posted to the activity stream?
For the first you can hook a function on to the WordPress ‘save_post’ action. In that function, you can iterate over every member (see https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-members-loop/ for guidance), and for each member you use the BP messaging API ( messages_send_message() ) to send them an email.
For the second – you can’t seriously want to email everyone, any time anything is posted to the activity stream: the system and your users would be swamped – However, if you still do, check out some of the action hooks that are called when activity items are saved: https://codex.buddypress.org/developer-docs/action-reference/activity-streams/
In reply to: Getting a php fatal error with bp-core-functionstry increasing the memory via your php.ini file, not via wp-config.php
It’s clear from the error message above that your site is exceeding it’s PHP memory limit.
It’s standard WordPress syntax for including templates (e.g. sidebars, footers, template parts).
If you have a template called header-buddypress.php defined it will include that, if not it will fallback to header.php.
In reply to: Theme to support private messagingIf you are using the bp-default theme —
All you have to do is login, visit someone’s profile, and the send message buttons are there
In reply to: Getting a php fatal error with bp-core-functions>>> Yesterday I got this error too
>>> PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 37708 bytes) in >>> /home2/zetaport/public_html/wp-includes/functions.php on line 316Try increasing your PHP memory allocation, and start from there.
In reply to: White screen after inserting imageDid you check your web server error log as Paul suggested?
In reply to: Theme to support private messagingBuddyPress supports private messaging ‘straight out of the box’ by default (‘send message’).
Do you mean ‘instant messaging’?
In reply to: Buddypress forum search glitch@mercime – you, me and everyone we know is aware of the issue
!In reply to: White screen after inserting imageYou may have some plugin installed that is causing a conflict.
As always, to narrow that down:
1. switch to bp-default
2. deactivate all your plugins, except BPDoes it work now?
Then reactivate the plugins one by one, testing after each to narrow down any conflict.
[Edit: are you sure you are able to increase your memory limit via wp-config? We’d always do this via php.ini. You may need to speak to your hosting company to get it increased from your site]
In reply to: Theme Help – News / Magazine Style Theme@michaeljdornan – there’s a job board group on this site (not easy to find though!)
It makes sense to post your requirement there: https://buddypress.org/community/groups/bp-jobs-board/forum/
Your costs could vary considerably – from just a few hours work to add basic BuddyPress capabilities to an existing ‘news’ theme (dependent on amount of HTML restructuring, styling), through to several weeks development to build a fully fledged news site with full backend workflow support and tight ‘site function related’ BP integration.
Having an indicative budget when you add to the jobs board would help.
If you don’t get it sorted through the job board, feel free to drop me a line.
Roger
In reply to: in spanishlos detalles que necesitas estan aqui: https://codex.buddypress.org/translations/spanish-espanol-generico-es_es-correctedcorregido-by-buddypress-esorg/
In reply to: Need to Force Everyone to be FriendsMembers can’t write on each other’s walls in BuddyPress anyway. Not unless you are using a plugin / bespoke theme that supports that.
If you are, you’ll have to disable the bp_is_friend() check in that code to enable the function in all cases.
In reply to: Buddypress forum search glitchIt doesn’t work – I don’t know why it is there @johnjamesjacoby
In reply to: HTML in Profiles?Take a look at bp-xprofile-filters.php in bp-xprofile
Those are the filters that are applied to profile field values to strip html, etc.
You can add code to your functions.php to add / remove / replace them as you see fit.
In reply to: Need to Force Everyone to be FriendsRather than trying to friend everyone, it might be a more logical mapping to simply remove the friend concept (and any related conditional code) from your site.
In reply to: Buddypress & Videos/PlaylistsHi Thomas –
a few pointers for you:
To integrate your videos into BuddyPress, you probably want to take a look at building a BuddyPress component – check out the bp skeleton component – it gives all the outline code you need for integration with the activity stream, adding new menus / screens within a user profile, and creating classes / custom post types to store your data.
You won’t need any new tables – WordPress custom posts and data storage in wp_post_meta should give you all you need.
I’d suggest you’ll probably want a new custom post type for storing your playlists, and can make use of the existing WordPress video post format for the actual videos.
It’s not easy coding, but if you know your way around PHP, and WordPress custom post types / taxonomies, you’ll be fine.
cheers, Roger
In reply to: XML-RPC postsBuddyPress doesn’t use custom post types, and doesn’t have an XML-RPC API yet (well, not that I’m aware of).
I guess your first stage is to implement your own XML-RPC interface for the specific BuddyPress functions you want to hook into.
In reply to: Registration Spam HelpThis article gives some decent ideas (and some less so!):
Other than that – there are lots of prior discussions on buddypress.org – if you try Google, it will find some pages on this site.
Keep yollering about how it would be nice to have regular forums with search on here @jjj
In reply to: Hide/Delete Base Profile Username@valuser – that plugin is nearly 3 years old. Given the hooks, priorities have changed – I doubt it works anymore.
The link I’ve given provides a solution to the problem, with just one line that needs adding to bp-custom.php
In reply to: Hide/Delete Base Profile UsernamePlease post your issues as separate topics – it helps finding them, solving them.
#2 is a well known UX problem with BuddyPress – https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/certain-buddypress-member-profile-data-getting-hyperlinked/
For #1, you’ll either have to write some PHP to conditionally exclude the name field, or simply hide it using CSS
@traveljunkie sells a full featured plugin to do this – check it out here:
Have you started by doing all the basic steps:
1. Make a copy of your site (so you are not working on the live server)
2. Deactivate all plugins except BuddyPress
3. Switch to bp-default theme
4. [Ideally make sure you have updated WP / BP to the latest versions]
5. Then uninstall multisite [which instructions did you follow to do that?]Does it work correctly if you do this?
If so, the problem is in your theme or your plugins. If not, the problem is more general.
If working after these steps, switch to your theme, then activate plugins one by one, checking functionality at each stage.
If you can report back on that, it should be possible to give more help (if needed!)
[Edit: it would also be helpful if you gave the exact error message you received – with that information, finding the problem may be much simpler]
Yes, you need to echo the value returned by bp_get_member_profile_data(), or just use bp_profile_field_data() as you’ve done