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)

shadiguy1 01-07-2005 03:26 PM

works awsome Thanks agian bro...

j_86 01-08-2005 05:07 PM

This hack is VB 3.05 compatiable.

chet 01-08-2005 07:16 PM

I have 3.05 and just installed it, closing the thread brings up the pop up box askng for the reason, I put in the reason and click ok but I do not get the reason showing up when viewing the thread, what did I miss out or is this a none worker on the latest version of VB

Thanks

Chet

OK forget that, yes it does work with 3.0.5, I missed out the last template modification :o

dmark101 01-26-2005 04:16 PM

cool on all the updates, including what i had originally asked about.

i just upgraded from 3.0.3 to 3.0.6 and it looks like i have to reinstall the hack, although it does show me the pop-up (it doesn't show the reason). i'll report back when i check all the files with the updated instructions. :)

WhSox21 01-26-2005 04:52 PM

This is going to be a template problem most likely.

skydancer 10-08-2005 09:34 PM

I can report that this hack still works in 3.5.0 with a few small changes.

I got rid of the last postings.php modification in the .txt which read
Quote:

FIND:
-------------------
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = $threadinfo[open] WHERE threadid = $threadid");
-------------------
REPLACE WITH:
-------------------
$DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET open = $threadinfo[open], reason = '" . addslashes($_POST[reason]) . "' WHERE threadid = $threadid");
Instead, I did the following:

Quote:

FIND:
$vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid";

BEFORE IT, ADD:
$db->query("UPDATE " . TABLE_PREFIX . "thread SET reason='".addslashes($_POST[reason])."' WHERE threadid = $threadid");
It also may be useful to store the name of the moderator who closed it. To do this, I added:
Quote:

FIND
if($_POST['reason'] == 'null') $_POST['reason'] = null;

BELOW IT, ADD:
$_POST['reason'] = "(".$vbulletin->userinfo['username'].") " . $_POST['reason'];
Cheers!
sd

COBRAws 10-10-2005 03:14 AM

skydancer ure the man!

dmark101 11-18-2005 04:23 PM

Quote:

Originally Posted by WhSox21
This is going to be a template problem most likely.

that's pretty much what it turned out to be.

my thanks to skydancer for porting this over to vB 3.5.x because i recently upgraded my board to that version. kudos. :D

now i have to install 3.5.1 and we're set. :)

serhat_kk 12-11-2005 04:02 PM

it works ...Propz

Justice 12-14-2005 01:31 AM

thanks to the author, and skydancer... does that 3.5.0 mod work with 3.5.2?


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.01054 seconds
  • Memory Usage 1,734KB
  • 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_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