Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reason for closing thread Details »»
Reason for closing thread
Version: 1.00, by Xenon Xenon is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-22-2002 Last Update: 01-10-2004 Installs: 77
 
No support by the author.

We hope most of you can use it
Sinecure has had the idea, which i thought is something nearly everbody who has ever been a mod wanted to have for a long time
I have to thank sinecure for the good templates, and for finding the funny mistakes i have made *gg*

edit:
nuno, i think we can do something similar for deleted threads too

Ok, basicly this hack does exactly as it says. After you click the "Open/Close Thread" link you will be prompted to enter a reason for closing the thread. After you submit the reason for closing that thread, the reason will appear ABOVE the first post in that thread, in its own seperate box.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 07-16-2002, 05:41 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then it should look as seen on the screenshots.
It works as it should here, and seems no other has the problem you have, so i think you have made a little mistake in your templates
Reply With Quote
  #83  
Old 07-16-2002, 09:47 PM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

something in your installation.txt was wrong Xenon...

I changed the following in SHOWTHREAD Template:

Code:
<br>
$thread[closereason]
<br>
into:

Code:
<br> 
$closereason 
<br>
and now it works great

cu
Schorsch
Reply With Quote
  #84  
Old 07-17-2002, 08:51 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

????

are you sure your showthread.php has this lines in it?
PHP Code:
if ($thread[open]) { 
  
$replyclose="{replyimage}"
  
$thread[closereason]=""
} else { 
  
$replyclose="{closedthreadimage}"
  if (
trim($thread[closereason])) { 
  
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1); 
  eval(
"\$thread[closereason] = \"".gettemplate("showthread_closereason")."\";"); 
  } else { 
    
$thread[closereason] = ""
  } 

because if you don't have this lines exactly like i posted here, you don't have installed the latest version, and then it's logical that you have to use other variables (because in the old version the variable was called $closereason )
Reply With Quote
  #85  
Old 07-17-2002, 09:10 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's the code you re-did for me because of the hack I have installed. Will this still work with your changes? This doesn't look the same in some areas as the new code. Just wanted to make sure after your last message.

PHP Code:
if ($thread[open]) {
  
$closereason="";
  eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  
$thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1);
  eval(
"\$closereason = \"".gettemplate("showthread_closereason")."\";");
  if (
ismoderator($thread[forumid],'canopenclose')) {
    eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
  } else {
    eval(
"\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
   }

Reply With Quote
  #86  
Old 07-17-2002, 10:04 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes it'll work.

the new code doesn't have strong codechanges, just a variable name has changed:
just replace all $closereason with $threadinfo[closereason] in this part of your code and in showthread template and you have the actualst version
Reply With Quote
  #87  
Old 07-17-2002, 11:36 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you measn to replace it with "$thread[closereason]" not "threadinfo[closereason]", right?

Also, I am really confused here. In the third line, you have $closereason but in lines 7 and 8 you have $thread[closereason]. Shouldn't that second line be $thread[closereason], also? Or am I missing the point again? I'm just going by what you told me to replace in that last message.

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


Quote:
Originally posted by Xenon
yes it'll work.

the new code doesn't have strong codechanges, just a variable name has changed:
just replace all $closereason with $threadinfo[closereason] in this part of your code and in showthread template and you have the actualst version
Reply With Quote
  #88  
Old 07-17-2002, 11:13 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, i meant $thread[closereason], sorry seems to be a bit confused these days

hmm i don't have $closereason in my file any more, you are correct it should also be $thread[closereason].
but it is here at my last file version
Reply With Quote
  #89  
Old 07-18-2002, 12:31 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to check that file in post #4 again then. It still has the following in it (on line 3 of the replace part and a couple of other spots in the file). (And I did clean my cache )

PHP Code:
Step 2Edit Showthread.php   (1 Modification)
----------------------------------------------
Find:
if (
$thread[open]) { 
  
$replyclose="{replyimage}"
} else { 
  
$replyclose="{closedthreadimage}"



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

Quote:
Originally posted by Xenon
yes, i meant $thread[closereason], sorry seems to be a bit confused these days

hmm i don't have $closereason in my file any more, you are correct it should also be $thread[closereason].
but it is here at my last file version
Reply With Quote
  #90  
Old 07-18-2002, 02:34 AM
TaP TaP is offline
 
Join Date: Nov 2001
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got every thing working right but i just wana know how to include date and time in message
Reply With Quote
  #91  
Old 07-20-2002, 10:27 AM
PsYc PsYc is offline
 
Join Date: Mar 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after re.open a closed thread the close reason still appeared at the top of the thread without the box around


problem fixed thanks Xenon
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05345 seconds
  • Memory Usage 2,336KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete