Reason for this hack:
I find the PM system lacked some additional information on the navbar the 0 X Unread, Total X isn't enough, as i wanted to know who sent the PM and how many they sent.
How it works:
When you get a PM the "Private Messages: x Unread, Total x." disappears and is replaced with a little blinking icon, if the user that sent the PM is a mod the icon will blink a teal color, if its a normal user, it will blink yellow. along with this you can view who sent the message, and if multiple people sent you PMs it will show their names.. If they sent you more than one, it will tell you that too. It will also take you directly to the PM without having to go to your inbox first.. After you've read all your PMs (or you dont have any) the "Private Messages: x Unread, Total x." returns to normal.
Queries: i know a lot of people are worried when it comes to adding hacks (especially me) because of additional queries.. this hack is sort of different. It only executes 1 query IF the user has unread PMs.. if they have no new PMs then 0 queries.
I've included two blinking gifs, you can use your own, put them in your images misc directory.
Read the txt file for installtion which takes 30 seconds.
I plan to expand this addons, but depends how many find it usefull, so click install plz.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It will also take you directly to the PM without having to go to your inbox first..
it says in the description, but that isan't working for me, and must not be for the two people who commented that it would be nice to hot-link the gif .... Are we all missing something? How does it link to the message?
Oh DUH, it is linked to the sender's user name only, so I just ASSumed that was a link to their profile!
With that last fix for CMPS, and the addition of , click to view added just after $privatemessage['fromusername'] . ' this is working pefectly, and my users will be able to figure it out, too - THANKS!
I know this is going to be asking a lot but here is my lousy two cents. I love this idea and when I first installed it I thought it was great, easy and very useful.
After you start getting a handful of PMs it gets messy, I did see and use the limit mod a couple of pages back and that was cool but whats the point of more listings when your already in your PM box after replying the first message. So how could the link be just set up some like (next to blink) "New PM" linked just to your well inbox. Total of PMs next to "New PM" would be super.
Linking the image to your in box is also a good idea, that would be nice too.
The image color depending on member or staff is a great idea, could this be kept while just linking to in box without senders name?
I know this is alot and if i could do it I would thought if I put the idea out there maybe one of you pro coders could bust it out within mins.
What I did Judge and may not apply to you , but I made the flashing email icon linkable to the members inbox (main PM center) with "alt" text saying "Go To The Inbox. This is so the member has the ability to either read the specific PM from the sender or enter his/her inbox.
What I did Judge and may not apply to you , but I made the flashing email icon linkable to the members inbox (main PM center) with "alt" text saying "Go To The Inbox. This is so the member has the ability to either read the specific PM from the sender or enter his/her inbox.
This is what i edited.
Open /global.php
Find the all ready hacked code from the main hack
and replace with
Simple yet effective. I hope this helps. :squareeyed:
Great hack, works nicely......question, can this be setup on a portal page? I noticed when Im on the portal page at top right where it says "private messages is blank with no icon or anything........when you go to the forum main page you see the flashing icon......once the pm is read and the icon is gone the portal page also goes back to normal?
Just wanna get this working from the cmps portal page............any ideas?