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)
-   -   QuickClose (threads) (https://vborg.vbsupport.ru/showthread.php?t=37987)

N!ck 04-27-2002 10:00 PM

QuickClose (threads)
 
This was requested by TaP here.

QuickClose

This hack places a small link next to each thread title for admins, supermods, and mods to close that thread.

Current Version: 3.1
  • Session error message problem fixed.

Previous Version: 3.0
  • "Close" text changes to "open" when thread is closed.

Previous Version: 2.0
  • Added moderator/forum checking.
  • Added (optional) forum exclude list.

No screenshot...it's just a link that says [close].

John 04-28-2002 09:36 PM

Nice, small hack - I'm thinking of using adaptations of this in my gallery, where links for editing and closing threads can look messy because of the simplified layout.

Austin Dea 04-28-2002 09:59 PM

Nice. Be sure to note that those usergroup ID's are the default ones ;).

TaP 04-28-2002 10:04 PM

very nice man! thanks you very much for helping out! is there any way to make it only show up in certain forums?

Sparkz 04-28-2002 10:12 PM

You might want to add a check for ismoderator($forumid) to avoid showing the link to all moderators.

N!ck 04-28-2002 11:33 PM

thanks for the suggestions sparkz & TaP - i will add these to the file

N!ck 04-28-2002 11:47 PM

added :)

Boofo 04-29-2002 02:13 AM

Great hack! thanks!

One little request... :) Is there a way to have the word "close" change to "open" after you have closed the thread so you can open it up quickly too? (if someone wants to do that) That way we could tell at a quick glance from the listing whether it is open or not and open it up the same way. I hope I explained it better than I think I did. :-)

N!ck 04-29-2002 02:32 AM

okay, feature added :)

Boofo 04-29-2002 02:35 AM

Thnk you very much! A great addition to a geat hack! ;)


All times are GMT. The time now is 09:04 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.02276 seconds
  • Memory Usage 1,728KB
  • 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