Skip to:
Content
Pages
Categories
Search
Top
Bottom

Some coding questions.

  • @frumph

    Participant

    Looking for help with getting the bp_core_get_avatar when all I have is the $user_id

    bp_core_get_avatar($activity->user_id,1); doesn’t seem to do it for me.

    $activity->user_id = sql read from the wp_bp_activity_sitewide table

    Which should I use in the wp_bp_activity_sitewide, the date_cached or the date_recorded

    In the same database wp_bp_activity_sitewide, why is the content pre-compiled information, makes it *really* difficult to make a custom output when the fields do not have all the information because its already made into the content.

    adding ‘excerpt’, blog_id and post_id would give it more of an ability for people to customize.

    bug: when posting a comment on a blog as admin it stored the primary_link as just “#comment-2” instead of the full site URL then “#comment-2”

Viewing 1 replies (of 1 total)
  • @apeatling

    Keymaster

    sitewide activity table is just cache of all the activity for every user. It would crash your server if it wasn’t a cache. Every user has a table where their activity is not cached, you’d be better off using that.

    I’m not sure exactly where you are trying to use the $activity object? The activity tables have to be generic, so that they can be used for anything, adding specific fields wouldn’t work. You need to check out the format_activity function in each component, that is where you would want to replace the output with the excerpt.

    Your best bet is to download the skeleton component, as that explains how things work:

    https://codex.buddypress.org/developer-docs/creating-a-custom-buddypress-component/

Viewing 1 replies (of 1 total)
  • The topic ‘Some coding questions.’ is closed to new replies.
Skip to toolbar