topic count synchronise

Support for IntegraMOD 140

Moderator: Integra Moderator

topic count synchronise

PostAuthor: obiku » Thu May 18, 2006 11:51 pm

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> )
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: topic count synchronise

PostAuthor: obiku » Sun May 21, 2006 1:57 am

Does nobody else has this problem?? Or is it a known problem and are there people working on it?

Hope to see a reaction.
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

Re: topic count synchronise

PostAuthor: obiku » Tue May 23, 2006 11:16 pm

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);
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8

PostAuthor: Adrian Rea » Wed May 24, 2006 12:26 am

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
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

Re: topic count synchronise

PostAuthor: obiku » Wed May 24, 2006 2:11 am

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
Last edited by obiku on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
http://www.familie-smit.nl
http://portfolio.familie-smit.nl

Do not tsunami my inbox... instead use the forums...
Hard work may not kill me, but why take a chance?

[hr]
User avatar
obiku
Dev Team
Dev Team
 
Posts: 218
Likes: 0 post
Liked in: 0 post
Joined: Tue May 02, 2006 11:22 am
Cash on hand: 0.00
Location: level 8


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]