2011-11-18, 03:21 PM
Greetings. I was thinking of getting a PHP code to check if there was a new PM for the user.
I have integrated what I could.
Put I need a function to check if the user which is online have a new PM.
And if so it should show the the New PM box like in the MyBB Header.
I have those arrays in my script which works together with MyBB.
Also all arrays which starts with "$mybbu->" will go get the value from the user which is online right now. The content which we put after "$mybbu->" is which database row we are going to select the value of.
I really hope someone would be able to help me making a PHP function which could do this.
I have integrated what I could.
Put I need a function to check if the user which is online have a new PM.
And if so it should show the the New PM box like in the MyBB Header.
I have those arrays in my script which works together with MyBB.
$mybbu->username = MyBB Username
$mybbu->uid = MyBB UserID
Also all arrays which starts with "$mybbu->" will go get the value from the user which is online right now. The content which we put after "$mybbu->" is which database row we are going to select the value of.
I really hope someone would be able to help me making a PHP function which could do this.