German Website
Home Features Screenshots Videos Downloads Shop Knowledgebase

Search Knowledgebase:


Notification if there was no update for more than 30 days

User question:

> I would like to receive notifications if there has not been an

> update on a webpage for a specified number of days.

> Can this option be presently set?


There is no built-in option, but you can do this via the plugin system.


With the example below, WebSite-Watcher will alert an update if the last change is more than 30 days ago.



Sub Wsw_BeforeCheck()
   ' Ensure that the page is always checked by content (avoid possible optimizations)
   Bookmark_SetProperty("checkmethod", "content")
End Sub
Sub Wsw_CompareVersions(ByRef $sMemWeb, ByRef $sMemLocal, ByRef $sStatusMessage, ByRef $iStatusCode)
   Dim $sLastChangeDate, $nDayDiff
   ' Get the last change date
   $sLastChangeDate = Bookmark_GetProperty("last_change_date")
   ' Calculate the differences in days
   $nDayDiff = DateDiff(Now, $sLastChangeDate, "d")
   ' Alert if the last change is more than 30 days ago
   If $nDayDiff > 30 Then
      $sStatusMessage = "Last change " + CStr($nDayDiff) + " ago"
      $iStatusCode = 1
   End If
End Sub



To enter this plugin:


1.Open the bookmark properties
2.Select the Advanced tab
3.Select "Plugin" on the left side
4.Click the button "Create Private Plugin"
5.Enter the plugin code
6.Close and check the bookmark