Support Forum

PM Inbox button outside simple-press

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

I would like to know if it’s possible to add the “PM Inbox” button outside the simple-press page in my WordPress template. I created a custom admin bar with shortcuts for users. This “admin bar” is shown on all pages on my website (including the simple-press page).

It would be nice to add the inbox button with the unread messages count in this admin bar so it’s accessible from anywhere on the site, and not only from the /forum/ page.

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/private-messaging/

Take a look at the template tags available. That should give you what you want I think.

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

Thanks, just what I needed! Are there any options for the sp_pm_inbox function? I don’t want to wrap it in <p> tags but in <li> tags.

Think I should edit the core file in the plugin where the function is created then.
This function should also get some variables options like sp_pm_inbox($before, $after) etc in stead of wrapping it in <p> by default. Adding <p> before and after the function in you template is easier then remove it :)

YS Yellow Swordfish
Yellow Swordfish
Member

Take a look at the code. (/template-tags/sp-pm-inbox.php) is the best thing.
I would suggest you should set the $display parameter to false so you get the array returned – then you can display as you prefer