Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4.1 Questions & Support

Notices

 
LinkBack Thread Tools Display Modes
Old 08-20-2009, 02:44 PM   #1
Senior Member
 
 
Join Date: Apr 2009
Posts: 124
Rep Power: 4
damiun is on a distinguished road
Default Urgent: How to determin if user is online

Hi,

Together with a girl from belgium we are trying to integrete a really cool chat script.
But is it possible to determin in 68classified if a user is online?

Thanks in advance,
Dominick
__________________
68 Classifieds Developer v4.1.4 - Templatecodes Nu Style 3 (68C 4.1x) templates.

The modules I used:

adpack - listing filter - quick search - Authorize Free Ads - SEO Mod - Rating - Newsletter - Listing Stats - Seller Store - Ad Reporting - TinyMCE - Alternate Address - Template Switcher - Postal Code search

Special thanks:
- Templatecodes.com
- Mike -N-Tosh
- 68 Classifieds support team!

http://www.Damiun.nl


Michael I will never forget you and your music!
damiun is offline   Reply With Quote
Old 08-20-2009, 06:49 PM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,589
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by damiun View Post
Hi,

Together with a girl from belgium we are trying to integrete a really cool chat script.
But is it possible to determin in 68classified if a user is online?

Thanks in advance,
Dominick
The web is a stateless environment. A browser simply asks a web server for a page, the web server delivers the page, end of conversation. The web server does not know if the browser is still viewing the page requested or not o technically speaking only using php, there is NO WAY to accuralty tell if a user is still viewing a site.

That being said you will need to implement some other form of communication that standard http requests to determine if someone is still on a site or not.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 08-21-2009, 01:53 AM   #3
Member
 
Join Date: Jun 2008
Location: Maldives
Posts: 46
Rep Power: 5
business is on a distinguished road
Default

but can we know if a user is logged into the site?
__________________
v 4.1.3 Developer
business is offline   Reply With Quote
Old 08-21-2009, 08:13 AM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,589
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by business View Post
but can we know if a user is logged into the site?
As I just said above the WWW protocol is stateless. There is a request from the browser and a response form the server, thats it.

So to more specifically you can find out if a user HAS logged in but cant tell if they are still viewing your site. Thats not how the www protocol works. After someone logs in the web server has no idea if you shut your computer off or went to a different page etc. The data constantly flowing back and forth to establish and maintain a statefull conversation would be immense and the internet would have never taken off.

Just like on any web based form, when you see a list of users online its not 100% accurate, its based on a time period and it simply displays a list of people who have requested a page in the last couple minutes. If someone on the active user list hasnt requested something for a couple minutes it assumes they are no longer there and name is removed from the list.

So once again as I already mentioned if you want to establish a stateful connection between your client and your site you are going to have to bring some other protocol into the mix.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 08-21-2009, 11:38 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,280
Rep Power: 32
seymourjames has a spectacular aura about
Default

Google is your friend - you will see what you are trying to do is not only difficult but plagued with problems. I have not ben able to find a sure fire technique that can be implemented. Forum software does some of what you want but it just looks at who has logged in and who has logged out. In itself that is not a very robust technique. What you really want is the type of functionality provided by skype. However, you are then into people putting software on their own machines. It gets into using protocols and all sorts of things.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 08-22-2009, 11:40 AM   #6
Junior Member
 
Join Date: Jul 2009
Posts: 17
Rep Power: 1
chillyware is on a distinguished road
Default

zie google

user is online sript - Google zoeken
__________________
v4.1.4 Developer
chillyware is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Log In Help Please! dphibb v4 Questions & Support 11 12-05-2008 08:12 AM
Urgent Regarding SEO Urls.. cathouse911 v4 Questions & Support 11 11-20-2008 01:27 PM
Online Users Display Mod manilaboy Modules / Plugins / Modifications 8 11-17-2008 02:23 PM
Urgent Help Please! dphibb v3.1 Questions & Support 3 11-08-2007 09:29 AM


All times are GMT -4. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0