Page 1 of 1

topic count synchronise

PostPosted: Thu May 18, 2006 11:51 pm
Author: obiku
I have the FIND mod installed, but found out, when i import an rss feed, the topic count on the index isn't synchronised.

Also if i move a topic, the topic count on index isn't synchronised

Only when I edit, or make a new post, the topic count is corrected.

Hope this make sence (bad english <img> )

Re: topic count synchronise

PostPosted: Sun May 21, 2006 1:57 am
Author: obiku
Does nobody else has this problem?? Or is it a known problem and are there people working on it?

Hope to see a reaction.

Re: topic count synchronise

PostPosted: Tue May 23, 2006 11:16 pm
Author: obiku
Solved this one

open: /mods/webmedic/find_input/news_insert.php
find:
Code: Select all
if ( $secure_check && !$flood_attempt ) {     // do the news insert     $msg = retrieve_rss_content();


after add:
Code: Select all
board_stats(); cache_tree(true);


open: modcp.php
find:

Code: Select all
 sync('forum', $forum_id);


after add:

Code: Select all
board_stats(); cache_tree(true);  


find:
Code: Select all
sync('forum', $new_forum_id); sync('forum', $old_forum_id);  


after add:
Code: Select all
board_stats(); cache_tree(true);  



find:
Code: Select all
sync('topic', $new_topic_id); sync('topic', $topic_id); sync('forum', $new_forum_id); sync('forum', $forum_id);



after add:

Code: Select all
board_stats(); cache_tree(true);

PostPosted: Wed May 24, 2006 12:26 am
Author: Adrian Rea
Well done for finding it. I do not know of the FIND MOD unless it is an already integrated one an I am missing it. A pity you had to solve it unaided but I guess no one else had that mod.

A

Re: topic count synchronise

PostPosted: Wed May 24, 2006 2:11 am
Author: obiku
As I said before, the problem occurs also with modcp.php. If you delete or move a topic, the topiccount on index isn't changed.
With the code changes I suggest it is