PDA

View Full Version : Mini-Hack: Quick Reply does not show in Closed Thread even for Moderators


Erwin
09 Jan 2004, 00:52
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change to:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Done! :)

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

corsacrazy
09 Jan 2004, 01:01
this certainly is a mini hack nice work mate shud come in handy

FleaBag
09 Jan 2004, 16:20
I second that, will definitely come in handy.

poetic
09 Jan 2004, 19:44
Very nice.. I did this with an if statement, but you way makes much more sense.

Hoffi
10 Jan 2004, 01:19
This Hack could win be the smallest-Hack award. :D

But the use is much bigger. Thanks.

Sebastian
02 Mar 2004, 00:28
you can do this without hacking.

in showthread template find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Ig@r
02 Mar 2004, 06:16
I found it annoying that even though staff close threads, the Quick Reply still shows up
Me too. :)

Thanks for the hack.

Sebastian, I would like to thank you as well. Template modification is easier :)

NexVision
02 Mar 2004, 08:17
anyway to make it show for admins and mods

Erwin
02 Mar 2004, 11:10
you can do this without hacking.

in showthread template find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


True - but believe it or not, I prefer file hacking now to template hacking because I find it easier to compare files when upgrading than to revert templates and remodify them. :)

Beermonster
02 Mar 2004, 19:52
nice :) thanks

FleaBag
04 Mar 2004, 18:21
Just got around to adding this, thanks Erwin.

sabret00the
01 Apr 2004, 11:04
Just got around to adding this, thanks Erwin.
is there anyway that you can make sure it remains for admins?

Choclo
18 Apr 2004, 13:15
Installed, thanks!

BeatYou
19 Jun 2004, 07:49
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

Borgs8472
01 Oct 2004, 00:11
Blessed art thou

Mitsuaki
06 Oct 2004, 21:35
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



'6' is the usergroup ID for Admins... Yours may be different lol

Caiman
04 Dec 2004, 03:12
Works a treat, thanks!

yoyoyoyo
13 Jan 2005, 04:40
I figured a way to do it using the template mod.... still working on the file mod for it

In showthread template find:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Replace with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



'6' is the usergroup ID for Admins... Yours may be different lol


*****clicks update******

Reece D
01 Mar 2005, 11:59
*installed* cheers for this ..

Eagle Creek
02 Mar 2005, 22:11
Does it work on 3.0.7?

Oblivion Knight
02 Mar 2005, 22:16
Does it work on 3.0.7?Yes, it continues to work perfectly on 3.0.7.. :)

Eagle Creek
02 Mar 2005, 22:18
Yes, it continues to work perfectly on 3.0.7.. :)
Th.. th... THANKYOU :D

Polo
16 Mar 2005, 16:23
Right now this may not be a problem for our Christian Site, but once our site grows i'm pretty sure it will come handy ;) Thanks Erwin.