PDA

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


bira
19 Apr 2001, 08:17
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 :D

1) Open postings.php

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Immediately ABOVE it put:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Immediately BELOW it put:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




2) Edit the template threads_splitthread.

Find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Immediately ABOVE it put:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




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

eva2000
19 Apr 2001, 08:25
oooooh nice.. gonna try this one...

eva2000
19 Apr 2001, 08:39
works perfectly bira :D

bira
19 Apr 2001, 08:43
Thanks partner ;)

eva2000
22 May 2001, 03:09
bringing this up :D

bira
23 May 2001, 00:12
heh, thanks Eva :)

eva2000
24 May 2001, 00:47
no probs..can confirm this hack works on the final version :D

eva2000
31 Jul 2001, 09:38
works in 2.0.2 as well :D

this should be in the official code since it's soooooooo handy ;)

Kier
31 Jul 2001, 09:56
If you approve, Bira, I'll put this into 2.0.3, or whatever the next release is to be.

bira
31 Jul 2001, 12:19
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 ;)

Nicholas Brown
31 Jul 2001, 15:27
do you still get a free copy if a hack goes into an official version? ;)

eva2000
31 Jul 2001, 21:15
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 :D

Wayne Luke
01 Aug 2001, 09:39
This is now an official feature in version 2.0.3...

In order to get support for this, you should upgrade.