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
 Link Mod v3 beta 2 - Rating Error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 21 March 2007 :  10:20:22  Show Profile
Having succesfully installed the Link Mod v3 beta 2 on forum version 06 It all appears to run okay, except when clicking [Rate this Link] the following error appears:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'strPostDate'
/forum/pop_links.asp, line 188

line 188 is coloured in red below
strPostDate = ChkDate(rsLink("POST_DATE")," ", true)
strLastUpdate = ChkDate(rsLink("LAST_UPDATE")," ",true)
If strLastUpdate > strPostDate Then
dateSince = DateDiff("d", Date(), strLastUpdate)+7
Else
dateSince=DateDiff("d", Date(), strPostDate)+7
End If
Response.Write
All the database updates were successfull, knowing I have just installed the mod today and checking out a link inserted today, does the datediff need a date delay or is there another problem.
Any clues would be appreciated
andy

Edited by - Andy Humm on 21 March 2007 15:06:09

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 21 March 2007 :  11:15:11  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Looks like you have some Today/Yesterday MOD installed, which is probably the reason for this error - the date gets passed to the DateDiff function in a invalid format.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 21 March 2007 :  11:39:32  Show Profile
I do have the Today/Yesterday MOD installed with looks at the date and if the last post was today or yesterday it displays Today/Yesterday instead of the full date.
We had an issue on other files ie Topic.asp to get this to work and the following was the solution:

dim strCloseFont
if instr("admin_accounts_pending.asp,admin_config_datetime.asp,pop_printer_friendly.asp",mid(strScriptName,instrrev(strScriptName,"/")+1))=0 then
select case left(fDate,8)
case left(DateToStr(strForumTimeAdjust),8)
chkDate="<font color=""colour"">Today"
strCloseFont="</font>"
case left(DateToStr(dateadd("d",-1,strForumTimeAdjust)),8)
chkDate="<font color=""colour"">Yesterday"
strCloseFont="</font>"
end select
end if
if fTime then chkDate=chkDate&separator&chkTime(fDate)
chkDate=chkDate&strCloseFont

This was discussed on thread Is there away of adjusting the code on strPostDate to accommodate the today/yesterday change
Or simply could you suggest where I could remove the rating link in the links page..
rgds andy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 March 2007 :  04:17:06  Show Profile
In the updated code I provided you with, that would then look like this:
dim strCloseFont
if instr("admin_accounts_pending.asp,admin_config_datetime.asp,pop_links.asp,pop_printer_friendly.asp",mid(strScriptName,instrrev(strScriptName,"/")+1))=0 then
	select case left(fDate,8)
		case left(DateToStr(strForumTimeAdjust),8)
			chkDate="<font color=""colour"">Today"
			strCloseFont="</font>"
		case left(DateToStr(dateadd("d",-1,strForumTimeAdjust)),8)
			chkDate="<font color=""colour"">Yesterday"
			strCloseFont="</font>"
	end select
end if
if fTime then chkDate=chkDate&separator&chkTime(fDate)
chkDate=chkDate&strCloseFont

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.”
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 25 March 2007 :  06:04:06  Show Profile
Shaggy thanks for your provided amendment
rgds andy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 26 March 2007 :  04:19:15  Show Profile
You're welcome.


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.”
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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07