Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    You can use sidebar widget of this plugin or link in menu.
    if you want to link “New Message” you can add https://example.com/SLUG-OF-FEP-PAGE/?fepaction=newmessage in your menu link.

    If you want in template add

    <a href="'.get_bloginfo("wpurl").'/SLUG-OF-FEP-PAGE/?fepaction=newmessage">New Message</a>

    Change SLUG-OF-FEP-PAGE with your Front End PM page slug

    Thread Starter ddjjmm

    (@ddjjmm)

    Yeah i know but I have to include your system into an self developed sidebar menu.

    Of course with your code I can add a message link. But What I want is to include a status link where I will get a hightlight like “(1)” if there are unread messages. In fact i want to print out the number of unread messages.

    Plugin Author Shamim Hasan

    (@shamim51)

    have you tried widgets of this plugin?

    Thread Starter ddjjmm

    (@ddjjmm)

    of course but they are improper for my case.

    Wondering why you didn’t implement some functions to get new message count etc. which is a basic idea in my opinion.

    Plugin Author Shamim Hasan

    (@shamim51)

    All needed functions are there in fep-class.php

    if you want new message count in anywhere add following code

    $fep = new clFEPm();
    $newMgs = $fep->getNewMsgs();

    Now add $newMgs where you want count.

    Could you explain more in detail, how to get a link in a menu, for example just saying: “Messages(1)” if there’s one new message, or “Messages” if there’s no new messages?

    I have no idea where to put this code you’re providing above ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filter’ is closed to new replies.