Author |
Topic |
rgrund
Junior Member
Austria
206 Posts |
Posted - 19 February 2003 : 02:44:47
|
Hi Mas,
1st Question: That is correct. You just have to link the file proper to inc_sitestat.asp You also need to link to:
<!--#INCLUDE FILE="config.asp"-->
2nd Question: I assume you mean that you want the stat not at vincereonline.it/forum/ but just at vincereonline.it/. If you have linked the inc_sitestat.asp proper then the code sitestat() will show the stat in your main page as well.
Robert |
Internet should be OPENSOURCEd! |
|
|
potatohead
Starting Member
34 Posts |
Posted - 19 February 2003 : 10:12:24
|
The drop down box for selecting the YEAR has only 1 entry, 2002.. When I generate a report I get 0 for all entries, except for users which has the correct numbers of users. Is the year 2002 a problem ?
Also, I am running SQL, not MySQL.
|
|
|
potatohead
Starting Member
34 Posts |
Posted - 19 February 2003 : 10:21:06
|
About my last post, forget it. I opened another browser (Mozilla) and now the site stats are updated and displayed correctly. BTW I use SQL and it works fine. Funky mod ! Well done every one |
|
|
mas
New Member
78 Posts |
Posted - 19 February 2003 : 10:41:55
|
look if j have understand i link <!--#include file="insitestat.asp"--> and <!--#include file="config.asp"-->in all the pages not forum related for increase stat, for show the stat in a page not forum releted i have put this code "sitestat()" in the page where the stat must show? |
Webmaster of VincereOnLine.it |
|
|
mas
New Member
78 Posts |
Posted - 19 February 2003 : 14:17:26
|
i have put this 2 code bottom of my home page <!--#include virtual="/forum/config.asp"--> <!--#include virtual="/forum/inc_sitestat.asp"-->
in a tab i have put this code <% sitestat() %>
an error :
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/forum/inc_sitestat.asp, line 48
advice ? |
Webmaster of VincereOnLine.it |
|
|
scds2003
Starting Member
United Kingdom
34 Posts |
|
rgrund
Junior Member
Austria
206 Posts |
Posted - 20 February 2003 : 12:25:04
|
Mas,
could you post what the line 48 represents. Thanks!
Robert |
Internet should be OPENSOURCEd! |
Edited by - rgrund on 20 February 2003 12:28:37 |
|
|
rgrund
Junior Member
Austria
206 Posts |
Posted - 20 February 2003 : 12:31:40
|
scds2003,
just take out the sitestat() and the include section from your inc_header.asp and delete the lines from the admin_home section. If you have access to the db just delete the table forum_sitestat.
Robert
|
Internet should be OPENSOURCEd! |
|
|
mas
New Member
78 Posts |
Posted - 23 February 2003 : 12:59:31
|
this is the line 48 set
rs = my_conn.execute(strSql & whereSql,adOpenStatic,adCmdTxt) |
Webmaster of VincereOnLine.it |
|
|
rgrund
Junior Member
Austria
206 Posts |
Posted - 24 February 2003 : 00:57:16
|
Hi Mas,
I am czrrently on a business trip but this is simple to solve. There is no connection to the database set up. you will need to add this in the script. You will need to add two lines, which I can not remember exact. You can look it up in the config.asp. It goes like this
Set my_Conn = object("??????") my_conn.open strconn???
Once you have added this then it should work.
Robert
PS: I will post the exact code on Wednesday, unless you have solved it. |
Internet should be OPENSOURCEd! |
|
|
Airborne
Starting Member
38 Posts |
Posted - 24 February 2003 : 12:19:53
|
Getting the following error.
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'sitestat'
/forum/Default.asp, line 1061
Line 1061 of default.asp simple states ----> sitestat()
error can be seen at the following url NCHSFootball error appears on the bottom of the page. |
Edited by - Airborne on 24 February 2003 12:20:26 |
|
|
rgrund
Junior Member
Austria
206 Posts |
Posted - 26 February 2003 : 04:31:09
|
Airborne, is the inc_sitestat.asp as an <!--#iclude in the inc_header? THis is what you need
<!--#INCLUDE FILE="inc_sitestat.asp" -->
Bob |
Internet should be OPENSOURCEd! |
|
|
mas
New Member
78 Posts |
Posted - 26 February 2003 : 13:03:42
|
rground for my problem any suggestion? thk |
Webmaster of VincereOnLine.it |
|
|
rgrund
Junior Member
Austria
206 Posts |
Posted - 27 February 2003 : 07:53:08
|
Mas,
I know that this sounds stupit whenyou read my suggestion, but this works for me. Use the following code in your home page:
<!--#include virtual="/forum/config.asp"--> <% 'We define the db conection again set my_Conn = Server.CreateObject("ADODB.Connection") my_Conn.Open strConnString %> <!--#include virtual="/forum/inc_sitestat.asp"-->
Tell me of the outcome!
Robert |
Internet should be OPENSOURCEd! |
|
|
mas
New Member
78 Posts |
Posted - 27 February 2003 : 15:33:13
|
now no error given but for to appear the stat in home page i put this code <% sitestat() %> in a tab but it don't appear |
Webmaster of VincereOnLine.it |
|
|
Topic |
|