![]() |
Reason for closing thread
We hope most of you can use it :)
Sinecure has had the idea, which i thought is something nearly everbody who has ever been a mod wanted to have for a long time :) I have to thank sinecure for the good templates, and for finding the funny mistakes i have made *gg* edit: nuno, i think we can do something similar for deleted threads too :) Ok, basicly this hack does exactly as it says. After you click the "Open/Close Thread" link you will be prompted to enter a reason for closing the thread. After you submit the reason for closing that thread, the reason will appear ABOVE the first post in that thread, in its own seperate box. |
Before I say what this hack does, I want to Thank Xenon for writing ALL the PHP code for this hack. I did the template modifications for this hack, and the instructions. So Thanks SOOOOO MUCH Xenon, ur a great guy :)
w00t, my first hack, with HUGE thanks to Xenon, hes the real master mind behind this hack guys!!! |
cool, i've been waiting for something like this, i'll install now
|
Very useful hack Sinecure :)
Could you make it work for deleted threads also, with an email notification to thread posters saying why it got deleted? TIA :) |
Holly ++++. I love this hack to death. Very Very nice hack. This is a very nice one. I installed it and it works wonders. Amazing feature guys. Simply amazing. Never stop making the cool stuff.
|
neet! :C, i installed, works great
|
Very nice Idea, do you think this would work on 2.0.3?
|
Quote:
|
yes i think it would work on 2.0.3 too
|
It would be nice (and more efficient) to have the prompt as a real Javascript promt, that pops up when you choose the Close option from the drop down.
|
An usefull & great hack. Well done, Xenon&Sincecure.
|
Quote:
|
Same problem, javascript is nothing i can do :)
|
Yea, javascript would be great. :)
|
Another possibly nice feature would be to have an ability to add various reason to say a drop down list that would automatically insert the reason. For lazy people like myself and for admins to kinda make a more uniform reasons.
|
amazing !! cheers man.
|
Quote:
|
hehe i was working on this one sinecure, since we spoked on msn.. and i had it done so it posts automatically the message the same way the dropdown does... :)
also it post the reason on the forumdisplay.... if interested let me know and i will release it. i wanted to finish some bugs and email it to you so you can release it.. to late. :p you did it on a different way. the only thing i have left is to delete automatically the post when you open the thread again. is good that you use vB in your localhost... huh? ;) |
Release it Nakkid, I'm curious about the features of yours also....or...you could integrate your features with his, and get the deserved credit, but then we'll have a really great hack.
|
hmmm . . I can't run the query for some reason,
I get this result: SQL-query : ALTER TABLE thread ADD `closereason` VARCHAR(255) NOT NULL MySQL said: Duplicate column name 'closereason' |
seems there is already a column name closereason...
have you run that query twice? or installed another hack which needs such a column.. |
There appears to be a slight error in the instructions for this hack:
Quote:
Great hack, however. I'm going to attempt to alter it so that if a reason is not specified, a blank "Reason for close" box does not appear. Paul |
oh, i see you're right.
damn, it would have been better if i was the person who released it, so i could change the file myself, and sinecure also can because he's the admin ;) ok, we'll have to wait until he comes back :) |
on second thought... it appears that the table is closed in the showthread_closed... ahhh! headache.. :: stares at tables ::
Edit: Never mind. My eyes were playing tricks with me. It is an error in the instructions ;) Also, rather than add <br>$closethread</br>, I just put a <div></div> around the whole contents of the closethread template. Paul |
Quote:
|
You should change
PHP Code:
PHP Code:
|
thanx mate!
that $thread[closereason] was an old version of the code, my fault i have forgotten it |
nice i love it, but can someone help me please? since i added this hack i get javascript errors in the newreply page and none of the buttons work or anything. what would be causing this? please I need that stuff working again!!
|
hmm sry for the double post but all i had to do was reupload my .js files and everything seems to be fine now..strange
|
When someone closes the thread, and at the top it shows the reason for it, how can I make it so it says...
Thread Closed by: Username here <BR> Reason for Closure: reason here If anyone can do that, I would be very grateful, this is a good useful hack! |
really like.. been waiting for this..
great hack, thanks |
GameCrash:
Thanks so much for your changes. They work wonderfully. I agree with Tha Rock--Showing the username would be wonderful as well. |
Ok I updated the instructions to incorporate that new code. Hopefully Xenon will make a modification to the code in ordere to have the Name of the person who closed it :)
|
just installed it, no problems... Great Hack! :)
|
Sinecure,
Everything else installed fine except the following. In showthread.php, how would I put the code: Code:
if ($thread[open]) { Code:
if ($thread[open]) { |
Sinecure & Xenon greate thanks. I`ll reguest this add-on here:https://vborg.vbsupport.ru/showthrea...threadid=39298 and it`s done.... Uraaa..... :)
|
I just downloaded the new file and it has the links to vb.org's images directories in it. :)
|
Quote:
I have the instructions located here: http://www.pixeljunction.com/misc/cl...n_install.phps |
It's still messed up in the last part of it. :) Did you get a chance to look at the code I posted?
|
Well judging by looking at that it seems you either have a hack installed, or maybe an older version of vBulletin, I'm leaning more towards a hack installed.
Maybe Xenon would know how to intergrate that code you have there, with the code neccesary to run this hack. |
All times are GMT. The time now is 04:45 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|