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)

Xenon 06-23-2002 06:24 PM

seems there is already a column name closereason...

have you run that query twice?

or installed another hack which needs such a column..

Paul 06-23-2002 07:01 PM

There appears to be a slight error in the instructions for this hack:

Quote:

----------------------------------------------------
Step 6: Modifying the SHOWTHREAD Template
----------------------------------------------------

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


Replace with:
<br>
$closereason
<br>
Rather than replacing the </td></tr></table>, the $closereason should be added after that code.

Great hack, however. I'm going to attempt to alter it so that if a reason is not specified, a blank "Reason for close" box does not appear.

Paul

Xenon 06-23-2002 07:04 PM

oh, i see you're right.

damn, it would have been better if i was the person who released it, so i could change the file myself, and sinecure also can because he's the admin ;)

ok, we'll have to wait until he comes back :)

Paul 06-23-2002 07:09 PM

on second thought... it appears that the table is closed in the showthread_closed... ahhh! headache.. :: stares at tables ::

Edit: Never mind. My eyes were playing tricks with me. It is an error in the instructions ;)

Also, rather than add <br>$closethread</br>, I just put a <div></div> around the whole contents of the closethread template.

Paul

Sinecure 06-23-2002 07:13 PM

Quote:

Originally posted by LoveShack
There appears to be a slight error in the instructions for this hack:



Rather than replacing the </td></tr></table>, the $closereason should be added after that code.

Great hack, however. I'm going to attempt to alter it so that if a reason is not specified, a blank "Reason for close" box does not appear.

Paul

I was getting a weird gap when I left it there, but I retried it, and for some reason I'm not now. I updated the instructions

GameCrash 06-23-2002 08:30 PM

You should change
PHP Code:

if ($thread[open]) {
  
$replyclose="https://vborg.vbsupport.ru/images/reply.gif";
  
$thread[closereason]="";
} else {
  
$replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
  
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
  eval(
"\$closereason = \"".gettemplate("showthread_closereason")."\";");


to
PHP Code:

if ($thread[open]) {
  
$replyclose="{replyimage}";
  
$closereason="";
} else {
  
$replyclose="{closedthreadimage}";
  if (
trim($thread[closereason])) {
  
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
  eval(
"\$closereason = \"".gettemplate("showthread_closereason")."\";");
  } else {
    
$closereason "";
  }


It's $closereason and not $thread[closereason] and if you don't add a reason the table will be shown, too - that doesn't look that well ;)

Xenon 06-23-2002 08:34 PM

thanx mate!

that $thread[closereason] was an old version of the code, my fault i have forgotten it

Crunch 06-23-2002 08:57 PM

nice i love it, but can someone help me please? since i added this hack i get javascript errors in the newreply page and none of the buttons work or anything. what would be causing this? please I need that stuff working again!!

Crunch 06-23-2002 09:01 PM

hmm sry for the double post but all i had to do was reupload my .js files and everything seems to be fine now..strange

N9ne 06-23-2002 09:14 PM

When someone closes the thread, and at the top it shows the reason for it, how can I make it so it says...

Thread Closed by: Username here <BR>
Reason for Closure: reason here

If anyone can do that, I would be very grateful, this is a good useful hack!


All times are GMT. The time now is 08:43 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.01235 seconds
  • Memory Usage 1,748KB
  • 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
  • (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