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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 adding statistics to another page
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 17 April 2003 :  14:44:26  Show Profile  Visit mykel_suthertun's Homepage
I would like to add statistics to another page on my site. Right now I just have
<%
Response.Write	"There are " & Posts & " Posts in " & Topics & " Topics and " & Users & " Users" & vbNewline
%>
What else do I need to add to get it to say that on my page?

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com

Edited by - mykel_suthertun on 27 April 2003 13:13:11

puzo
Junior Member

Israel
417 Posts

Posted - 23 April 2003 :  08:23:12  Show Profile  Visit puzo's Homepage
stop bumping this topic


Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 23 April 2003 :  09:10:25  Show Profile  Visit mykel_suthertun's Homepage
Sorry, but I can't seem to find any help anywhere else and my search for an answer only resulted in a huge number of unrelated queries. I'm sure this has been answered before, so if anyone has a link to a topic or something I'd appreciate it.

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 23 April 2003 :  09:17:19  Show Profile
In default.asp there is a sub called WriteStatistics(), you could copy that sub into the file you wish the statistics to show up, then where ever you want them to show use this code...

<%
Call WriteStatistics()
%>
Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 23 April 2003 :  11:50:26  Show Profile  Visit mykel_suthertun's Homepage
Thanks Hamlin! I did that though, and I got this error:
Microsoft VBScript runtime error '800a000d' 

Type mismatch: 'TopSQL' 

/Sp03SouthertonFinal/welcome.asp, line 21

Would it matter that I have my forum in an Iframe? (here's my site: http://courses.westshore.cc.mi.us/Sp03SouthertonFinal/)

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 23 April 2003 :  12:17:12  Show Profile  Visit Kat's Homepage
quote:
Originally posted by puzo

stop bumping this topic



Why? It is better than starting a new one each time.

KatsKorner

Installation Help | Snitz Mods | Forum Hosting
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 23 April 2003 :  12:20:08  Show Profile
TopSQL is another function, you will need to copy it into your new file along with the WriteStatistics() sub, however I can't seem to find it yet, so I can't tell you where to copy it from.
Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 23 April 2003 :  14:16:37  Show Profile  Visit mykel_suthertun's Homepage
Okay, thanks. I'll snoop around

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 23 April 2003 :  14:23:41  Show Profile  Visit mykel_suthertun's Homepage
hmmm....
well, i found it in inc_func_common.asp, but after i added it i got another error:
ADODB.Recordset error '800a0bb9' 

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. 

/Sp03SouthertonFinal/welcome.asp, line 42
any idea what's causing this?

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 23 April 2003 :  15:29:28  Show Profile  Visit mykel_suthertun's Homepage
I just realized that I have Show Detailed Statistics set to off on my forum. Is this what's giving me the error?

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07