vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - FA Self Destruct Thread (https://vborg.vbsupport.ru/showthread.php?t=132476)

Farjad 11-25-2006 10:00 PM

FA Self Destruct Thread
 
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

Quote:

Originally Posted by COBRAws (Post 1125770)
Can I set a timing for each thread? That would be good.
Thanks

:) .. I'll work on it .. but hmm..

Quote:

Originally Posted by mikeylikesitz (Post 1125984)
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

Quote:

Originally Posted by roger.kore (Post 1155289)
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

Quote:

Originally Posted by vithorius (Post 1524483)
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:
Quote:

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

PHP Code:

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 :(


All times are GMT. The time now is 07:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04309 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete