Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 17 replies - 1 through 17 (of 17 total)

  • socialc
    Participant

    @socialc

    Cancel that, it’s working now. I tried again, must have had a syntax error somewhere.


    socialc
    Participant

    @socialc

    @henrywright Tidy, I’ve been away from BuddyPress for a while but this is achieable. Thanks.


    socialc
    Participant

    @socialc

    @r-a-y Thanks, good idea.


    socialc
    Participant

    @socialc

    <?php echo bp_notifications_get_unread_notification_count(bp_loggedin_user_id()); ?>

    You can build your own menu using this inside to show the count.


    socialc
    Participant

    @socialc

    @danbp Ah yeah no doubt, although surely if it’s changed in one place it should be changed in all occurrences? “Create [group]” for example would also need changed.


    socialc
    Participant

    @socialc

    @marcono you might want to read this page and consider making a translation file of your own.


    socialc
    Participant

    @socialc

    *update* via CSS this can still work, but would be nice to have a bit more control here.


    socialc
    Participant

    @socialc

    … or just add a login link to your site anywhere in your theme files. e.g <a href="<?php echo wp_login_url(bp_loggedin_user_domain()); ?>"><?php _e('Login', 'buddypress'); ?></a>.

    This will redirect a user to their profile page after logging in.


    socialc
    Participant

    @socialc

    Thank you


    socialc
    Participant

    @socialc

    Nice one, cheers.


    socialc
    Participant

    @socialc

    @danbp yeah, sorry about that :). Reason I went a bit further was when working on a theme earlier I was using a function get_displayed_group_id() or something with a similar name. I was expecting a return value but it was echoing no matter where I placed this.

    Ended up using a different method.

    Just wondered if there were other functions inside BuddyPress that looked like a return value but had output instead.


    socialc
    Participant

    @socialc

    The function will never return false as you’ve set a default for $goal in the parameters.

    If it were to be defaulting to null and no $user_id was set the return would be false.

    When a value is passed to the $goal parameter and assuming the label was in the DB the return would still be false.

    Maybe I’m reading this wrong.


    socialc
    Participant

    @socialc

    @danbp shouldn’t you be returning $goal here?


    socialc
    Participant

    @socialc

    Inside your theme, make sure there is a file wp-content/themes/your-theme/buddypress/activity/post-form.php. If there is no file in that location copy this file wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php into the first location.

    Then, look at line number 28 – 32 of post-form.php.

    From there, you will notice you can change this text for the activity update form which reads “What’s new in “GROUP NAME” if you’re on a group page posting the update or “What’s new USERNAME” if you’re any where else.

    So, to swap in a specific profile field you’d need to supply a bit more about the nature of your project and how it’s setup. You could simply drop in some static text, but if you want it to relate to a specific profile field in a dynamic way then please elaborate further.


    socialc
    Participant

    @socialc

    @henrywright Already I see the use of this, thanks very much.


    socialc
    Participant

    @socialc

    Hey @henrywright thanks, I’ll take a look at this now.


    socialc
    Participant

    @socialc

    Activity stream updates support oEmbed for popular sites you can see supported sites here https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F

    If you want direct uploading on the activity stream there are a few plugin choices that exist. I think one is called RTMedia and there is also one from BuddyBoss.

    With regard to activity posts going to the top on older items. I can’t help you with that at the moment, maybe someone else will come along.

Viewing 17 replies - 1 through 17 (of 17 total)
Skip to toolbar