Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - online/offline status
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

online/offline status

 Post Reply Post Reply Page  12>
Author
randomind View Drop Down
Newbie
Newbie


Joined: 14 November 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote randomind Quote  Post ReplyReply Direct Link To This Post Topic: online/offline status
    Posted: 15 November 2003 at 5:45pm

Can u add the online/offline status in the post field in the next version???

The patches for this don't work with version 7.51a

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2003 at 8:01am

heres my code

   response.write ("<br/>Status : ")

Dim rsUserOnline

Set rsUserOnline = Server.CreateObject("ADODB.Recordset")

'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT tblActiveUser.* FROM tblActiveUser WHERE tblActiveUser.Author_ID=" & lngUserID

rsUserOnline.Open strSQL, strCon
 

If rsUserOnline.EOF Then
 Response.Write "Offline"

ElseIf CBool(rsUserOnline("Hide")) = True  Then Response.Write "Offline"
Else
 Response.Write "Online"
End If

i have added it on line 727 of forum posts

just cut and paste ... you can see a working demo on my site

Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 6:39am

Hey Dj air,

I added your MOD but it shows me as off line? Did I do something wrong?

Wayne

Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 6:58am
It works fine on my site Wayne.

Edited by Badaboem
Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 7:08am
I wonder why its not working for me? I copied it just as it is here.
I know that is a strech but got any ideas?

Wayne
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 7:35am

have you got a demo so i can see ?

right i copyed this off of my version

 response.write ("<br/>Status : ")

Dim rsUserOnline

Set rsUserOnline = Server.CreateObject("ADODB.Recordset")

'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT tblActiveUser.Hide FROM tblActiveUser WHERE tblActiveUser.Author_ID=" & lngUserID

rsUserOnline.Open strSQL, strCon
 

If rsUserOnline.EOF Then
 Response.Write "Offline"

ElseIf CBool(rsUserOnline("Hide")) = True  Then Response.Write "Offline"
Else
 Response.Write "Online"
End If

i have just gone to my site and checked to see if its working and it is

so copy the above and see if it works it shouls

Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 7:49am

Sure http://forums.dhs-alumni.com

Username: test
Password: test

Back to Top
wfusco View Drop Down
Groupie
Groupie


Joined: 12 September 2003
Location: United States
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote wfusco Quote  Post ReplyReply Direct Link To This Post Posted: 07 December 2003 at 9:27am

 

I see you vistited, any ideas?

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.