Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Active Users Mod and Show User Browser etc
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

leatherlips
Senior Member

USA
1838 Posts

Posted - 01 August 2009 :  07:54:34  Show Profile  Visit leatherlips's Homepage
I have this added in my active_users.asp page:

ElseIf instr(UAgent, "MSIE 8") Then
      strBrowser = "Microsoft IE 8"

Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 01 August 2009 08:24:35
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 August 2009 :  10:27:53  Show Profile


For MS IE 8:

	ElseIf (instr(strUserAgent, "MSIE 8.0") or mid(strUserAgent,26,6)="MSIE 8" or right(strUserAgent, 12) = "MS-RTC LM 8") Then
		strBrowser = "Microsoft IE 8"


For latest Firefox:

	ElseIf (instr(strUserAgent, "Firefox") AND instr(strUserAgent, "Gecko")) or (mid(strUserAgent,len(strUserAgent)-13,7)="FireFox") Then
		strBrowser = "Mozilla Firefox "
		for x = 1 to len(strUserAgent)-8
			if mid(strUserAgent,x,8)="Firefox/" then
				strBrowser = "Firefox " & mid(strUserAgent,x+8,3)
			end if
		next

Edited by - Carefree on 01 August 2009 18:14:42
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 01 August 2009 :  18:18:59  Show Profile
thank you LL & CF
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 01 August 2009 :  21:59:54  Show Profile
You're welcome.
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 29 October 2009 :  01:57:49  Show Profile
We see Windows 7 is being utilised on latest issue computers, does any know the code for showing users with this new platform? Thank you in advance
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 October 2009 :  02:30:28  Show Profile
This would be for IE8 on WIndows 7:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)

Firefox 3.5.4 on Windows 7:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729)

So Windows 7 is identified as Windows NT 6.1 in the user agent.

Support Snitz Forums

Edited by - Davio on 29 October 2009 02:38:51
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 29 October 2009 :  12:04:52  Show Profile
I only changed my active_users.asp file yesterday when I got the new full Windows 7.
quote:
Originally posted by Andy Humm

We see Windows 7 is being utilised on latest issue computers, does any know the code for showing users with this new platform? Thank you in advance



I changed the code below:

  elseif instr(ua, "NT 5.1") or instr(ua, "Windows XP") then
    strSystem = "<span class=""spnMessageText""><a target=""_blank"" href=""http://www.microsoft.com/windowsxp/"">Windows XP</a>"

I added below that the following to include Vista and Windows 7 so it looked like:

  elseif instr(ua, "NT 5.1") or instr(ua, "Windows XP") then
    strSystem = "<span class=""spnMessageText""><a target=""_blank"" href=""http://www.microsoft.com/windowsxp/"">Windows XP</a>"
  elseif instr(ua, "NT 6.0") or instr(ua, "Windows Vista") then
    strSystem = "<span class=""spnMessageText""><a target=""_blank"" href=""http://www.microsoft.com/windowsvista/"">Windows Vista</a>"
  elseif instr(ua, "NT 6.1") or instr(ua, "Windows 7") then
    strSystem = "<span class=""spnMessageText""><a target=""_blank"" href=""http://www.microsoft.com/windows7/"">Windows 7</a>"


Simular to the Browser code, I added the following:

    elseif instr(ua, "MSIE 8.") then
      strBrowser = "<span class=""spnMessageText""><a target=""_blank"" href=""http://www.microsoft.com/windows/ie/"">Microsoft IE 8.x</a>"


I hope that helps.

Cheers,

David Greening
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 29 October 2009 :  17:20:32  Show Profile
Thank you David...
rgds andy
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 17 November 2009 :  06:26:40  Show Profile  Send StephenD a Yahoo! Message
Could anyone share a working active_users.asp page with the changes detailed in this post please.
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 17 November 2009 :  13:38:00  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
if some wants ...

fell free to add this ones

that's the entire User-Agent ID's

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 17 November 2009 :  13:45:12  Show Profile  Visit Etymon's Homepage
Hey, thanks, Bruno! Wow!
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 17 November 2009 :  18:33:13  Show Profile
quote:
Originally posted by StephenD

Could anyone share a working active_users.asp page with the changes detailed in this post please.



Here
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 19 November 2009 :  04:32:03  Show Profile  Send StephenD a Yahoo! Message
Many thanks!
Go to Top of Page

KC
Junior Member

USA
152 Posts

Posted - 23 November 2009 :  12:07:52  Show Profile  Visit KC's Homepage
Since you are messing with Active-Users.asp anyway, you can throw in the added Active Users in the Last 24 Hours code I wrote.



Just download or open the http://vales.com/other/active_users24.txt file.
Edit the top line to point to your to your Snitz Forum DB.
Then copy/paste the entire text here in active_users.asp at about line 65:

.
.
.
if bolAUPage then
'do nothing
else
response.redirect "default.asp"
end if

24 hour code here

'## Ls3k - Before we can do anything we need to get rid of those slackers who have left ;)
deleteInactiveUsers()
.
.
.

The display text is in easy to modify html so do whatever you want with color and size wise easy.


Owner of vales.com and Elite Computers.

Edited by - KC on 23 November 2009 12:09:28
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 14 December 2009 :  11:59:09  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
Guys, remember to add Google Chrome for Mac

my HTTP_USER_AGENT

says:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.30 Safari/532.5


fell free to update.

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07