Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Expired Threads Details »»
Expired Threads
Version: 1.1, by Logikos Logikos is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.0.3 Rating:
Released: 10-06-2004 Last Update: 10-30-2004 Installs: 22
 
No support by the author.

Expired Threads


====================
Author: Ken 'LiveWire' Iovino
Site: www.initialz.com
Version: 1.1
====================

Updates
  • Threads expired in days not seconds

Exitising Users Please Read
Open the file update_1.0_to_1.1.txt


WetWired Gets credit for the original idea, i saw this created on his forums long ago, and finaly decided to code it. and share with vBulletin.

What this does
This will allow you as the admin to set a time limit till a thread is considered expired. If the thread happens to be expired, the user will see a error message. But a staff member (ie, mod, sup-mod, and admin) can unexpire the thread by posting in it, then the counter will start over again. This will prevent those anoyying thread digger members we all seem to dislike.

This works as a per forum basis. You can turn on/off any forum you want.


To do list...
  • Time to install: 5-10 minutes
  • Queries to run: 1
  • File Mods: 2
    • /admincp/forum.php
    • /forums/newreply.php
  • Templates to edit: 0
  • Templates to add: 0
  • New Phrases: 4

Please read carefully and make all the necessary changes as stated. This is will work if installed properly.
PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack

Click It

Help & Support
Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here.

Please post bugs and errors here. Hope you like, feedback welcomed.

Special Thanks to:
-nexialys

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-11-2005, 05:09 PM
clearchannel clearchannel is offline
 
Join Date: Nov 2001
Location: Ft Lauderdale, Florida
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to remove this hack. I installed this hack in VB 3.06 and am now receiving database errors. How do I remove the database quary?

database error.
Code:
Database error in vBulletin 3.0.6:

Invalid SQL: 
  SELECT 
  
  thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
  , thread.iconid AS threadiconid, iconpath AS threadiconpath
,thread.forumid, forum.title AS forumtitle
, post.pagetext AS preview
, NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
FROM thread as thread
LEFT JOIN icon USING (iconid)
LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 12243)
WHERE open <> '10' AND thread.visible = 1 AND thread.forumid NOT IN(70,3,23,14,16,102,103,15,20,17,10,122,13,11,9,12,21,104,25,68,55,4,19,100,27,123,5,52,99,8,121,69,29,22,124,125,120,105,117,119,108,114,118,107,109,113,116,7,110,30,54,47,111,60,65,61,66,64,62,63,72,112,90,75,85,84,86,87,93,92,48,115,101,83,91,97,98,78,79,80,81,82,95,94,96,88,51,53,49,50,28,24,18,71,26,56,73,69,29,22,124,125) Array AND deletionlog.primaryid IS NULL 
ORDER BY lastpost DESC 
LIMIT 10

mysql error: You have an error in your SQL syntax near 'Array AND deletionlog.primaryid IS NULL 
ORDER BY lastpost DESC 
LIMIT 10
' at line 15

mysql error number: 1064

Date: Friday 11th of February 2005 08:49:58 AM
Script: http://www.yourdomain.com/
Referer: 
Username: anonymous
IP Address: xxx.x.xxx.xx
Reply With Quote
  #33  
Old 02-11-2005, 06:41 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by clearchannel
I'd like to remove this hack. I installed this hack in VB 3.06 and am now receiving database errors. How do I remove the database quary?

database error.
Code:
Database error in vBulletin 3.0.6:

Invalid SQL: 
  SELECT 
  
  thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
  , thread.iconid AS threadiconid, iconpath AS threadiconpath
,thread.forumid, forum.title AS forumtitle
, post.pagetext AS preview
, NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
FROM thread as thread
LEFT JOIN icon USING (iconid)
LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = 12243)
WHERE open <> '10' AND thread.visible = 1 AND thread.forumid NOT IN(70,3,23,14,16,102,103,15,20,17,10,122,13,11,9,12,21,104,25,68,55,4,19,100,27,123,5,52,99,8,121,69,29,22,124,125,120,105,117,119,108,114,118,107,109,113,116,7,110,30,54,47,111,60,65,61,66,64,62,63,72,112,90,75,85,84,86,87,93,92,48,115,101,83,91,97,98,78,79,80,81,82,95,94,96,88,51,53,49,50,28,24,18,71,26,56,73,69,29,22,124,125) Array AND deletionlog.primaryid IS NULL 
ORDER BY lastpost DESC 
LIMIT 10

