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)

Dark Shogun 09-26-2002 03:21 AM

When it says in the instructions to find:
Code:

if ($s!=$session['dbsessionhash']) {
and replace it with:

Code:

if ($s!=$session['dbsessionhash'] && $reasonentered!=1) {
You are actually supposed to find:
Code:

$s == $session['dbsessionhash'] )) {
and replaced it with:

Code:

$s == $session['dbsessionhash'] && $reasonentered!=1)) {
That made everything show.

I am having a small problem though. When you close a topic and put in the reason it works fine but when you open it the reason stays there except it isn't in the box.

Dark Shogun

Xenon 09-26-2002 10:46 AM

Quote:

Originally posted by Dark Shogun
I am having a small problem though. When you close a topic and put in the reason it works fine but when you open it the reason stays there except it isn't in the box.

Dark Shogun

That was a bug in one of the first versions of this hack, it shouldn't be in the latest version.
are you sure you've no parts of an old version in your files?

Dark Shogun 09-26-2002 04:14 PM

Xenon can you attach or tell me which version is the most up todate and how to make it so it shows who closed the topic?

Dark Shogun

Xenon 09-26-2002 05:26 PM

of course :)
latest version is in the attachment :)

to show who closed the topic:
change this line in the instructions:
$closereason=" closereason='".addslashes($reason)."', ";

into this:
$closereason=" closereason='".addslashes($reason)." (by $bbuserinfo[username])', ";

Dark Shogun 09-26-2002 05:50 PM

Works perfectly. :)

Dark Shogun

X-Fan 10-10-2002 06:26 AM

Quote:

Originally posted by Xenon
latest version is in the attachment :)
Does this work on 2.2.8, because in postings.php I'm not finding...

PHP Code:

if ($s!=$session['dbsessionhash']) { 

But I am finding...

PHP Code:

// ############################### start do open / close thread ###############################
if ($HTTP_POST_VARS['action'] == 'openclosethread' OR ($action == 'openclosethread' AND == $session['dbsessionhash')) { 


Xenon 10-10-2002 08:57 AM

yes it should work with vb228 too (it does at my forum)

the code has changed a bit from 227 to 228, so normally all should be ok if you just leave out this step:
Code:

Find:
if ($s!=$session['dbsessionhash']) {


Replace with:
if ($s!=$session['dbsessionhash'] && $reasonentered!=1) {


ZiRu$ 10-13-2002 03:53 AM

Installed the latest Version....still got a problem!

When you close a thread.....then open a thread....and then go to close it again....it has the last message in there and if you replace it all and type something new then it dosent have the thread closers username there......

Xenon 10-13-2002 09:04 AM

it should be that it still have the old message until you delte it and write another one..

the username isn't included in the official release, if you use the modifications i told in the thread, they should work, but it's not 100% because i didn't test em

C.Birch 10-13-2002 02:57 PM

how can i make it so it whys why a topic was closed in the topic list of a forum?

so its something like this

topic name
why it was closed if its a closed topic


All times are GMT. The time now is 08:22 AM.

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.01171 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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