![]() |
My first hack! Yay!
This should theoretically work for 2.0.0 and above, but I've only tested it to work in 2.0.3 and 2.2.0. What this hack does is just allow you to use $allpm[messages], $newpm[messages], and $unreadpm[messages] like in index.php, in your privfolder template. I found it handy to be able to use this in the privfolder template because it's annoying to have to go back to index.php to find out how many messages you have left after deleting a crapload ;) |
This little gem of a small hack is perfect for my needs, thank-you!
I'm surprised no one has replied to this thread ever as with a slight addition, it can cut back on some of our 'support' to our end users... I don't know how many times I've had to explain to my users on why they can't receive PMs even after emptying their inboxes [the dreaded Sent Items folder]. Simply add another query to the instructions: $unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=-1 $ignoreusers"); And then put $sentpm[messages] sent messages wherever in your privfolder template Well, that's how I'm using it :D Cheers, ~Regs. |
Sweet Hack...
I am installing it now! Satan |
I find that if you put this code instead, it looks better:
PHP Code:
I also added Quote:
@Regs - You made a mistake in your php...It should be : PHP Code:
Quote:
Satan |
You have screenshot?
|
I'll get you one...
Satan |
I customised mine with the additions I said above, and I also added colour to it :
PHP Code:
PHP Code:
PHP Code:
Satan |
It is meant to be Orange, but it doesnt show up too well...
Satan |
... Hellsatan. I just hurriedly copied and pasted the code from the original readme and forgot to change the first bit of code.
I had made the little template alterations as you suggested and added code to put it in a table like the rest of the pages. I left that for others though :D A good hack nonetheless. Cheers, ~Regs. |
Yeh...
I found the alterations seemed to make it less confusing... Satan |
All times are GMT. The time now is 12:30 PM. |
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:
|