Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
PM Alert Widget
Avatar
Darangen
Member
Free Members
Offline
Feb 21, 2012 - 3:55 pm

Any chance of having a widget we could put on a side bar that would alert the user of new pm's when they aren't on the forum page?

 

Something simple like "Hey, you have 2 new PM's" and put a link to their inbox?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Feb 21, 2012 - 8:35 pm

of course... the pm plugin includes a template tag for that...  sp_pm_inbox(display, usersonly)

    parameters:

        $display        Determines whether to display pm count plus informational text
        $usersonly        If $display is true, only display pm text for users with pm permissions

Avatar
Darangen
Member
Free Members
Offline
Feb 23, 2012 - 10:37 am

So could I add something like

 

php sp_pm_inbox( $display=1&$usersonly=1 )

 

to something like my header.php file to have it display on every pages header?

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Feb 23, 2012 - 10:47 am

Seems like that one should be:

<?php sp_pm_inbox( 1, 1); ?>
andy-signature.png
YELLOW
SWORDFISH
Avatar
Darangen
Member
Free Members
Offline
Feb 23, 2012 - 10:51 am

That seems to work on the forum pages, but when I'm on the home page or any non-forum page it seems to disappear.

 

Any way to get it to show up on other pages?

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Feb 23, 2012 - 11:17 am

Oh have we missed that? OK try this:

<?php
sp_forum_ahah_support();
sp_pm_inbox( 1, 1 );
?>
andy-signature.png
YELLOW
SWORDFISH
Avatar
Darangen
Member
Free Members
Offline
Feb 23, 2012 - 12:39 pm

That makes it work!  Thanks a bunch 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Feb 23, 2012 - 12:47 pm

I have opened a ticket to get that fixed up in the tag itself.

andy-signature.png
YELLOW
SWORDFISH
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626