![]() |
nice work :)
|
Quote:
It seems when I search, or goto 'new posts' it shows on all the threads. |
With this cron, it runs without error but nothing get moved. I do have it set for 2 different forums to move into one. Here's a peek:
Code:
error_reporting(E_ALL & ~E_NOTICE); |
I get this error when I try to run it:
Database error in vBulletin 3.0.6: Invalid SQL: UPDATE thread SET forumid = Where lastpost <= 1110979914 AND forumid = mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Where lastpost <= 1110979914 AND forumid =' at line 3 mysql error number: 1064 Any ideas? Here's a sample of the php file I've edited: // edit the forum id number where the threads have to be moved FROM $fromforuma="153"; // edit the forum id number where the threads have to be moved TO $toforuma="63"; $DB_site->query(" UPDATE " . TABLE_PREFIX . "thread SET forumid = $toforuma Where lastpost <= $movedate AND forumid = $fromforuma "); // edit the forum id number where the threads have to be moved FROM $fromforumb="4"; // edit the forum id number where the threads have to be moved TO $toforumb="63"; $DB_site->query(" UPDATE " . TABLE_PREFIX . "thread SET forumid = $toforumb Where lastpost <= $movedate AND forumid = $fromforumb "); . . . . . . |
Nobody? :(
|
This is almost what I have looking for!
Is it possible for this to move a thread once some one posts in it? Like..a thread is started in one forum (news forum) and once someone replies it then moves to a discussion forum so others can reply? |
Quote:
|
Quote:
|
Quote:
|
PHP Code:
PS: OMG This is the worst script i have ever seen. Do you realize you could also have done this in a 6-line loop? No offence ment, not trying to put you down, but this really brought a smile on my face. (and a headache looking for the wrong spelled var) |
No problem! :)
I'm not sure how you do this loop thing but if you could show me how to get rid of this monster of a script it might solve all my problems. Are sure you I can do it in my situation? Each section I'm moving threads from has its own dead threads section. That's why I thought I had to list them all. Btw, it worked, only there was another mistake like you pointed out a little lower. Works now! :) |
Quote:
|
Is there a way to make this work so that after 24 hours of a thread being posted it is moved, regardless of when the last post in the thread was. So basically it only works off when the thread was started, not replied to, and moves aver 24 hours (I assume setting days to 1 would work ;)).
|
How do you make this move only threads with no replies?
|
Quote:
|
Quote:
This hack was a good idea, but it's very annoying to have to move back the stickies every day this script runs. It works great without the stickies bit. |
OK I am running 3.0.7 The sticky thing dosen't work any suggestions on how to fix it?
Code:
error_reporting(E_ALL & ~E_NOTICE); |
Great! This looks like what I need to archive my 2004 posts to a 2004 Archive forum. I want it to maintain the forum structure and be readable, but not postable. I want them to also be searchable.
This looks like the 2 version is for annual moves which is what I need. But it looks like it is for older versions. Has anyone tried this on version 3.5 yet? And did it leave the stickies? Thanks for your work on this guys. :) |
Quote:
I know it's a long while since this was posted, but... *poke* You alive? |
Crap how do you undo this? I want to put the posts back and can't figure out how.
|
Quote:
PHP Code:
|
3.5.x?
|
would love a port for this into 3.6.4
|
All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|