Skip to:
Content
Pages
Categories
Search
Top
Bottom

How take element: “Messages (1)” (info about personal messages and link)

  • What a piece of code to take? from what file?

    It is necessary to pull this one element, which is a reference to the private messages and shows their number:
    “Message (1)”

    so that I could, this element shove in the side-bar (sidebar), how get this element pleease)))

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of ORyanMcentire
    ORyanMcentire
    Member

    @oryanmcentire

    First you should check if the user is actually logged in.
    then display the message count with a link back to their messages like this:

    `

    <a href="messages/” rel=”nofollow”>Messages ()

    `

    i insert this code in neader.

    Write error.
    Messages ( Fatal error: Call to undefined function fp_new_message_count() in /home/abicte/public_html/wp-content/plugins/buddypress/bp-themes/bp-default/header.php on line 31

    Avatar of terydinho
    terydinho
    Member

    @terydinho

    I personally use: “ – which shows the number of unread messages you have in your inbox

    Avatar of ORyanMcentire
    ORyanMcentire
    Member

    @oryanmcentire

    Oh sorry mate, I have mine wrapped in another custom function… forgot to strip that out.
    terydinho’s function is the correct one but i would still check if the user is logged in
    `
    <a href="messages/” rel=”nofollow”>Messages ()

    `

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

You must be logged in to reply to this topic.