Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • @seltee

    Member

    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)
  • @oryanmcentire

    Member

    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 ()

    `

    @seltee

    Member

    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

    @terydinho

    Participant

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

    @oryanmcentire

    Member

    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)
  • The topic ‘How take element: “Messages (1)” (info about personal messages and link)’ is closed to new replies.
Skip to toolbar