Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Minor bug: Email notification not deleted
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Minor bug: Email notification not deleted

 Post Reply Post Reply
Author
sfd19 View Drop Down
Senior Member
Senior Member


Joined: 20 December 2004
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfd19 Quote  Post ReplyReply Direct Link To This Post Topic: Minor bug: Email notification not deleted
    Posted: 20 June 2005 at 4:47am
I found a minor bug in the code, when deleting a category, a forum, a topic or the last post in a topic then the email notifications for the topic or forum do not get deleted.


Something like this will fix it in delete_category.asp and delete_forum.asp:

strSQL = "DELETE FROM " & strDbTable & "EmailNotify WHERE " & strDbTable & "EmailNotify.Topic_ID="  & lngTopicID & " OR " & strDbTable & "EmailNotify.Forum_ID="  & intForumID & ","
adoCon.Execute(strSQL)

In delete_topic.asp and delete_post.asp use the same code without the check for intForumID.

It is not really a bug but can slow down the forum a little when you have thousands of entries in tblEmailNotify that are not needed anymore, like we had.

Maybe boRg wants to update the code.


Edited by sfd19 - 20 June 2005 at 7:02am
Politics, economy & social issues: StudentsforDemocracy.net
Back to Top
sfd19 View Drop Down
Senior Member
Senior Member


Joined: 20 December 2004
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfd19 Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 6:12am
Also move_post.asp is concerned when the last remaining post in a topic gets moved.
Politics, economy & social issues: StudentsforDemocracy.net
Back to Top
sfd19 View Drop Down
Senior Member
Senior Member


Joined: 20 December 2004
Status: Offline
Points: 263
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfd19 Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2005 at 6:18am
Also polls and poll choices get not deleted when you move the last remaining post of a topic with a poll somwhere else.
Politics, economy & social issues: StudentsforDemocracy.net
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.