Hi, vedrine. Sorry for my english (you know that I'm spanish)
I'm editying the pntemplates/plugins/function.getmessages.php on dpStaffStatus 2.1. I discover that on the count of the total of messages (in the block), it counts the outbox messages of the submitter and my inbox messages.
I include the code here:
I don't know now how to solve that.
Thanks
edited by: anykiller, Oct 24, 2005 - 04:59 PM
You can found me at Dev-Postnuke.com & PortalEmpanao.es
Envoyé: 24.10.2005, 21:33
rang:
Site Admin
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
21.07.08
Messages:
261
Hello,
This is weird because it should work
the msg_type column should contain 1 for inbox, 2 for outbox, 3 for savebox
So your sql query should count inbox messages only because they contain "$MsgColumn[msg_type] ='1'"
Can you look with phpmyadmin in your pmbox table to see if all seems correct ?
can you also echo your sql query to screen to see if all seems correct (the field real name is pn_msg_type so you should see something like
(your_prefix)_pmbox.pn_msg_type='1' in the query)
Envoyé: 24.10.2005, 21:51
enregistré depuis:
décembre 2004
Status:
hors ligne
dernière visite:
07.01.06
Messages:
4
I found the solution myself.
I read the function.getmessages.php again and see this:
when it should be:
I made badly the modification xDDDDDD
Thanks.
PD: I'll send you the spanish translation of pmBOX, if you wat this ;)
Best regards
You can found me at Dev-Postnuke.com & PortalEmpanao.es
Envoyé: 24.10.2005, 22:46
rang:
Site Admin
enregistré depuis:
décembre 2003
Status:
hors ligne
dernière visite:
21.07.08
Messages:
261
That's funny I have verified the first and second sql queries but I didn't see there was a wrong third query after !!