vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Reason for closing thread (https://vborg.vbsupport.ru/showthread.php?t=40190)

MartynJ 02-26-2003 04:52 PM

This doesn't work on 2.2.9 - which is a shame, the hack is quality. Any plans for a fix?

Xenon 02-26-2003 05:18 PM

hmm it works for me and i'm using 229 currently..

Courage 05-20-2003 11:00 PM

i'm using 2.3.0

I managed to make this work :D

Download the instructions, but you will get in trouble in postings.php

so:

in postings.php
find:
PHP Code:

if ($HTTP_POST_VARS['action'] == 'openclosethread' OR ($action == 'openclosethread' AND $s == $session['dbsessionhash'])) { 

Replace with:
PHP Code:

if ($HTTP_POST_VARS['action'] == 'openclosethread' OR ($action == 'openclosethread' AND $s == $session['dbsessionhash'] && $reasonentered!=1)) { 

Modifying the SHOWTHREAD Template

Find:
Code:

<!-- End content area table (CREATED IN HEADER!!) --> 
        </td>
</tr>
</table>

After that, ADD:

Code:

<br>
$closereason
<br>


ap0c 06-01-2003 12:13 AM

Quote:

05-20-03 at 08:00 PM Courage said this in Post #173
i'm using 2.3.0

I managed to make this work :D

Download the instructions, but you will get in trouble in postings.php

so:

in postings.php
find:
PHP Code:

if ($HTTP_POST_VARS['action'] == 'openclosethread' OR ($action == 'openclosethread' AND $s == $session['dbsessionhash'])) { 

Replace with:
PHP Code:

if ($HTTP_POST_VARS['action'] == 'openclosethread' OR ($action == 'openclosethread' AND $s == $session['dbsessionhash'] && $reasonentered!=1)) { 

Modifying the SHOWTHREAD Template

Find:
Code:

<!-- End content area table (CREATED IN HEADER!!) --> 
        </td>
</tr>
</table>

After that, ADD:

Code:

<br>
$closereason
<br>


tried both of these, but the reason doesnt show up in the thread.
I can add the reason, click the button, the thread is closed, but the reason it's closed doesnt show up

Reoplex 06-16-2003 07:53 PM

k, same problem. I did everything that i had to do.

when i try to move a thread, it moves it, but it never asks me for a reason.

Xenon 06-16-2003 08:00 PM

this hack is for closing threads, not moving them.

i think moving would be somehow equal to do, but it's not the same, and not included in this hack

JonP 06-18-2003 02:56 AM

Thanks.


All times are GMT. The time now is 03:13 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.01249 seconds
  • Memory Usage 1,742KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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