Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Topic Moved bug? (update: and fix)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aaron S.
Average Member

USA
985 Posts

Posted - 24 May 2002 :  11:28:28  Show Profile  Visit Aaron S.'s Homepage
I searched but could not find this bug posted before.

As Admin I went into a post and edited it (so the Edited text would not show up).

I created the topic under my normal posting name (Aaron).

When I checked my email, I had two emails saying that the Topic had been Moved.

I did not move the topic, and the topicis in the same place it has always been.

Why did I receive these emails?

--Aaron



DOWNLOAD GREAT NEW MODS HERE

Edited by - Aaron S. on 24 May 2002 12:37:17

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 24 May 2002 :  11:35:26  Show Profile  Visit HuwR's Homepage
I think Richard may be looking at this, as it happened to him a couple of days ago.

To be honest I think this bug is recent so may be related to security fixes

Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 May 2002 :  11:45:26  Show Profile  Visit Aaron S.'s Homepage
Thanks for updating me!

--Aaron


DOWNLOAD GREAT NEW MODS HERE

Edited by - Aaron S. on 24 May 2002 11:46:08
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 24 May 2002 :  12:10:36  Show Profile  Visit HuwR's Homepage
quote:

Thanks for updating me!



I think I would wait on Richards confirmation before thanking me

Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 May 2002 :  12:27:22  Show Profile  Visit Aaron S.'s Homepage
It is most likely a bug in post_info... and probably is due to the recent changes.

In order for the email to go out, this code must trigger:

if Forum_ID <> aryForum(1) then
blnTopicMoved = true


aryForum is defined earlier in the code as:

'## Set array to pull out CAT_ID and FORUM_ID from dropdown values in post.asp
aryForum = split(Request.Form("Forum"), "|")


Forum_ID is set earlier in the code as:

Forum_ID = cLng(Request.Form("FORUM_ID"))

I am guessing (cause I am just not that familar with some of this stuff) that Forum_ID is now converting to a number and the value in the aryForum is not a number - so they aren't equaling each other.

Just a guess... I'll try to play around some more.

--Aaron




DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 24 May 2002 :  12:36:54  Show Profile  Visit Aaron S.'s Homepage
I seemed to have fixed this by changing:


if Forum_ID <> aryForum(1) then


to:


if Forum_ID <> CLng(aryForum(1)) then


Again, I don't fully understand the code... so this might not be the only place this change needs to be made (in fact, any other comparisons to the newly patched Clng FORUM_ID, CAT_ID and TOPIC_ID might need this change also).

It works though... I no longer get the Topic Moved email when I edit a topic.


--Aaron


DOWNLOAD GREAT NEW MODS HERE

Edited by - Aaron S. on 24 May 2002 12:40:16
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 May 2002 :  12:44:28  Show Profile
You are probably right on that bug Aaron. I believe Richard noticed it too. What you suggest should fix it.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 May 2002 :  14:28:06  Show Profile
confirmed that this does fix that bug.

I added cLng() around all instances of aryForum(0) and aryForum(1) within the if/then for MethodType = "EditTopic".

fixed on this site.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 04 July 2002 :  00:23:29  Show Profile  Visit dayve's Homepage
I am still getting the emails for Topic Moved when I simply edit the first post ... am I missing anything that is not in this thread?


http://www.nineinchnailz.com
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 04 July 2002 :  00:26:57  Show Profile  Visit dayve's Homepage
well, for good measure I placed cLng around all aryForum(0) and aryForum(1) and it seemed to stop. is there a problem with applying this to all instances??


http://www.nineinchnailz.com
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 04 July 2002 :  00:41:01  Show Profile
No, there shouldn't be.
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.8 seconds. Powered By: Snitz Forums 2000 Version 3.4.07