PDA

View Full Version : Moderators Functions - Archive Thread v1.2


Snake
26 Jan 2006, 00:15
Archive Thread v1.2
by Snake
http://www.vbulletin.org
Author: Snake (http://www.vbulletin.org/forum/member.php?u=80490)
Compatibility: vBulletin 3.6.x and 3.5.x
Mod Version: v1.2
Release: 26. Jan 2006
Last Updated: 22. Dec 2006
Category: Moderation View Panel
Demo: Metal Gear Forums (http://www.metalgearforums.com/)
Support: http://www.vbulletin.org/forum/showthread.php?t=106327
Description: This will add an option under Thread Tools (see screenshot) to archive a thread to a designated forum. Main advantage of this it does not require for someone to have access to the forum. It also logs the action (both moderator log and thread log).

Bug fixes for this release

Please note that these bug fixes are only relevant to update from the last release.
Hooray, there are no bugs to fix at this moment!Support

If you have any problems, questions or trouble installing my mod that are not covered in this file, please post them at the official support thread located at here (http://www.vbulletin.org/forum/showthread.php?t=106327) in the appropriate forum. I will be more than happy to help in any way we can if the request for help is made there. Anyone trying to contact me via e-mail, private message, or any other means will be ignored.

Requirements

The exact requirements will depend on many factors, your estimated board traffic being one.

- vBulletin v3.5.x (or higher)
- PHP 4.0.3 (or higher)
- MySQL 3.22 (or higher)

Server Requirements
You must have a web server that has PHP 4.1.0 (or better) and mySQL 3.23 (or better) installed. If you are unsure whether your server has these programs installed, please check with your web host now. If you are capable, you can always download PHP and download mySQL and install it yourself. If your web host does not support PHP or mySQL, consider hosting your entire web site or forums with Jelsoft Enterprises Ltd services. vBulletin works best on an Apache server, and is Apache 1 and Apache 2 savvy.

General Requirements
You do not need a new SQL database as vBulletin supports table prefixes to prevent tables being overwritten. You will also need the SQL username and SQL password for a SQL user that has permission to "CREATE", "DROP" and "ALTER" tables. You will need about 2MB of free web space and roughly 3MB of SQL database space to allow installation and a moderate sized community. If you are unsure on any of these points, please ask your web host before proceeding.

Modification History

Current Version: 1.2
1.2
Fixed a couple of bugs and added the ability of archiving threads in inline moderation (such as forumdisplay, moderation_threads, search_results, etc).
1.1
Switched to a product file.
1.0
First initial release of modification.

Donations

All donations great or small are appreciated to the greatest extent, whether it's for the modification itself or just a little incentive for myself. If you would like to donate then you can do so via PayPal.

My email to send to is: paypal@metalgearforums.com.

Thanks and enjoy,
-Snake
www.metalgearforums.com (http://www.metalgearforums.com)

The Chief
26 Jan 2006, 00:17
this looks cool, thanks for this, ill try this for sure later on :)

Daniel
26 Jan 2006, 00:40
If it contains file edits, it's not an extension, it should go under Code Modifications.

Nice though, none the less.

nexialys
26 Jan 2006, 00:47
this is good... would be even beter if the designated forum is a per-forum setting... so we can have a part of the forums that send the archived threads to a specific forum, and another part to another... would be like moderating or moving to moderators forums (big communities need... lol)

Andreas
09 Feb 2006, 18:07
Moved to Code Modifications

Also, $debug = 1; does not work in vBulletin 3.5 :)

Snake
14 Mar 2006, 14:33
v1.1 is now released! Enjoy! :)

natralis
23 Mar 2006, 15:01
Where can we set up the destination forum? Can't find the option anywhere in admincp?

Tyegurl
27 Mar 2006, 03:55
message posting and editing options in vBulletin options

Snake
28 Mar 2006, 13:44
Admin CP -> vBulletin Options -> Message Posting and Editing Options

Smiry Kin's
02 Apr 2006, 07:00
cheers dude, would be usfull to have the achive code, on forumdisplay thing, i think, as if you want to move multi threads, it will take some time :(

Snake
13 Apr 2006, 15:44
Umm I'm not sure what you're trying to say here.

DrainBamaged
14 Apr 2006, 23:44
Never mind. :P

Snake
15 Apr 2006, 20:09
Ugh okay I guess.

Nathan2006
19 Apr 2006, 09:16
Thank you Josh:cool:

Install

Snake
21 Apr 2006, 20:28
You're quite welcome. Please lemme know if you have any future suggestions on your mind. :)

ianskate
11 Jul 2006, 05:05
When clicking the link, I get these errors:

Warning: arsort() expects parameter 1 to be array, null given in /includes/class_bbcode.php(149) : eval()'d code on line 5

Warning: Invalid argument supplied for foreach() in /includes/class_bbcode.php(149) : eval()'d code on line 7

It still moves the thread... however, it would be nice to suppress the errors... or at least solve them. :) (Note: I'm using 3.5.3)


Any ideas?

egyptsons
19 Jul 2006, 22:57
good
I will try it

letsjoy
26 Jul 2006, 07:18
sounds good

SportsZone
31 Aug 2006, 14:23
Nice hack - works fine on 3.6!

is there any way the option can say "Trash thread" instead of "archive thread" in thread tools?

Cheers

o0Hubba0o
06 Sep 2006, 21:40
Nice hack - works fine on 3.6!

is there any way the option can say "Trash thread" instead of "archive thread" in thread tools?

Cheers
Change the phrase, in admincp go to Language/phrases, then search in phrases under global for "archive_thread", click variable name only. Then you can put what you want in it.

SportsZone
10 Sep 2006, 12:08
Change the phrase, in admincp go to Language/phrases, then search in phrases under global for "archive_thread", click variable name only. Then you can put what you want in it.

Excellent thanks :)

Ziki
15 Sep 2006, 14:41
Nice Aftermath,will have a use :)

