Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
PM notification in widget
Avatar
Steve Porcaro
Member
Free Members
sp_UserOfflineSmall Offline
Apr 18, 2014 - 8:33 pm

Hi, 

I'm a new user, and I have the plugins installed for Private Message System and Template Tags and Widgets, but not sure what the next steps are to get the tag in a widget on WP. 

Is this something I can do myself? 

Thanks! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 18, 2014 - 9:07 pm

Sorry, can you explain what you want?

Using the pm system doesn't need any template tags...

Notification? Are you just wanting to display the inbox count with link on the sidebar?

Avatar
Steve Porcaro
Member
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2014 - 5:11 pm

Thank you Mr. Papa, 

I have the forum posts widget set up on my sidebar, but I'm not sure how to set it up for individual inbox PM. 

Simply put, if someone logs into the site, but not the forum, I want them to see they have a message in their inbox. 

Does that make sense? 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2014 - 5:29 pm

If you already have the pm plugin, then you just need to add the template function call to your sidebar...

sp_pm_inbox($display, $usersonly)

replace $display and $useronly with true or false (or omit to get defaults of true and false respectively)...

$display is flag to echo the html display code (true) or just return the html code for you to do something with (false)...

$useronly is a flag to display a permission message for users who cannot pm (true) or output nothing if the user cannot pm (false)...

this template function, ie sp_pm_inbox();, would go in your sidebar or where you want it to show up... it is php code so has to go in a php segment...

there is no widget or shortcode for this...

Avatar
Steve Porcaro
Member
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2014 - 6:49 pm

Thanks, but I'm not sure what you mean by " add the template function call to your sidebar…"

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2014 - 8:57 pm

just like adding a widget but instead use a text widget (one that supports php) and instead enter the template function, such as

<?php sp_pm_inbox(); ?>

this is standard wp template tag stuff so nothing sp specific...  understand if you havent dont that in wp before, but hopefully that helps...  if not, come on back...

Avatar
Steve Porcaro
Member
Free Members
sp_UserOfflineSmall Offline
Apr 19, 2014 - 11:03 pm

Thank you, I added a text widget for PHP and I'm all set! 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 20, 2014 - 12:26 am

good deal... thanks for the update!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625