Announcement

Collapse
No announcement yet.

MassMove Locked Topics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MassMove Locked Topics

    little hack to move your locked topics to an archive forum or whatever.

  • #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>";
    }
    must be

    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");
    }
    Streicher

    Comment


    • #3
      whats the deal?

      with your post going way off the board?

      seems like a pretty big bug, that has been overlooked?

      Comment


      • #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.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X