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
 Archiving Trouble: Only Replies Archived - Events?
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 5

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 December 2002 :  06:09:25  Show Profile  Send ruirib a Yahoo! Message
You're welcome .

Theories to explain this? Obviously the original problem was the value of that poll related field, which Davio's suggested changes surely have corrected. What I cannot explain is why updating counts did not update the archive. Anyway, given Davio's fix to the archiving code I would say that it's not very likely that this will occur again. Unfortunately I cannot rule out a similar situation regarding archived replies count, simply because I don't know what went wrong. Of course, it's not that easy to happen a similar thing when you archive topics, since Davio's fix seems to have sort that out...


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 04 January 2003 :  08:36:06  Show Profile  Visit richfed's Homepage
quote:
Originally posted by ruirib

Fixed. Boy, do I love Table Editor... A couple Access queries and all sorted out now.



Rui, do you remember what you did here? If so, please let me know. The problem has sort of resurfaced, in this archived forum only: http://www.mohicanpress.com/messageboard/forum.asp?ARCHIVE=true&FORUM_ID=15 Note no replies shown, though in most cases there are!

I did an archive in another forum recently - all went well, I thought - no errors - but just noticed this. This forum, btw, is the only one affected ... other archived forums are fine!

Thanks ...

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 January 2003 :  09:06:40  Show Profile  Send ruirib a Yahoo! Message
Hi Rich,

I remember something about two queries and a temporary table being created to fix that. Email me the access data again, as well as the URL to the forum and to Table Editor. I guess I will post the queries this time, so that if the issues arises again you'll know what to do.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 January 2003 :  19:48:47  Show Profile  Send ruirib a Yahoo! Message
Ok Rich, here is how I fixed it:

First I created a make table query. This make table query determines the number of replies for each topic, for each of the forums (in this case, just FORUM_ID=15):


SELECT FORUM_A_REPLY.TOPIC_ID, Count(FORUM_A_REPLY.REPLY_ID) AS CNT_REPLY INTO TempReply
FROM FORUM_A_REPLY
WHERE FORUM_A_REPLY.FORUM_ID=15
GROUP BY FORUM_A_REPLY.TOPIC_ID;


I do this in order to create an update query, linking the A_TOPICS table with this TempReply table, so that for each topic I can use the associated Reply count (CNT_REPLY). Here is the update query:


UPDATE FORUM_A_TOPICS INNER JOIN TempReply ON FORUM_A_TOPICS.TOPIC_ID = TempReply.TOPIC_ID 
SET FORUM_A_TOPICS.T_REPLIES = TempReply.CNT_REPLY;


I executed the queries using TableEditor, in the order I'm presenting them now to you. That fixes the problem.
If you wanted to do this for other archived forums, you'd just need to remove or change the criteria for the first query.

I forgot to remove the TempReply table. Please do it, since there is no purpose in keeping it.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 05 January 2003 :  06:52:09  Show Profile  Visit richfed's Homepage
Thanks, Rui ... this ought to help for the next great adventure! :)

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 05 January 2003 :  06:57:47  Show Profile  Send ruirib a Yahoo! Message
You're welcome .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page
 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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07