Skip to:
Content
Pages
Categories
Search
Top
Bottom

Does bp_member_latest_update() Take Arguments?


  • craftcore
    Participant

    @craftcore

    Hi! If you take a look at my activity feed at http://craftcore.ca/members/ , you’ll see that the latest status update of my users is displayed in quotation marks, but there is an annoying forced space before the final quotation mark. I’d rather have no question marks at all.

    The code in members-loop.php is just:

    ` `

    Can bp_member_latest_update() take arguments? I tried to look it up on the codex with no luck.

    Any advice would be awesome! Thank you!

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

  • modemlooper
    Moderator

    @modemlooper

    The only arguement on that function is length.

    To remove quotes on activity that has not been posted you edit line 103 in global.js in the bp-default/_inc folder. Though you should never edit this file directly. Create a child theme and include _inc and global js file in your child theme folder.

    `u = ‘"’ + l + ‘" ‘;`

    The qoutes are saved along with the text in the post form box as a string


    modemlooper
    Moderator

    @modemlooper

    Scratch that, my example changes the member header quote and now that I’m looking at it there is an inconsistency with the quotes.

    Might need to do a str_replace on output.


    modemlooper
    Moderator

    @modemlooper

    ok, changed the template tag, there might be a better way though.

    `
    <?php
    $latestupd = html_entity_decode(bp_get_member_latest_update());
    $latestud = str_replace(‘”‘, ”, $latestupd);
    echo $latestud;
    ?>
    `

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does bp_member_latest_update() Take Arguments?’ is closed to new replies.
Skip to toolbar