Fourms Products

Go Back   KXDesign > vBulletin 3.8 Modifications > vB 3.8 Add-Ons > KX - Auto Lock Thread

vB 3.8 Add-Ons vBulletin 3.8 plugins,modifications,extensions and code changes.

Reply
 
Bookmarks Thread Tools
 
Old 17-10-2008
Komplex Komplex is offline
KXDesign Admin
Komplex's Avatar
Release Info:
For Version: 3.7.x Release Version: 1.0.0
Release Date: 17-10-2008 Installs: 11
Last Update: Never Rating: 1 votes | 5.00 avarage
Release Options
Install This Release
Report This Release
Files
File Type: xml kx_lockthread.xml (2.6 KB, 28 views)
Release Info






Thumbs up KX - Auto Lock Thread

This modification was brought to you by
KXDesign
KXDesign - Powered by vBulletin


~Modification name
Auto Lock Thread

~Modification description
Locks an old thread after X amount of days.

~Modification options
  • Turn on/off
  • Choose thread id's
  • Choose amount of days

~Modification info
File uploads: 0
Template edits: 0
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 7
Settings: 3

Install time: 3 sec
Install level: Easy

~Modification installation
Step 1: Import Product



~Modification screenshots
None


~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.
Reply With Quote
Old 18-02-2009   #11 (permalink)
New Member
 
A Little About Andyucs
  • Join Date: Feb 2009
  • Posts: 5
  • Rep Power: 0 Andyucs is an unknown quantity at this point
Default Re: KX - Auto Lock Thread

get this now

Fatal error: Call to a member function query_write() on a non-object in /home/blalblal/public_html/includes/cron/dailycleanup.php(96) : eval()'d code on line 14


with

Plugin PHP Code
if ($vbulletin->options['kx_lockthread_onoff'] == 1)
{
$kxtime = $vbulletin->options['kx_lockthread_time'];
$kxthread = explode(',', $vbulletin->options['kx_lockthread_thread']);

foreach ($kxthread as $kxthreads){
$db->query_write("
UPDATE ".TABLE_PREFIX."thread SET open = 0
WHERE open = 1 AND dateline < ".intval(TIMENOW-(86400*$kxtime)));
}
}

Last edited by Andyucs; 18-02-2009 at 12:36.
Andyucs is offline   Reply With Quote
Old 18-02-2009   #12 (permalink)
KXDesign Admin
 
Komplex's Avatar
 
A Little About Komplex
  • Join Date: Jul 2008
  • Location: Slovakia
  • Posts: 163
  • Rep Power: 5 Komplex is infamous around these parts
  • Send a message via MSN to Komplex
    Default Re: KX - Auto Lock Thread

    Ok use this:

    Code:
    Unregistered users can not view codes.Please register.
    
    __________________
    .::{KXDesign Owner}::.
    Komplex is offline   Reply With Quote
    Old 18-02-2009   #13 (permalink)
    New Member
     
    A Little About Andyucs
    • Join Date: Feb 2009
    • Posts: 5
    • Rep Power: 0 Andyucs is an unknown quantity at this point
    Default Re: KX - Auto Lock Thread

    gives me this

    Daily Cleanup

    Fatal error: Call to a member function query_write() on a non-object in /home/blalblal/public_html/includes/cron/dailycleanup.php(96) : eval()'d code on line 7
    Andyucs is offline   Reply With Quote
    Old 18-02-2009   #14 (permalink)
    KXDesign Admin
     
    Komplex's Avatar
     
    A Little About Komplex
    • Join Date: Jul 2008
    • Location: Slovakia
  • Posts: 163
  • Rep Power: 5 Komplex is infamous around these parts
  • Send a message via MSN to Komplex
    Default Re: KX - Auto Lock Thread

    Well there must be a problem with your board,I tested this ona c lean vB 3.8 installation.Try changing the hook to cron_script_cleanup_daily
    __________________
    .::{KXDesign Owner}::.
    Komplex is offline   Reply With Quote
    Old 18-02-2009   #15 (permalink)
    New Member
     
    A Little About Andyucs
    • Join Date: Feb 2009
    • Posts: 5
    • Rep Power: 0 Andyucs is an unknown quantity at this point
    Default Re: KX - Auto Lock Thread

    THANKS anyway Version 3.8.1 shame it wont work for me i could of realy used this

    god knows what it is causing it then
    Andyucs is offline   Reply With Quote
    Old 23-11-2009   #16 (permalink)
    New Member
     
    A Little About smart zero
    • Join Date: Nov 2009
    • Posts: 1
    • Rep Power: 0 smart zero is an unknown quantity at this point
    Default Re: KX - Auto Lock Thread

    great hack
    but i want to use this hack for closing topics which is in page 3
    can any hack can help me ??
    and i have v.3.8.4 does it work for this?
    thanks again for the hack
    smart zero is offline   Reply With Quote
    Reply


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    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
    Trackbacks are Off
    Pingbacks are Off
    Refbacks are Off



    All times are GMT +1. The time now is 10:42.


    Content Copyrighted To KXDesign© 2008-2009
    Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    SEO by vBSEO 3.2.0