vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   automating thread moves between forums (https://vborg.vbsupport.ru/showthread.php?t=92542)

Ambie 04-08-2006 07:10 PM

Thank you very much! It works again.:)

chikkoo 09-26-2006 07:40 PM

Does this works in vb 3.6.1?

aciurczak 09-26-2006 08:13 PM

Works fine in 3.6.1. Only glitch I've found (which isn't new to 3.6.1, it is been this way through quite a few versions) is when dealing with the new post flag.

If I read the thread in the news forum, and post a reply, it is marked as read. Then it gets moved over to my discussion forum. When I click on the forum, the thread appears to be read already, but at the forumhome page, there appears to be new posts within the discussion forum. Sometimes this goes away by clicking on that thread again, but sometimes it appears not to clear the new post flag until I hit "mark all posts read" at the bottom of the main page.

I wonder if there is another maintenance function that would be useful in addition to "build forumcounters".

EDIT: At first glance, it looks like "build_thread_counters($threadid)" would be the function to clean up this last (minor) issue, but unfortunately it requiers the $threadid parameter, which we don't touch in the code above; just changing all forum id's at once for certain threads in the THREAD table; not then calling each one of those particular threads to build counters after making the switch.

SCRIPT3R 09-26-2006 08:36 PM

i think that's because your forum cleanup hasn't been run yet.

aciurczak 09-26-2006 08:44 PM

Quote:

Originally Posted by GearTripper
i think that's because your forum cleanup hasn't been run yet.

That's actually a very good suggestion. I'll reorder the cron jobs so the forum cleanup occurs 1 minute after the thread moves and see if this behavior is less noticeable...

Amavisca 11-29-2006 06:19 AM

oh, how do I copy thread to another forum instead of move thread. And also have a condition to move only threads that are 2 weeks old. Thanx a bunch

MiriamS 02-19-2009 02:46 PM

I know this is an old topic, but I want to know if I can use this code on vB 3.8

My next question is, where to put the code? Do I have to make a special page?

Lynne 02-19-2009 04:16 PM

That is a cron job/scheduled task. So, you would make a page with that php in it and put it somewhere (/includes/cron ?) and then run it as a scheduled task. I have no idea if it works for 3.8. I suppose you could try it on a test forum.

MiriamS 02-19-2009 04:24 PM

Thanks Lynne, I will try it on a local test forum. I thought it would be something like this, but now I know it for sure. ;)

gdguide 04-22-2009 04:10 AM

We've tried this code, but it doesn't seem to do anything. Is there anyone that knows how to rewrite it for 3.7.x?


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete