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)
-   -   Quick Close/Open Thread (with reason) (https://vborg.vbsupport.ru/showthread.php?t=40275)

TECK 06-24-2002 10:00 PM

Quick Close/Open Thread (with reason)
 
This hack will allow you to [high]close/open a thread[/high] in 2 ways:
1. By entering a reason, while viewing the thread.
Let's see you view a thread and you find some post that is irrelevant to the content of your board (advertising, spam, etc).
The normal way is to go and reply and right after to close the thread.
Not anymore. Once entered the reason, vBulletin will post that message and close the thread for you automatically.
To re-open it, it goes the same way.

2. By adding an attachment or special note to your new thread or reply.
Let's see you want to open a new thread, make an attachment and close rightaway the thread.
All you have to do is check the box related to Close/Open Thread. vBulletin will post that message and close the thread for you automatically.
For new replies goes the same way. By simply checking the box, vBulletin will post your reply and Close/Open the thread.

[high]ADVANTAGES[/high]
- no queries or database modifications are needed
- the hack is template based, so you can customize it in few seconds
- only people who have the right to open/close threads on your board will see this option

ESTIMATED INSTALL TIME: 10 minutes
SUGGESTED BY: Sinecure
TESTED IN VERSION: 2.2.6

[high]RELATED HACKS[/high]
Quick Reply Box (with Close/Open thread switch)
Quick Delete Post

[high]UPDATES[/high]
Version 1.1
------------------------------------
Changes:
- added the Close/Open check box in editpost.php



You like this hack? Please click on the [high]Install[/high] button.
To download the latest version of this hack, click below:

TECK 06-25-2002 05:57 PM

This screenshot will let you view the Quick Close/Open Thread in showthread.php:

TECK 06-25-2002 05:58 PM

The result, after you quick closed the thread, with the listed reason.
Also, you can re-open the thread in the same location:
(notice the post title)

TECK 06-25-2002 05:59 PM

This screenshot will let you view the Quick Close/Open Thread in newreply.php and newthread.php.
The only difference is in newthread.php.
You will not have an [high]Open[/high] option because there are no replies:

TECK 06-25-2002 05:59 PM

The result, after you quick closed the new thread, with an attachment:

bandersen 06-25-2002 06:21 PM

Very cute... on my install list. Thank you!!

Takara 06-25-2002 07:44 PM

If I just follow the instructions for newthread.php and newreply.php, can I just make it work with the checkbox? I'm not intrested in having the quick close on the showthread.

Ambex Net 06-25-2002 07:58 PM

Will this work ok on 2.2.5? Just making sure before I install.

Velocd 06-25-2002 08:29 PM

I'm already presuming that the thread creator (or admin, depends on your forum options) is the only one who can see the "open/close" thread box, correct?

Anyway, thats probably a given. Great hack Nakkid, defiantly installing!

Velocd 06-25-2002 09:13 PM

Just installed and it works great ;)


All times are GMT. The time now is 07:54 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.01125 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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