Here's the code to look for. Near the middle are the lines to comment out (just add an apostrophe at the front) as well as the "End If" near the bottom.
- Code: Select all
doc.WriteLine "Function showimage(id,dir)"
doc.WriteLine " On Error Resume Next"
doc.WriteLine " Set SDB = CreateObject(""SongsDB.SDBApplication"")"
doc.WriteLine " If Not (SDB Is Nothing) Then"
doc.WriteLine " Set data = SDB.Objects(""BAFData""&id)"
doc.WriteLine " If Not (data Is Nothing) Then"
If Images = 1 Then
doc.WriteLine " Dim div : Set div = document.getElementById(""img""&id)"
Else
doc.WriteLine " Dim div : Set div = document.getElementById(""img""&id&""-1"")"
End If
doc.WriteLine " If Not (div Is Nothing) Then"
doc.WriteLine " Call div.setAttribute(""found"","""")"
If Images = 1 Then
doc.WriteLine " Dim div2 : Set div2 = document.getElementById(""dim""&id)"
Else
doc.WriteLine " Dim div2 : Set div2 = document.getElementById(""dim""&id&""-1"")"
End If
doc.WriteLine " If Not (div2 Is Nothing) Then"
doc.WriteLine " data.Item(""result"") = 1"
doc.WriteLine " Dim cur : cur = Int(data.Item(""result""))+dir"
doc.WriteLine " Dim tot : tot = Int(data.Item(""count""))"
'doc.WriteLine " If (cur < 1) Or (cur > tot) Then"
'doc.WriteLine " div.innerHTML = ""[Nooo results!!!] cur="" & cur"
'If Images = 1 Then
' doc.WriteLine " div2.innerHTML = """""
'Else
' doc.WriteLine " div2.innerHTML = "" """
'End If
'doc.WriteLine " Else"[/color]
doc.WriteLine " Dim src : src = data.Item(""img""&cur)"
doc.WriteLine " data.Item(""image"") = cur"
doc.WriteLine " data.Item(""source"") = src"
doc.WriteLine " If dir = 1 Then"
doc.WriteLine " data.Item(""previous"") = 0"
doc.WriteLine " Else"
doc.WriteLine " data.Item(""previous"") = 1"
doc.WriteLine " End If"
doc.WriteLine " Dim str : str = ""<img src='""&src&""' title='""&src&""' count='""&cur&"" of ""&tot&""'"""
If ini.BoolValue("BatchArtFinder","SetSize") Then
ImageSize = """ width='"&ini.IntValue("BatchArtFinder","SetW")&"px' height='"&ini.IntValue("BatchArtFinder","SetH")&"px'"""
doc.WriteLine " str = str&"&ImageSize
End If
doc.WriteLine " str = str&"" count='' cross='0' /></a>"""
If Images = 1 Then
doc.WriteLine " div.innerHTML = ""<a href=""""javascript://"""">""&str"
Else
doc.WriteLine " div.innerHTML = ""<a href=""""javascript://"""" onclick=""""highlight('""&div.id&""')"""">""&str"
End If
doc.WriteLine " Call div2.setAttribute(""accept"","""")"
doc.WriteLine " div2.innerHTML = ""Image: ""&cur&"" of ""&tot&""<br />Loading..."""
'doc.WriteLine " End If"
doc.WriteLine " End If"
doc.WriteLine " End If"
doc.WriteLine " End If"
doc.WriteLine " End If"
doc.WriteLine " On Error GoTo 0"
doc.WriteLine "End Function"


