Results 1 to 13 of 13

Thread: [release vb2.0] Miniscule-hack: split & move thread to a new forum in one go

  1. #1
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    OK, so this came out of a 'discussion' eva2000 and I had about moving posts to a "trashcan" forum, rather than deleting them. The way eva does it, is to split the thread (move the post(s) he wants to 'delete' into a new thread) and then move the new thread to the "trash-can" forum.

    So I figured, why not just do it in one go?

    So here's a microscopic hack to do just that

    1) Open postings.php

    Find:

    PHP Code:
    eval("dooutput(\"".gettemplate("threads_splitthread")."\");"); 
    Immediately ABOVE it put:

    PHP Code:
    $moveforumbits=getmoveforums(); 
    Find:

    PHP Code:
        eval("standarderror(\"".gettemplate("error_cantsplitall")."\");");
      } 
    Immediately BELOW it put:

    PHP Code:
      if ($newforumid!="") {
          
    $threadinfo[forumid] = $newforumid;
      } 

    2) Edit the template threads_splitthread.

    Find:

    Code:
    <input type="submit" class="bginput" name="submit" value="Split Thread" accesskey="s">
    Immediately ABOVE it put:

    Code:
    <select name="newforumid">
    <option value="">Select Destination Forum or Leave As-Is:</option>
    $moveforumbits
    </select><br>

    That's it

    Now, when you split a thread, you can either leave it in the same forum, or select a different destination forum.

    Cheers,

    Bira
    Last edited by bira; Thu 19th Apr '01 at 4:28am.
     

  2. #2
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    oooooh nice.. gonna try this one...
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  3. #3
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    works perfectly bira
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  4. #4
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Thanks partner
     

  5. #5
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    bringing this up
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  6. #6
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    heh, thanks Eva
     

  7. #7
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    no probs..can confirm this hack works on the final version
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  8. #8
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    works in 2.0.2 as well

    this should be in the official code since it's soooooooo handy
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  9. #9
    Former Lead Developer, vBulletin Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier is a jewel in the rough Kier's Avatar
    Join Date
    Sep 2000
    Location
    Reading, UK
    Posts
    8,228
    Blog Entries
    6
    If you approve, Bira, I'll put this into 2.0.3, or whatever the next release is to be.
    Meh. | Twitter: @KierDarby | Web: KierDarby.com
     

  10. #10
    Senior Member bira is on a distinguished road bira's Avatar
    Join Date
    May 2000
    Location
    2nd turn left
    Age
    42
    Posts
    1,501
    Originally posted by Kier
    If you approve, Bira, I'll put this into 2.0.3, or whatever the next release is to be.
    heh, Kier you don't need to ask for my approval. This is such a small hack, I'm ashamed to even call it one

    So the short answer is yes
     

  11. #11
    Senior Member Nicholas Brown is on a distinguished road
    Join Date
    Oct 2000
    Location
    Hull, England
    Posts
    1,084
    do you still get a free copy if a hack goes into an official version?
     

  12. #12
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    Originally posted by bira


    heh, Kier you don't need to ask for my approval. This is such a small hack, I'm ashamed to even call it one

    So the short answer is yes
    me happy
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  13. #13
    vBulletin Team Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke's Avatar
    Join Date
    Aug 2000
    Location
    So. California
    Age
    38
    Posts
    34,676
    Blog Entries
    1
    This is now an official feature in version 2.0.3...

    In order to get support for this, you should upgrade.
    Wayne Luke
    Get started with your own social network.
    Purchase and download vBulletin today.
    vBCodex (Running vB 4.0 Suite) - Take your vBulletin Community to the next level. Modification tips, tricks and support.
     

Similar Threads

  1. split/move post into existing thread?
    By MJM in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 3
    Last Post: Mon 19th Jan '04, 4:08am
  2. Bira's split and move hack add into release
    By eva2000 in forum vBulletin 2 Suggestions and Feedback
    Replies: 3
    Last Post: Tue 31st Jul '01, 11:56am
  3. Split thread? Move posting?
    By Christine Baker in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 5
    Last Post: Sun 22nd Jul '01, 4:04am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts