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
  #162  
Old 10-26-2002, 12:21 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what about having it clean out the values for closereason and whoclosed when reopening the thread asthis info is redundant then anyway?

like, in postings.php replace:

PHP Code:
$closereason=" closereason='".addslashes($reason)."',whoclosed='".addslashes($bbuserinfo[username])."', ";
} else {
$closereason=""
with:

PHP Code:
$closereason=" closereason='".addslashes($reason)."',whoclosed='".addslashes($bbuserinfo[username])."', ";
} else {
$closereason=" closereason='',whoclosed='', "
imho this should stop interfering of the hacks as this opening rotine should be called by the other hack too...

kreftt
Reply With Quote
  #163  
Old 10-26-2002, 01:24 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you are running TECK's Quick Reply Box (with Close/Open thread switch) hack, you will need to do additional edits of this hack.

you have pasted this:

PHP Code:
        if ($threadinfo[open]) {
          
$threadinfo[open]=0;
          
$action='closed';
        } else {
          
$threadinfo[open]=1;
          
$action='opened';
        }

        
$threadinfo[notes]="Thread $action by $bbuserinfo[username] on ".vbdate($dateformat." ".$timeformat,time()).". $threadinfo[notes]";
        
$DB_site->query("UPDATE thread SET open=$threadinfo[open],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 
2 times in newreply.php and 1 time in editpost.php during the installation of TECK's hack.

if you replace now all three occurences with this:

PHP Code:
        if ($threadinfo[open]) {
          
$threadinfo[open]=0;
          
$action='closed';
        } else {
          
$threadinfo[open]=1;
          
$action='opened';
        }
if(
$threadinfo[open]==0) {
$closereason=" closereason='".addslashes($reason)."',whoclosed='".addslashes($bbuserinfo[username])."', ";
} else {
$closereason=" closereason='',whoclosed='', ";
}
        
$threadinfo[notes]="Thread $action by $bbuserinfo[username] on ".vbdate($dateformat." ".$timeformat,time()).". $threadinfo[notes]";
        
$DB_site->query("UPDATE thread SET ".$closereason."  open=$threadinfo[open],notes='".addslashes($threadinfo[notes])."' WHERE threadid='$threadid'"); 
the both hacks should be working together. at least they do for me now. afaik you dont need to edit something in the fileedits to newthread.php

kreftt
Reply With Quote
  #164  
Old 11-11-2002, 12:51 PM
nemesis01's Avatar
nemesis01 nemesis01 is offline
 
Join Date: Dec 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bring this back up, just installed it and am getting this error:

Parse error: parse error in /home/virtual/site2/fst/var/www/html/vb/postings.php on line 53

And that line is:

PHP Code:
eval("standardredirect(\"".gettemplate("redirect_openclose")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");"); 
Any idea's? :ermm:
Reply With Quote
  #165  
Old 11-11-2002, 02:08 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, perhaps you've forgotten a ; a line before...

this line seems correct, and works here
Reply With Quote
  #166  
Old 11-11-2002, 02:16 PM
nemesis01's Avatar
nemesis01 nemesis01 is offline
 
Join Date: Dec 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bummer, cant figure it out. Might another hack be the problem? Interfering with it I mean.....
Reply With Quote
  #167  
Old 11-11-2002, 02:26 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it shouldn't...

can you post 5 lines above and under this one line?
Reply With Quote
  #168  
Old 11-11-2002, 02:30 PM
nemesis01's Avatar
nemesis01 nemesis01 is offline
 
Join Date: Dec 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My bad, fixed it after 2 hours staring at the same 2 lines. Problem was an extra '"); had been added for some reason to the line above.

Thanks for your time anywayz.
Reply With Quote
  #169  
Old 01-02-2003, 03:49 PM
Courage Courage is offline
 
Join Date: Feb 2002
Location: Romania
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I run 2.2.8 and after i closed & reopened a thread the reason still appears.

This is what I've done:

In postings.php search for:

PHP Code:
$closereason=""
Replace with:

PHP Code:

$closereason
=" closereason='', "
Thanks to krefft

https://vborg.vbsupport.ru/showthrea...162#post314162
Reply With Quote
  #170  
Old 01-04-2003, 07:00 PM
ethics ethics is offline
 
Join Date: Feb 2002
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas as to why the reason will not show? I have the quick reply hack applied but didn't see the code that others mentioned.
Reply With Quote
  #171  
Old 01-06-2003, 09:03 PM
drumsy's Avatar
drumsy drumsy is offline
 
Join Date: Nov 2001
Location: Charlotte, NC
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, after using information from many posts here, I've finally gotten this to work perfectly! Thanks everyone!
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 05:28 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.15565 seconds
  • Memory Usage 2,331KB
  • 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
  • (7)bbcode_php
  • (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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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