PDA

View Full Version : QuickClose (threads)


N!ck
04-27-2002, 10:00 PM
This was requested by TaP here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37966).

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! ;)

N!ck
04-29-2002, 02:36 AM
thanks :D

Boofo
04-29-2002, 02:54 AM
I'm getting an error now when I click on the close OR open link. It says the following:

The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session.

Try this action again!

When I click on try this action again, then it goes through fine. Any idea what it might be?

N!ck
04-29-2002, 03:01 AM
that happens to me to, but i'm not sure...:/

i bet firefly knows

Boofo
04-29-2002, 03:03 AM
It worked fine before the open was added. Could it been somewhere in there? I have faith in you. You'll get it. :D

N!ck
04-29-2002, 03:30 AM
hmmmm...that helps. i'll take another look.

N!ck
04-29-2002, 03:36 AM
unfortunately, i'm still mystified as to why this is occurring

Boofo
04-29-2002, 04:09 AM
Have you checked with Firefly to see if he can figure it out? It seems like it isn't taking the first sessionhash but does fine on a re-try. It has to be in the code you added but I am too new at this to figure this one out yet. :(

Boofo
04-29-2002, 04:44 AM
I think I may know the problem. It seems that when the Super Moderator clicks on the close and open link, it works right the first time. Just when the Admin does it, they have to re-do it. Does that help at all?

TaP
04-29-2002, 05:06 AM
wow... looking great cant wait till the bug if fixed

N!ck
04-29-2002, 01:00 PM
nah i'm still not sure...

i've pm'ed firefly to read this thread and shed some light on the situation, but i hate pm'ing people for support :)

Admin
04-29-2002, 01:11 PM
You need to use $session[dbsessionhash] instead of the regular one.

Boofo
04-29-2002, 03:18 PM
Thanks Firefly! It worked like a charm. Knew you would be the one to know. :-)

Boofo
04-29-2002, 03:20 PM
And thanks goes out to you, nicksaunders, for coming up with the great hack in the first place. Hope to see many more from you. :-)

N!ck
04-30-2002, 12:01 AM
:) my pleasure...thanks firefly

Sparkz
04-30-2002, 08:39 AM
They way you change the major version almost at every revision kinda reminds me about MS ;)

N!ck
04-30-2002, 01:34 PM
the way i do it is if there's a feature (or several, depending on the size of the hack) added, i go up a full version number...if it's a fix i just go up .1

N!ck
05-01-2002, 02:56 AM
darn i can't think of any way to improve this!!! :O :(

TaP
05-01-2002, 06:13 AM
any way to make it when you click the close or open button it goes back to the forum display page and not the thread itself?

this would be complete if you could add that :)

Thanks Nick

TaP
05-01-2002, 06:59 PM
possible?

N!ck
05-01-2002, 10:10 PM
i'll take a look at postings.php

TaP
05-07-2002, 06:37 AM
any news?

N!ck
05-07-2002, 01:18 PM
nope

Player
09-05-2002, 05:43 PM
I have created a Usergroup, that can moderate one specific forum but they can't see the Button. How can I fix that?

Edit: I have found it :)