Back to Modification Graveyard

Resolved Threads
Mod Version: 1.0, by Logikos

This thread is in the Modification Graveyard.
vB Version: 3.0.3 Rating: (1 vote - 5.00 average) Installs: 22
Released: 06 Nov 2004 Last Update: 07 Nov 2004 Downloads: 3
Not Supported DB Changes  

Resolved Threads


====================
Author: Ken 'LiveWire' Iovino
Site: http://www.initialz.com/
Version: 1.0
====================

Updates
  • None at this moment

Add Ons
Close thread after thread is considered resloved. Click Here for this Addon

Spoiler (click to open)


Quote by Beermonster
Nice hack, just a little addition to it if possible, could it also automatically close the thread?
Hope you don't mind I've made this little addition, in the resolved.php

Find:

Code:
$DB_site->query("
                                                UPDATE " . TABLE_PREFIX . "thread
                                                SET resolved = '1'
                                                WHERE threadid = " . intval($threadid) . "
                                        ");
Add under:

Code:
$DB_site->query("
                                                UPDATE " . TABLE_PREFIX . "thread
                                                SET open = '0'
                                                WHERE threadid = " . intval($threadid) . "
                                        ");

Close
(Thanks to BeerMonster)

What this does
This will give thread starters the option to click a link to make a thread considered resolved. The way it works is simple. It will change the title of the post from 'I Need Help' to '[resloved] I Need Help'. This works as per forum basis and you can have this turned on/off on any forum you want. Only thread starters will see this option. If you want admins to see this option also, see This Thread Here

Spoiler (click to open)


Quote by SnowBot
Do admins see the option and change it?
If you want admins to beable to see this option you just need to edit the SHOWTHREAD template and find:
HTML Code:
<if condition="$firstpostinfo[userid] == $bbuserinfo[userid]">
        $resolvedlink
</if>
And change to:
HTML Code:
<if condition="$firstpostinfo[userid] == $bbuserinfo[userid] OR $bbuserinfo[usergroupid] == 6">
        $resolvedlink
</if>

Close


If you would like to change the text, open 'resolved.php' look at line 35.

To do list...
  • Time to install: 3-5 minutes
  • Queries to run: 2
  • File Mods: 2
    • /admincp/forum.php
    • /showthread.php
  • Templates to edit: 1
    • SHOWTHREAD
  • Templates to add: 1
  • New Phrases: 2

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.

https://www.paypal.com/xclick/business=iovinojr%40msn.com&item_name=Initial+Z+Free+Scripts&no_note=1&tax=0&currency_code=USD

Download

This modification cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2025