![]() |
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) |
All times are GMT. The time now is 01:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|