![]() |
Last PM on Forumhome
This hack will show you last PM you recieved on the forumhome.
|
Screenshot:
|
nice, thanks for sharing ^^
|
it doen't work for me.. no errors, just says i have no new pms when i do. v229
|
Great, I will install it right away, nice little hack! simple/easy/effective :)
|
floris - You have 1 new message(s) since your last visit.
(You have 1 unread messages and 42 total messages in all your folders.) You have no Private Messages in your inbox at the moment. Uhm, doesn't seem to be working though :> vB 2.2.9 |
inph from the irc informed me to also add the templates that are used into the $templatesused=' bit.
So, find: $templatesused=' (in the top of index.php) and at the end of the line, replace: '; with: ,forumhome_pmlastno,forumhome_pmlast'; |
Well, it works for me, almost. It says the last message title correct but is has ARRAY as the user the message is from (and there is no such user on my board). Also, the message it is picking up was moved out of the Inbox into another folder. Is it supposed to show only pms in your inbox?
|
i think $lastpmuser should be referenced as:
PHP Code:
you could limit it to inbox by adding folderid = 0 after WHERE in the $lastpmstuff query |
Should it look like this?
PHP Code:
|
All times are GMT. The time now is 12:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|