Spikeman
12 Oct 2006, 19:37
Nice, works fine on 3.6.2 :)

Snake
12 Oct 2006, 21:59
Excellent! I never expected this to work on 3.6.x but since you've already installed it and cofirmed this for us, that's good then. :)

COBRAws
13 Oct 2006, 06:50
this is good... would be even beter if the designated forum is a per-forum setting... so we can have a part of the forums that send the archived threads to a specific forum, and another part to another... would be like moderating or moving to moderators forums (big communities need... lol)
Snake, can this be done?
I was using the vBrecycle hack because I could set up multiple "Archive" forums, I never knew this hack could do the same.

Please let me know. Thanks

Snake
14 Oct 2006, 01:58
Hmm well, I'll see if I can add up the multiple archive forums in the next release.

Any further suggestions before I go on and work on it? :)

COBRAws
17 Oct 2006, 00:36
Well, not really. Thats whny I never used your hack Josh. We have archives for diferent forums. Multimedia, staff, reports, etc etc. Having a single archive forum will not keep things (even archived threads) organized.

If you can set up like the old vbrecicle hack, so I can set when I archive threads from "Forum A" go to "Archive A" and threads from "Forum B" go to "Archive B" and so on, it would be awesome. Also keep in mind to add a defaul archive forum in case someone does not want to create diferent archives.

Thanks for your time!

DaNIEL MeNTED
21 Oct 2006, 00:51
great hack... is there any way to get it to do the same thing from the forumdisplay template?

Snake
22 Oct 2006, 11:00
COBRA: I'm not sure about that because this hack acts COMPLETELY different from that vBRecycle one so it'll be a "maybe". Why don't you just contact the author of that hack and ask him for an upgrade?

Daniel: Yes, of course, but this will be considered in the next release. :)

