PDA

View Full Version : Miscellaneous Hacks - FA Self Destruct Thread


Farjad
11-25-2006, 10:00 PM
Ever wanted to move a thread to your forums trashbin etc? But wanted to show the reply to the thread starter? Then this is for you!

This hack can move a thread after a specific time period specified by the admin.

I have not used a cronjob as this doesn't have any specific time of deletion.

Required:
A forum to move all threads after time period... (Forums trashbin?)

Updates:
v1.0.3 Beta
- Now thread also closes on self destruct

v1.0.2 Beta
- Added reversal option

v1.0.1 Beta
- Added self destruct option in thread

v1.0.0 Beta
- Product
- Settings
- 3 Template Edits
- 2 File Edit

TheBlackPoet
11-25-2006, 11:23 PM
Hell Yeah!! I need this for those threads that have no real value after reading once....!! good job!!

Kirk Y
11-25-2006, 11:32 PM
Good idea.

Spikeman
11-26-2006, 12:20 AM
/me installed

Good idea.

COBRAws
11-26-2006, 06:58 PM
Can I set a timing for each thread? That would be good.
Thanks

mikeylikesitz
11-26-2006, 11:18 PM
is this for mods and admins only or can it be set to allow reg users to use it?

Farjad
11-27-2006, 06:33 PM
Can I set a timing for each thread? That would be good.
Thanks:) .. I'll work on it .. but hmm..

is this for mods and admins only or can it be set to allow reg users to use it?Mods & Admins.

quadinfotech
11-27-2006, 10:30 PM
good one man, thanx, installed.

Mecho
12-24-2006, 07:24 PM
Thanks for update . would u plz add Physically remove threads or posts in next Release ?

i think That would be useful too .
happy hollidays

iran.gs
12-27-2006, 01:49 PM
sounds like a excellent idea !!! Installed

roger.kore
01-10-2007, 07:20 AM
Nice Idea and works fine on 3.6.4
Only a problem: On forum title, it's still says: Last post: subejct blabla by anyone. And the count post on this forum will be the same (should not since when the message was moved)
And on the forum where the message is move, post count is 0 and there is no last post by blabla (the moved message

Farjad
01-20-2007, 03:03 PM
Nice Idea and works fine on 3.6.4
Only a problem: On forum title, it's still says: Last post: subejct blabla by anyone. And the count post on this forum will be the same (should not since when the message was moved)
And on the forum where the message is move, post count is 0 and there is no last post by blabla (the moved message
Yeah, I need to fix that..

melscamera
01-26-2007, 06:15 PM
Never mind i guess i should of read the file before posting this.. haha sorry guys..

ok so this may seem dumb but i have installed this but where do i set the time for the posts ? sorry new to this whole vb world :):eek:

vphost
01-26-2007, 06:42 PM
According to the screenshot, I'd assume that it is within admincp in vB Options

MiahBeSmokin420
06-15-2007, 07:32 PM
ok i though this was a nice hack

but

when enable with my skin it makes the threads look all messed up and shit

and it was deleteing random threads for no reason

then today i uninstalled it

and took everthing out like i put it in

and now every thread on my site say

this thread will self destruct in

but there is no time

why would it say anything like that if all mods to install it have been uninstalled??

momo2
07-12-2007, 02:06 PM
very handy, we offer passes to some site and they are valid for few days, this can he help..

vithorius
05-19-2008, 07:58 AM
Hi! How are thing going with this Mod?

Is it possible to specify wich sub-forums do we want to use this hack?

Is it compatible with vb 3.7?

Thank you very much.

Farjad
06-01-2008, 06:13 PM
Hi! How are thing going with this Mod?

Is it possible to specify wich sub-forums do we want to use this hack?

Is it compatible with vb 3.7?

Thank you very much.
it is technically compatible with 3.7, you'll need to edit the forums and add the securitytoken line. I suppose I'll upgrade it for vb3.7 in the next week or so.

TradGang
06-13-2008, 12:36 AM
Way cool - anyone know if the self destruct hack will work with ver 3.7.x?

PyroMarkus
08-20-2008, 12:18 PM
Mmmmh, when will be "next week", please?
Thanks a lot, would be a great hack for my forums...

punjabi.king
11-10-2008, 09:00 PM
waiting for the update

n.sinha.p
01-10-2009, 09:20 AM
I get this weird error whenever I set a thread to self destruct: Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Pls help!

Milad
02-06-2009, 10:50 AM
Hello

Your hack causes performance issues, this is because the plug-in at the hook: global_start

global $vbulletin;
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."thread SET forumid='".$vbulletin->options['fa_selfdest_forum']."', selfdest='0' WHERE ".time()." > selfdest AND selfdest!='0'");


You can't perform that query on every page load! it's pretty bad idea.

it's better to move this plug-in to the hook: cron_script_cleanup_hourly

Regards

externalaw.com
03-22-2009, 03:31 PM
Security token error.
Pretty cool mod, but can it be updated and improved perhaps for 3.8.1 for now I had to remove it.

solidstate
01-14-2010, 06:49 PM
Security token error please!
can u please update it :(