Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 881 total)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    In poedit, make sure to include a double underscore __ in the ‘Sources Keywords’ for your catalog or it won’t process any printf calls that use __

    Or you could make a template overload of
    buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php
    and change the word Comment.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    There are various plugins and services for turning a WP site into an app – google it.
    Here’s one: appPresser

    Remember that you don’t need to use WP/BP to call the database.
    Often times, devs create apps that only use a subset of the data.
    So rolling your own app is feasible and probably the best approach.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    The bbpress example is a good one.

    But just fyi – the BuddyPress codex page is here: bp_notifications_add_notification page.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    That might be tricky to track down, given that ajax is involved.
    Your best bet is to ask Headway.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    >where both want to display the posts hence the duplication

    It’s not a display problem, although that’s how it manifests.

    Two entries are being created when an update is created.

    http://boyabouttown.net/members/jenifusion/activity/58/

    http://boyabouttown.net/members/jenifusion/activity/57/

    Did you switch to a WP theme ( 2013, etc ) and then create an activity update?

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Easy enough to test with some ‘bad’ data, but groups_update_groupmeta uses update_metadata which runs the value thru things like sanitize_meta, so you should be fine.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    It looks fine and is usable.
    I like the stripped down listings on pages like ‘members’

    But the only opinions that count are those of your users.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    They aren’t visible because they have no last_activity field.
    Going forward, this should add it for new members – untested, goes in theme/functions.php

    function pilon_add_timestamp( $user_id ) {
        bp_update_user_last_activity( $user_id );
    }
    add_action('user_register', 'pilon_add_timestamp', 10 , 1);

    For existing members with no last_activity, you could write a script that gathers those member ids and then run them thru the function above.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Nice. And thanks for the link to the discussion.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    This is the file:
    buddypress\bp-templates\bp-legacy\buddypress\activity\entry.php

    Create a template overload before you change it.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    buddypress\bp-templates\bp-legacy\buddypress\activity\activity-loop.php

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    You could use the approach in the codex page you’ve referenced.

    Probably easier to use this hook from WP Job manager: ‘job_manager_save_job_listing’
    In the function that you create for that hook, use bp_activity_add.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Yikes – that was just a skeleton that needs actual code in the function.

    Given your code ability and the number of code requests you’ve recently made on these forums,
    I recommend that you post a job listing here.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    It’s probably something about how you built the theme.
    So the issue appears re bp_button, but is actually due to something else.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    > Any thoughts?

    Use a service like gist to show the code that you tried.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Never put code into the buddypress plugin files.

    Use your theme functions.php or use bp-custom.php.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Do you have debug turned on in wp-config.php ?

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Use the ‘xprofile_updated_profile’ hook

    function josh_profile_check( $user_id, $posted_field_ids, $errors ) {
      /* check $posted_field_ids to see if one of the fields you are interested in has changed
      if yes, then use bp_activity_add to add to activity stream
      */
    }
    add_action( 'xprofile_updated_profile', 'josh_profile_check', 10, 3 );

    bp_activity_add

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Assign the button to a var, then dump it to see what is returned.

    $asdf = bp_get_button( etc. ) 
    var_dump( $asdf ); 

    Your bp_button calls look ok, afaik.

    Take a look at the function
    buddypress\bp-core\bp-core-template.php ~L. 487

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Use bp_get_button

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    You can do that with the Group Extension API.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Then it would seem to be a WP issue.
    Or something happened during the migration.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    Have you looked at this premium plugin?
    BuddyProfileData

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    You’ll probably get a better answer using the support forum for that plugin.

    My guess would be that you are hooking too early and the remove_action calls fire before those add_actions exist.
    Maybe try a hook other than ‘plugins_loaded’.
    Have you tried ‘bp_include’.

Viewing 25 replies - 1 through 25 (of 881 total)