vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reason for Closing Thread (https://vborg.vbsupport.ru/showthread.php?t=69625)

dmark101 10-31-2004 10:38 PM

Quote:

Originally Posted by drumsy
One issue that arose with the vB2 version of this was that if the thread was closed, a reason was entered, and then the thread was reopened, the reason still showed. Has this been fixed in the vB3 version?

i used to have this hack installed on the vB2 version of my board. that hack also showed the reason and who closed it in the 'last post' field.

is there any reason for not having this functionality in this hack?



i did install BTW. :up:

WhSox21 10-31-2004 11:25 PM

No, I never knew that. I'm aweful busy right now or I could do that, but I'm affraid I can't do it as of right now.

silentwille 11-10-2004 06:31 PM

It's possible to edit the reason without open and reclose the thread ?

WhSox21 11-10-2004 06:35 PM

Via the database. It is not possible as of now.

silentwille 11-10-2004 06:41 PM

Ok, thanks

shadiguy1 12-30-2004 07:52 PM

any chance at an updated version that will also list who closed the thread.

WhSox21 12-30-2004 09:00 PM

Post in this thread in about a week and I'll try to get that done.

shadiguy1 12-30-2004 09:17 PM

alright thanks...be Cool if it Said Thread Closed By:

shadiguy1 01-05-2005 03:53 PM

Bumping thread like u asked you said you would add the thread closed by info to the hack in a small update

WhSox21 01-07-2005 04:38 AM

I'll package everything up and send out an update tomorrow but since you've been waiting here it is:

Note this only applies when this is already installed!

Replace showthread_reason with this:
Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="alt1" width="100%">
                <b>Reason thread was closed:</b> <br />
                <div class="smallfont">
                        $thread[reason]
                </div>
                <if condition="!empty($thread[who])"><b>Thread Closed By:</b> <span class="smallfont">$thread[who]</span></if>
        </td>
</tr>
</table>

Run this query:
Code:

ALTER TABLE thread ADD `who` VARCHAR(50) NOT NULL;
In postings.php find this:
Code:

$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = $threadinfo[open], reason = '" . addslashes($_POST[reason]) . "' WHERE threadid = $threadid");
...and replace with...
Code:

$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = $threadinfo[open], reason = '" . addslashes($_POST[reason]) . "', who = '" . addslashes($bbuserinfo[username]) . "' WHERE threadid = $threadid");
On a side note. Any previously closed threads will not have who closed them. Only threads closed in the future.

Let me know how it works! :up: :)


All times are GMT. The time now is 12:47 PM.

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.01013 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete