View Full Version : User system PM Help
Implement!
06-06-2006, 10:33 AM
Hello,
I was woundering if anyone now how to add a message everytime you log in to the usersystem But only if ou have a pm
somthing like
Hello Jamie0112, you have 1 new message.
Like That any help?
Simie
06-06-2006, 03:54 PM
You could do a SQL query, and if it returns a number make a popup using javascript:
<script>
alert("Hey, <? $SESSIONUSERNAME ?>, you have <? $SOMEPHP ?> new messages!")
</script>
But I don't know php so that might not be a good method :P
Splinter
06-06-2006, 04:01 PM
Basically in your PM table SQL you need to mark if the message is new or not the best way to do this is when the message is viewed change the colum value to 1 so any unseen PM's will have a 0 value to its simple SQL then to work it out..
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.