Author |
Topic |
Kagan
Starting Member
33 Posts |
Posted - 11 August 2003 : 10:50:29
|
I am trying to implement Site Statistics but I am encountering an error. Two actually. The admin page does not show a place to administrate the counter. If I try to goto my forum I encounter this error.
Microsoft VBScript compilation error '800a0400'
Expected statement
/Forum/default.asp, line 997
" </tr>" & vbNewline
I tried repasting code in default.asp but nothing has changed. Just a note: I did do the mod setup to create the table if that helps. Any help would be appreciated! Oh and running current version of forum. ^
|
|
Beano_ie
Junior Member
Ireland
328 Posts |
Posted - 11 August 2003 : 11:57:02
|
Can you put a link to a text version of your default? |
Steve Drogheda, Ireland @ www.droghedatown.com |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 11 August 2003 : 12:23:30
|
I'm guessing the previous line did not end in & _ to continue the last Response.Write over into the next line... |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
Lococoin
Starting Member
38 Posts |
Posted - 11 August 2003 : 13:13:05
|
you pasted in " </tr>" & vbNewline twice..go look at the line of code, above it you will see the exact same line. remove one of them and it will work. |
|
|
Kagan
Starting Member
33 Posts |
Posted - 11 August 2003 : 14:30:23
|
LocoCoin said
"you pasted in " </tr>" & vbNewline twice..go look at the line of code, above it you will see the exact same line. remove one of them and it will work."
That did get my forum back up and running! New problem. At the bottom of the default page it now shows a new error. Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/Forum/inc_sitestat.asp, line 367 |
|
|
Kagan
Starting Member
33 Posts |
|
gelliott
Junior Member
USA
268 Posts |
Posted - 11 August 2003 : 14:47:13
|
The error displays in the default.asp page, but as the error message indicates, the real problem is in one of the files default.asp references. Thus, we need you to post the link to a text version of inc_sitestat.asp.
(edited for typos) |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
Edited by - gelliott on 11 August 2003 16:15:55 |
|
|
Kagan
Starting Member
33 Posts |
|
gelliott
Junior Member
USA
268 Posts |
Posted - 11 August 2003 : 20:07:40
|
This version of the statistics MOD writes data to the server using a FileSystemObject. You must assign write permissions to the folder you will write to for this to work. Your error is occurring at the create-the-file point, so have you set up the appropriate permissions?
I'm not familiar with this mod (I use a different statistics mod), so if that's not it I can't help you much... Perhaps someone else will chime in... |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
Kagan
Starting Member
33 Posts |
Posted - 11 August 2003 : 20:18:00
|
Care to tell me what one you use? I will gladly switch. I am past the point of a little frustrated. :) |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 13 August 2003 : 13:02:47
|
I searched for it when I made the past post, but couldn't find it on Snitz Bitz or anywhere else in this site, although I found several posts asking for help with it. I believe another user emailed it directly to me at my request. It's quite simple and elegant - just two files to upload, and I decided to make a change to inc_header.asp to make it a menu choice for admins. I'll upload it somewhere and post back here, but it may be a day or so - I can't access my ftp from work, and I'll be working late for the next several days (client presentation looms in the near future)... |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 13 August 2003 : 13:14:38
|
OK, never mind, I just found it. It's by a user named alex042, although it was originally penned (keyed?) by HuwR and others...
Topic: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=34471 Download: http://www.picme.net/downloads/statistics_addon_refreshed_v111.zip
Alex042, would you mind if we posted this to SnitzBitz to save hunting for it again? The link at the topic is broken, although the files are still on the server (for now)...
As far as the changes I made to inc_header.asp, look for "sForumNavigation" subroutine, which ends around line 508 in a fresh Snitz install. Just before the "end sub" line on line 508, I inserted the following:'########### GREG's STATs LINK ###########
if mLev = 4 then
Response.Write " |" & vbNewline & _
" <a href=""member_stats.asp""" & dWStatus("Site Statistics") & " tabindex=""-1"">Site Statistics</a>" & vbNewLine
end if
'########### GREG's STATs LINK ###########
Good luck! |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 13 August 2003 : 13:18:06
|
OK, one more time - nevermind - Alex042 hasn't visited the Snitz Forums site in several months - I'll post it to SnitzBitz with my inc_header data for future reference...
Posted for posterity at: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=148 |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
Edited by - gelliott on 13 August 2003 13:28:40 |
|
|
Kagan
Starting Member
33 Posts |
Posted - 13 August 2003 : 15:50:02
|
Thanks All! You guys rock with your quick and willing help! |
|
|
Kagan
Starting Member
33 Posts |
Posted - 13 August 2003 : 19:22:53
|
Gelliot-It worked like a charm and was completely idiot proof. Perfect for a guy like me! :) |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 14 August 2003 : 12:16:55
|
Glad I could help |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
Topic |
|