I need a script in PHP which should display jabber user online/offline status.
1) you will make script Who is Online in Jabber. this page will display users online. we have database of users so it will use this database and display users online.
2)another in user's profile page we will display if he is online or offline.
Note: integrate your script inside PHP code so jabber username is not visible for users in HTML source.