mysql error: You have an error in your SQL syntax near 'Array AND deletionlog.primaryid IS NULL 
ORDER BY lastpost DESC 
LIMIT 10
' at line 15

mysql error number: 1064

Date: Friday 11th of February 2005 08:49:58 AM
Script: http://www.yourdomain.com/
Referer: 
Username: anonymous
IP Address: xxx.x.xxx.xx
That query error isn't caused by my hack.
Reply With Quote
  #34  
Old 02-11-2005, 07:50 PM
clearchannel clearchannel is offline
 
Join Date: Nov 2001
Location: Ft Lauderdale, Florida
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Live Wire
That query error isn't caused by my hack.
I'm not claiming it is. This is the only hack I installed before I started receiving the error messages.

I contacted support at vbulletin and was told they could not provide support with a hack installed.

I would like to uninstall this hack and see if I can duplicate the error. If I can duplicate the database error, I can go back to support at vbulletin, but first, I have to uninstall the hack.

I can make the file changes, I need help removing the table I added to the database in order to install this hack.

Thank you in advance.
Reply With Quote
  #35  
Old 03-21-2005, 06:00 AM
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, and all I get is a blank screen when I go to Forum Manager.
Reply With Quote
  #36  
Old 03-30-2005, 09:39 AM
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThePimp
Installed, and all I get is a blank screen when I go to Forum Manager.
Nevermind, I fixed the problem. Your syntax was off, and you had a misspelling in your instructions with capitalization.

Anyhow, I installed this, and set the days to expire, as well as turned it on. However, it didn't seem to do anything. I set the expire time to be 7 days, and then went to the very first thread ever started (nearly 7 months ago) and could still reply.

Does anyone have an explaination for this?
Reply With Quote
  #37  
Old 03-30-2005, 09:42 AM
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind... as "Admin" you can still reply to old threads.
Reply With Quote
  #38  
Old 04-19-2005, 07:12 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a pretty bad typo in the forums.php instructions. It should be:

PHP Code:
        print_input_row($vbphrase['how_many_days_till_expire'], 'forum[daysexpired]'$forum['daysexpired']); 
Other than that everything works fine.

[high]* 007 licks the install button! [/high]
Reply With Quote
  #39  
Old 05-02-2005, 03:31 PM
kobescoresagain kobescoresagain is offline
 
Join Date: Feb 2005
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you actually get to pick the thread that you want to expire or do you have to do it to all in a certain forum? Also how easy would it be to change it to a certain day. For instance, I would want it to expire on 3/1/06 Instead of having to figure out how many days it is until then (which would be an extreme hassel, I would like to just type in that date and it would show up expired on the beinging (or end) of that day?
Reply With Quote
  #40  
Old 05-02-2005, 04:14 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kobescoresagain
Do you actually get to pick the thread that you want to expire or do you have to do it to all in a certain forum? Also how easy would it be to change it to a certain day. For instance, I would want it to expire on 3/1/06 Instead of having to figure out how many days it is until then (which would be an extreme hassel, I would like to just type in that date and it would show up expired on the beinging (or end) of that day?
No you can't pick which thread can expire on a certain date. This allows all threads in a certain fourm to expire after x days of no replies. If there is a thread that no has replied to for 90 days, chances are its done with and this hack is to stop thread diggers from bummping old threads.
Reply With Quote
  #41  
Old 05-02-2005, 09:26 PM
rjordan's Avatar
rjordan rjordan is offline
 
Join Date: Sep 2004
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Live Wire
No you can't pick which thread can expire on a certain date. This allows all threads in a certain fourm to expire after x days of no replies. If there is a thread that no has replied to for 90 days, chances are its done with and this hack is to stop thread diggers from bummping old threads.
Darn, I was hoping it would do this too. We post messages with time limits on responses, but not all and not all for the same time frame.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:49 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04580 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete