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

Reply
 
Thread Tools
Mini-Hack: Quick Reply does not show in Closed Thread even for Moderators Details »»
Mini-Hack: Quick Reply does not show in Closed Thread even for Moderators
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-08-2004 Last Update: Never Installs: 43
 
No support by the author.

Quick Reply does not show in Closed Thread even to Mods (Mini-Hack)

I found it annoying that even though staff close threads, the Quick Reply still shows up for staff because staff can always reply to closed threads. This caused staff to keep posting because some staff miss the fact that the thread is closed.

This is a mini-hack to make the Quick Reply not show up for everyone when a thread is closed. Staff can still reply by clicking on the "Closed" button.

A quick mod to showthread.php:

Find:

PHP Code:
($thread['open'] OR can_moderate($threadinfo['forumid'], 'canopenclose')) 
Change to:

PHP Code:
($thread['open']) 
Done!

Remember, when changing code WITHIN a query, don't add comments around the change. That would cause a parse error.

Show Your Support

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

Comments
  #12  
Old 03-04-2004, 04:21 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just got around to adding this, thanks Erwin.
Reply With Quote
  #13  
Old 04-01-2004, 09:04 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FleaBag
Just got around to adding this, thanks Erwin.
is there anyway that you can make sure it remains for admins?
Reply With Quote
  #14  
Old 04-18-2004, 11:15 AM
Choclo Choclo is offline
 
Join Date: Sep 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, thanks!
Reply With Quote
  #15  
Old 06-19-2004, 05:49 AM
BeatYou BeatYou is offline
 
Join Date: Jun 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same problem, but not that my mods didn't know the thread was closed, they were just cocky and post anyway. Thanks
Reply With Quote
  #16  
Old 09-30-2004, 10:11 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blessed art thou
Reply With Quote
  #17  
Old 10-06-2004, 07:35 PM
Mitsuaki Mitsuaki is offline
 
Join Date: Jun 2003
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabret00the
is there anyway that you can make sure it remains for admins?
I figured a way to do it using the template mod.... still working on the file mod for it

In showthread template find:

Code:
$quickreply
Replace with:

Code:
<if condition="$thread['open']">$quickreply
<else />
<if condition="$bbuserinfo[usergroupid]== '6'">$quickreply</if>
</if>
'6' is the usergroup ID for Admins... Yours may be different lol
Reply With Quote
  #18  
Old 12-04-2004, 01:12 AM
Caiman Caiman is offline
 
Join Date: Apr 2004
Location: Manchester UK
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works a treat, thanks!
Reply With Quote
  #19  
Old 01-13-2005, 02:40 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mitsuaki
I figured a way to do it using the template mod.... still working on the file mod for it

In showthread template find:

Code:
$quickreply
Replace with:

Code:
<if condition="$thread['open']">$quickreply
<else />
<if condition="$bbuserinfo[usergroupid]== '6'">$quickreply</if>
</if>
'6' is the usergroup ID for Admins... Yours may be different lol

*****clicks update******
Reply With Quote
  #20  
Old 03-01-2005, 09:59 AM
Reece D Reece D is offline
 
Join Date: Jul 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed* cheers for this ..
Reply With Quote
  #21  
Old 03-02-2005, 08:11 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work on 3.0.7?
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 07:08 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.12345 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (2)bbcode_php
  • (3)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
  • (2)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