Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-16-2000 Last Update: Never Installs: 0
 
No support by the author.

Anyone have any ideas on how to add a "This thread closed by (who ever closed it)" whenever a thread is closed?

Thanks,
Parker

Show Your Support

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

Comments
  #2  
Old 08-16-2000, 06:58 PM
Guest
 
Posts: n/a
Default

yeah that would be a great addition... now that i have mods
Reply With Quote
  #3  
Old 08-16-2000, 07:17 PM
Guest
 
Posts: n/a
Default

until a hack is made for this, I would suggest just posting to a thread before closing it, and say why
Reply With Quote
  #4  
Old 08-16-2000, 07:20 PM
Guest
 
Posts: n/a
Default

yeah that's what i do...
Reply With Quote
  #5  
Old 08-17-2000, 06:48 PM
Guest
 
Posts: n/a
Default

In your showthread.php file look for:

if ($threadinfo[open]==1) {
$replyclose="$replyimage";
} else {
$replyclose="$closedthreadimage";
}

and change this to:

if ($threadinfo[open]==1) {
$replyclose="$replyimage";
} else {
$replyclose="$closedthreadimage";
$whoclosed = "This thread closed by $username";
}

then in your showthread template put:

$whoclosed

wherever you want it on the page.

Note: You will have to post the last message in the thread for the correct person to show up as to closed it as it lists the last person in thread as the closer. But this allows your mods to post the reason why it was closed and at the same time alert the author of the post who closed it.

Parker
Reply With Quote
  #6  
Old 08-17-2000, 07:12 PM
Guest
 
Posts: n/a
Default

No offense meant, Parker, but if the mod has to post the last post before closing the thread, he might as well say "this thread is closed by me because..." etc. Your hack doesn't shorten the procedure and therefore seems a bit redundent to me.
Reply With Quote
  #7  
Old 08-17-2000, 07:31 PM
Guest
 
Posts: n/a
Default

bira:

Yes, it is redundant but at the same time it puts at the top of the page who closed it. Members are lazy and gon't want to go down a long thread to see who closed something. This way they see at the top.

I am still working on a way to get this to be automatic but I thought that I would throw this out to see if anyone could get any use out of it.

Don't like it. Don't use it. Its that simple.

Parker
Reply With Quote
  #8  
Old 08-17-2000, 08:26 PM
Guest
 
Posts: n/a
Default

don't be discouraged on my account, Parker. I was merely hoping you could extend the hack further
Reply With Quote
  #9  
Old 08-17-2000, 09:39 PM
Guest
 
Posts: n/a
Default

Future Hackers of America

open postings.php and find:

Code:
  if ($threadinfo[open]==1)
  {
    $DB_site->query("UPDATE thread SET open=0 WHERE threadid=$threadid");
    $action="closing";
  }
This is where you want to start your hack. You will need to open newreply.php, see what the code does when a user posts a reply. Duplicate the required elements in postings.php inside the code above. You want to set $message to something like "Thread Closed". You already have the $username of the mod so you don't need to figure it out. You want to insert a post stating the thread is closed, which will be from the Mod right before the thread is really closed. It is really simple to do but I will leave it up to you guys to do it.

[sidenote]

Is there a way to call newreply.php from inside postings.php so that one wouldn't actually have to anything other than insert the call right before the thread close?

Code:
newreply.php?action=postreply&message=Closed%20Thread
The idea is to simulate what is sent when a user clicks on the "Post" button when entering a message. Possible? I don't know
Reply With Quote
  #10  
Old 08-17-2000, 11:55 PM
Guest
 
Posts: n/a
Default

rangersfan -

Code:
//Set EVERY form generated variable here, including:
//$action and
//$submit (<-- I think that's the name. It's the name value of the submit button)

require("newreply.php");
// Or, if that doesn't work:
// include("newreply.php");
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 10:46 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.04061 seconds
  • Memory Usage 2,261KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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
  • 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