|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
pop up window for specific user as in live suppurt scripts
is it possible to pop a window for to welcome a user or to say something to him / her
|
|
#2
|
|||||
|
|||||
|
RE: pop up window for specific user as in live suppurt scripts
Oh, it's soooo easy....try this (untested, but should work...)
php Code:
|
|
#3
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
No, I mean, suppose there are five people surfing your site and you see them online. so you want to talk to one of them, maybe, clicking on their name or ip etc you activate a window on the user computer/screen
This is what I ask for Thanks |
|
#4
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
If you make a SQL Table with the following fields:
id,ip,msgon,timestamp,message Whenever someone comes onto your site, their IP & a timestamp are added/updated in the table (i.e if the IP is already in the table, it just updates the timestamp). It also checks the table with a query like the following: SELECT * FROM tablename WHERE ip = '$REMOTE_ADDR' && msgon = '1'; If that query returns no rows, then there are no messages for that user. If the query returns one row... then the following happens: So... for Mr.Big behind the scenes, if they see someone they know come onto the site... all they need to do is go into the table and change the entry for this person... setting msgon to 1 and entering the message into the message field. That message will then pop up the next time that user loads the page, and then delete itself from the DB to stop it popping up again. |
|
#5
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
What I am trying to say is exactlythe reverse of live support scripts. When user clicked "live online" link a windows open and connect to admin/support. admin see the user and answer him.
What ı waant is the reverse of this. admin sees the user and write a message and when he submitted message a new window opened on the screen of specific user. That is also like one-on-one sessions on java chat... I think I managed to tell myself :-) this time Mustafa |
|
#6
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
So does the user need to reply to this message as well?
|
|
#7
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
YEPPP, certainly
|
|
#8
|
|||
|
|||
|
RE: pop up window for specific user as in live suppurt scripts
ahh...
using the same idea as i said earlier... you'll need to open a JavaScript window... var popup=window.open("livesupport.php", "popupwin", config='height=270,width=250,toolbar=no,location=n o,directories=no,menubar=no,resizeable=no,status=n o') and create a page called popup.php, which contains the code from the php chat thing i saw in one of the code examples on this site. That way, when the admin wishes to talk to the user... they change msgon to 1 in the db, on that users entry... and then talk to them using the chat script. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > pop up window for specific user as in live suppurt scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|