Author |
Topic |
|
maduko
New Member
USA
58 Posts |
Posted - 11 July 2005 : 18:17:06
|
When I try to include the poll on my home page I get this error....
Microsoft VBScript compilation error '800a0411' Name redefined /forum/inc_adovbs.asp, line 14 Const adOpenForwardOnly = 0 ------^
I believe the trouble originates from the AdMentor script we use to rotate our banner ads. If I remove that script the poll will display.
Any suggestions on how to make the two coexist?
|
Places2ride.com
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 12 July 2005 : 04:41:49
|
It looks like you have inc_adovbs.asp included twice on the page your getting that error on either directly or through another include. Based on your "fix" it's more than likely included in one of your AdMentor files.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
maduko
New Member
USA
58 Posts |
Posted - 12 July 2005 : 09:11:41
|
This is the code in the AdMentor include that appears to be the culprit:
Function AdMentor_DBGetBannersInFarm( oConn, nBannerFarm ) Dim oRS Set oRS = CreateObject("ADODB.Recordset") oRS.CursorLocation = adUseClient oRS.MaxRecords = g_AdMentor_MaxRecords oRS.CacheSize = g_AdMentor_MaxRecords oRS.CursorType = adOpenForwardOnly oRS.Open "select bannerid, gifurl, weight, alttext, undertext, xsize, ysize from banner where farmid=" & nBannerFarm & " and weight > 0 and showcount < maximpressions AND clickcount+underclickcount < maxclicks AND validtodate >= " & Internal_AdMentordb_GetDateFunction() & " AND validfromdate <= " & Internal_AdMentordb_GetDateFunction(), oConn Set oRS.ActiveConnection = Nothing Set AdMentor_DBGetBannersInFarm = oRS End Function
|
Places2ride.com
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 12 July 2005 : 09:31:01
|
Nothing in there that would cause the problem. Can you post a link to a *.txt copy of that entire file?
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
jonaldjustine
Starting Member
Philippines
17 Posts |
Posted - 23 July 2005 : 09:25:55
|
I also have a prolem with my poll. When I turn my poll ON and clicks the submit button, it shows the page stating that my configuration was posted but when I returned to the Poll Admin page, the poll was turned OFF so I cannot use my poll. Can you help me with this? |
"Remember that the Master of masters is God!" |
|
|
|
Topic |
|