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
 referer mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Working
Junior Member

219 Posts

Posted - 16 June 2003 :  17:26:59  Show Profile
I think i'm not doing this right:

Also, if you plan on putting the database outside your www folder, you will have to state where it is
using relative path structure (..\..\path\file.mdb) as it will NOT accept a Full Path statement (C:\path\file.mdb)
For example, if you put your database here: C:\inetpub\data\referer.mdb and your www folder is
C:\inetpub\forum\ then you would have to specify the following line (line 16 in inc_ref_log.asp):

accessdb="..\data\referer.mdb"

I'm trying to make it: accessdb="db\referer.mdb" - as my db is in this folder.

What are the dots for?

Dave.
Senior Member

USA
1037 Posts

Posted - 16 June 2003 :  17:39:35  Show Profile
The ..\ move it up from where you are, so if your forum is wwwroot\forum
and your database is wwwroot\db then you need to use
accessdb="..\db\referer.mdb"
Go to Top of Page

Working
Junior Member

219 Posts

Posted - 17 June 2003 :  10:09:54  Show Profile
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x6ac Thread 0xddc DBC 0x23feff4 Jet'.

/forum/inc_ref_log.asp, line 27


if request.servervariables("http_referer") = "" or instr(lcase(request.servervariables("http_referer")), lcase(mydomain)) >=1 then
refstatus="INVALID REFERER DETECTED! Is either BLANK or LOCAL"
else
refstatus="VALID REFERER DETECTED"
set refrs = server.createobject("ADODB.Recordset")
refcn="DRIVER={Microsoft Access Driver (*.mdb)};"
refcn=refcn & "DBQ=" & server.mappath(accessdb)
refsql = "insert into referer (ip,referer,request,query,agent) "
refsql= refsql & "values('"& refip &"','"& referer &"','"& replace(p_info,"referer;","") &"','"& q_string &"','"& refagent &"')"


[line 27]refrs.open refsql, refcn


end if

set refrs=nothing
set refcn=nothing


This is what i have [accessdb="..\db\referer.mdb"] - maybe need more:
Do i need my users name? [accessdb="..\username\db\referer.mdb"]
Maybe more dots?


Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 17 June 2003 :  10:12:36  Show Profile
See if the answers here help...
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=29449
http://www.dougscode.com/faq/faq_doug1/dbp/dbp.asp?pkey=q1018
Go to Top of Page

Working
Junior Member

219 Posts

Posted - 17 June 2003 :  11:42:20  Show Profile
I'm contacting my isp to see if they can help.
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 17 June 2003 :  11:48:08  Show Profile
Maybe try to use an OLEDB database connection instead of thwe Access 97 Driver?


refcn="Provider=Microsoft.Jet.4.0.OLEDB;"
refcn=refcn & "Data Source=" & server.mappath(accessdb)

Edited by - Dave. on 17 June 2003 11:49:18
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.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07