The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
little hack to move your locked topics to an archive forum or whatever.
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Nice hack, but you have a little error in it:
Code:
if ($HTTP_POST_VARS['action']=="movedate") {
$DB_site->query("UPDATE thread SET forumid=$destforumid WHERE $forumcheck thread.lastpost<=$datecut");
} elseif ($HTTP_POST_VARS['action']=="movelockdate") {
$DB_site->query("UPDATE thread SET forumid=$destforumid WHERE open='0'AND $forumcheck thread.lastpost<=$datecut");
}
echo "<p>Posts moved successfully! It is recommend that you <a href=\"misc.php?s=$session[sessionhash]\">update counters</a> now.</p>";
}
Code:
if ($HTTP_POST_VARS['action']=="movedate") {
$DB_site->query("UPDATE thread SET forumid=$destforumid WHERE $forumcheck thread.lastpost<=$datecut");
} elseif ($HTTP_POST_VARS['action']=="movelockdate") {
$DB_site->query("UPDATE thread SET forumid=$destforumid WHERE open='0'AND $forumcheck thread.lastpost<=$datecut");
}
|
|
#3
|
|||
|
|||
|
with your post going way off the board?
seems like a pretty big bug, that has been overlooked? |
|
#4
|
||||
|
||||
|
That's not a bug. This is how it's supposed to work when someone uses the [code] or [php] tags. This is to make sure the code is duplicated accurately, without any line feeds, etc.
|
![]() |
|
|