COBRAws
25 Oct 2006, 07:53
COBRA: I'm not sure about that because this hack acts COMPLETELY different from that vBRecycle one so it'll be a "maybe". Why don't you just contact the author of that hack and ask him for an upgrade?

Daniel: Yes, of course, but this will be considered in the next release. :)
For the moment there is no response from the author :S

I'll subscribe to this thread just in case you change your mind :P

DaNIEL MeNTED
15 Nov 2006, 21:29
Daniel: Yes, of course, but this will be considered in the next release. :)

Any ETA?

Snake
17 Nov 2006, 21:05
Sorry for the delay. I'm actually done with the upgrade of the hack so I shall release it very soon... :)

Stay tuned!

chick
16 Dec 2006, 20:53
Anything yet snake?

LuBi
19 Dec 2006, 00:23
Anything yet snake?


what she said :)

Snake
22 Dec 2006, 00:58
v1.2 is now released. Sorry all for the delay once again. I've been really busy with my sites as I'd to move them to a new server which took me a while. :)

If there's anything wrong within the hack or have a suggestion on your mind, feel free to post them below!

Also, please remember to click on the install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=106327) button/link if you have this mod installed already as I have noticed people aren't doing so.

chick
22 Dec 2006, 02:17
Before I install, how exactly does this work... open to archive thead... and it puts it where? In a forum I have precreated and then designated the 'archived threads' to go to?

I just want to be clear on this before I install, thank you.

Nathan2006
22 Dec 2006, 02:59
Thank you Josh for the update :)

Updated

Snake
22 Dec 2006, 17:57
Before I install, how exactly does this work... open to archive thead... and it puts it where? In a forum I have precreated and then designated the 'archived threads' to go to?

I just want to be clear on this before I install, thank you. Yes, that's correct. Just upload the product, navigate to the Admin CP and enter the forum ID that you wanna archive the threads in on the vB Options page.

Thank you Josh for the update :)

Updated You're quite welcome, Nathan. :)

COBRAws
25 Dec 2006, 22:25
Hey Josh, there is no way for you to make multiple archive forums? I paid a coder for this work but he run away :S I'll be glad to pay you those 100USD (which i paid 50% another coder here on vb.org).

Snake
26 Dec 2006, 02:04
Well sure I could do that but why would you need multiple forums to archive anyway? I think that would be just pointless, don't you think?

peterska2
28 Dec 2006, 23:59
So, if I wanted to replace my delete thread with this so that it moved to a designated forum, would it work?

Also, does it work with inline moderation?

Snake
29 Dec 2006, 00:51
Yes, that is correct, peter. Actually that's how the hack is designed so instead of deleting threads and decrease your forum stats to look like a dead forum, this should help.

And yes, should work with inline moderation as well almost everywhere on the forums. This has been implemented in v1.2 version in case you haven't noticed already. :)

peterska2
29 Dec 2006, 01:04
Cheers :)

I'll install it later today then as it will make my life a lot easier



Update: Installed and with a few tweaks to my template edits you wouldn't know anything different was happening apart from the fact that the delete options don't appear and the thread is moved. Perfect!

Snake
30 Dec 2006, 13:13
Actually, this hack doesn't remove the delete thread options in the Moderation Tools because I'm pretty sure some people would still like to have this option on and use this archive hack altogether so if you wanna remove the delete options, then all you have to do is remove them in the template bits via the Admin CP.

Thanks for the install though! :)

peterska2
30 Dec 2006, 14:11
Exactly, so I just tweaked it to my specifications ;)

TheSh@rk
02 Jan 2007, 10:42
incredeble hack
many thankes
/me clicked install

SportsZone
14 Jan 2007, 21:55
This is a great hack, but why does it make all my threads in a forum become centered instead of left aligned? I use vB3.6 btw

eg

https://www.vbulletin.org/forum/ (http://img297.imageshack.us/my.php?image=untitleduu2.png)

Snake
15 Jan 2007, 18:12
incredeble hack
many thankes
* TheSh@rk clicked install Thanks there, glad you like it!

This is a great hack, but why does it make all my threads in a forum become centered instead of left aligned? I use vB3.6 btw

eg

http://img297.imageshack.us/img297/7760/untitleduu2.th.png (http://img297.imageshack.us/my.php?image=untitleduu2.png) Thanks for the install again. I'm pretty sure it has nothing to do with this hack. Try to disable the archive thread hack via the Admin CP and lemme know what do you see or get. If the problem still continues, then some other hack is causing this issue or you've done something wrong while you were installing other hacks.

SportsZone
15 Jan 2007, 18:47
Thanks for the install again. I'm pretty sure it has nothing to do with this hack. Try to disable the archive thread hack via the Admin CP and lemme know what do you see or get. If the problem still continues, then some other hack is causing this issue or you've done something wrong while you were installing other hacks.

I agree that this hack shouldn't cause my problem, but after spending hours of disabling plugins and refreshing a page, this plugin is the cause. All I did was upload the xml file and do the template edits. *weird*

Snake
15 Jan 2007, 22:33
Send me your FTP and Admin CP login info via the PM please. I'll check what's wrong.

SportsZone
16 Jan 2007, 17:53
PM sent

Snake
18 Jan 2007, 11:24
SportsZone, I have checked your forum and it seems that everything is working just fine so I'm not sure what you're talking about. Your forumdisplay is working fine here, to me. Check for yourself.

SportsZone
18 Jan 2007, 16:23
Ok thanks for the help!

o0Hubba0o
27 Jan 2007, 01:59
Well sure I could do that but why would you need multiple forums to archive anyway? I think that would be just pointless, don't you think?

The forums I admin have two sections that threads can get moved to. One forums the poster(s) keep their post count for all post in the thread, but the thread is out of public view. This would be because the thread is either really old, irrelevant or had potential to get out of hand.

The other is for threads/post that are blatant violations of our forums rules (porn, advertising etc), and upon trashing the thread the forum it's moved to does not allow posts to count towards an individuals post count. But the thread/post(s) are not deleted to allow for future reference for staff if needed.

So basically we have one forum (The recycle bin) for "archived" threads where post counts remain intact. And one forum (The trash compactor) for "archived" threads where post counts do not remain intact.

So we use this mod for the really bad threads so we can get them out of public view a lot faster via the "archive thread" option, but to have another option for the other types of threads would be great, either way this mod comes in very handy. :D

SpanishHarlem
27 Jan 2007, 07:33
awesome hack. Thanks so much.

Snake
30 Jan 2007, 02:47
The forums I admin have two sections that threads can get moved to. One forums the poster(s) keep their post count for all post in the thread, but the thread is out of public view. This would be because the thread is either really old, irrelevant or had potential to get out of hand.

The other is for threads/post that are blatant violations of our forums rules (porn, advertising etc), and upon trashing the thread the forum it's moved to does not allow posts to count towards an individuals post count. But the thread/post(s) are not deleted to allow for future reference for staff if needed.

So basically we have one forum (The recycle bin) for "archived" threads where post counts remain intact. And one forum (The trash compactor) for "archived" threads where post counts do not remain intact.

So we use this mod for the really bad threads so we can get them out of public view a lot faster via the "archive thread" option, but to have another option for the other types of threads would be great, either way this mod comes in very handy. :D
First of all, you are not even allowed to have porn on your forum as it against the U.S. federal laws unless you do not live in the U.S..

Second, I don't think you'll able to do that while using this hack and I prefer to have this hack designed as the way it is so I'm gonna change it by adding multiple or triple archiving options. I'm sorry.

Though you can always request a new mod and use the search function for any pre-made ones. I'm sure there are a few already in the database so have a look for yourself.

Ascor
30 Jan 2007, 06:39
Installed and working fine thank you :)

mshehan
01 Feb 2007, 18:50
Great idea. Is there a way to have it auto archive the thread at a set date instead of having to manually do it please? -Thanks!

SCRIPT3R
01 Feb 2007, 19:17
First of all, you are not even allowed to have porn on your forum as it against the U.S. federal laws unless you do not live in the U.S.
that's not true at all.

SCRIPT3R
01 Feb 2007, 19:18
can this be setup to automatically move threads from one section to another after however many days automatically without the need for user interaction?

telc
03 Feb 2007, 04:19
Does this plugin remove cleanly? Will it leave vb phrases in the database after it is removed.

Snake
06 Feb 2007, 18:46
Great idea. Is there a way to have it auto archive the thread at a set date instead of having to manually do it please? -Thanks! Nah not really but I might be able to do that in the next release even though you don't really need to do that. What's the point of that anyway?

that's not true at all. Yes that is true. Take a moment and look at vBulletin's ToS and you'll then know what I'm talking about.

can this be setup to automatically move threads from one section to another after however many days automatically without the need for user interaction? Like I've said already, I can add that function in the next release of this hack but I don't think that is really necessary.

Does this plugin remove cleanly? Will it leave vb phrases in the database after it is removed. Yes it will remove the whole product completely on your board. And no, it will not leave the phrases that comes up with the hack. Once this product has been uninstalled, everything will be vanished that comes this hack.

SCRIPT3R
06 Feb 2007, 19:41
First of all, you are not even allowed to have porn on your forum as it against the U.S. federal laws unless you do not live in the U.S.

that's not true at all.

Yes that is true. Take a moment and look at vBulletin's ToS and you'll then know what I'm talking about.

what does vBulletin's ToS have to do with U.S. federal laws? i was saying that it's not true that U.S. federal laws do not prevent anyone from having pron on their privately own forum... which is what you said.

Snake
08 Feb 2007, 16:03
Well, I don't know but I have always thought having pornography on a bulletin board is always against the U.S. federal laws. Anyway, it doesn't matter and please keep the off-topic discussion somewhere else and not in my thread. You're already ruining it!

futuredood
08 Feb 2007, 16:46
hey, i'm going to install this.. it'd be nice for a future version to have threads move after a certain date. i have "special" topics that i want to run for about two weeks as a "main topic of the week" and then have it auto archive after a certain amount of time.

thanks for the mod.

SCRIPT3R
08 Feb 2007, 18:06
Well, I don't know but I have always thought having pornography on a bulletin board is always against the U.S. federal laws. Anyway, it doesn't matter and please keep the off-topic discussion somewhere else and not in my thread. You're already ruining it!
no problem, didn't want to make you cry in public.. what are you two? just get your facts straight next time.

Edit per request to play nice.

Snake
08 Feb 2007, 20:25
Didn't want to make me cry in public? Heh yeah right, my ass.

Paul M
09 Feb 2007, 01:23
That's enough now, keep support threads for support please.

Tamakh
28 Feb 2007, 16:34
Nah not really but I might be able to do that in the next release even though you don't really need to do that. What's the point of that anyway?

We are going to use vbulleting to post information that needs to be taken down on a specified date. The staff that is posting the material has requested that it automatically archive so they donít have to keep track of which post to remove. If it can be done that would be really great!

ski diva
19 Jun 2007, 15:32
I'm a little confused about the last part of the install directions:

4) Finally, you will need to enter the forum ID to archive all the threads that you'd like. Navigate to Admin CP -> vBulletin Options -> Message Posting and Editing Options -> Archive Forum. Enter the forum ID to use it as the archive forum by hovering on the link (example: http://www.yourdomain.org/forum/forumdisplay.php?f=XXX). Where "XXX" is the ID of the forum.

Should I have created a new forum for use as an archive? I mean, I have an archive for the site in general, but I can't seem to locate the ID number. Where is the link on which I'm supposed to hover?

Thanks.