View Full Version : Major Additions - [OzzModz] Closed Thread Reason
ozzy47
08-09-2014, 10:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png
This is a modification that will allow admins to give their admins and mods, the ability to add a reason for closing a thread. It will display the reason for the thread being closed above the thread.
You can choose which usergroups can see the reason, which usergroups can add a reason, which usergroups can delete a reason and make it so multiple users can add reasons, or just a single entry.
Another feature of this mod, will allow admins the ability to disable the ability for staff to reply on closed threads. As we all know, by vBulletin default, admins and moderators can add replies to closed threads. Now you can prevent that from happening. You can also select which usergroups can add replies, if their usergroup is a admin or moderator group.
It is a simple installation, upload the file in the UPLOAD folder, then import the product XML, product-ozzmodz_t_closed_reason
You can edit the options under the settings, [OzzModz] Closed Thread Reasons Settings
Major Features
Usergroups Can See: Allows usergroups to see the thread closed reason.
Usergroups Can Add: Allows usergroups to be able to add thread closed reason.
Usergroups Can Delete: Allows usergroups to be able to delete thread closed reason.
No More Staff Replies: Ability to disable the ability for staff to reply to the closed threads.
Works In Forums: Ability to select which forums the mod will work in.
vBulletin Versions: Compatible with vB versions 4.x.x
Complete Feature List
Option to disable the mod completely.
Option to select which usergroups can see the reason for the thread being closed.
Option to select which usergroups can add a reason for the thread being closed.
Option to allow multiple reasons being added to the reason closed block.
Option to select which usergroups can delete reasons for the thread being closed.
Option to disable the ability for staff to reply to the closed threads.
Option to select which staff groups can still reply to the closed thread, if you choose to disable the ability for staff to reply to the closed threads.
Option to show a closed thread image inside the block.
Option to set the name of the image you wish to use for the closed thread image, so you can easily change it.
Option to select which forums the mod will work in.
Option to show guests a message to see the thread closed reason message, if you allow that group to see the reason.Frequently Asked Questions.
Q. Why do I need such a thing, you ask?
A. Some admins might like to show users why a thread was closed.
-------------------------------------------------------------------------------------------
If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->
Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->
What does 'Marking As Installed' do ?
* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.
* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.
* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.
I appreciate the support!
-------------------------------------------------------------------------------------------
First screenshot is of the acp settings.
Second screenshot what the block looks like with a comment added, being viewed by a user that can add a reason.
Third screenshot is what the block looks like with a comment added, being viewed by a user that can not add a reason.
Fourth screenshot is what the block looks like with multiple comments added.
-------------------------------------------------------------------------------------------
* History (Changelog) *
-------------------------
v1.0.0 (August 9, 2014)
- Initial public release.
v2.0.0 (August 16, 2014)
- Completely rewrote the mod.
- Fixed a issue with the mod not working on some sites.
- Added the missing phrases, now the mod is fully phrased.
- Increased security.
- Added a option to show a closed thread image in the block.
- Added a option to set the image name, so you can easy change it to one of your choosing.
- Added a option to select which forums the mod will work in, if the thread is closed.
- Added a option that if you allow guests to see the thread closed reason block, to show them a message asking them to register to see the reason for the thread being closed.
ozzy47
08-09-2014, 11:04 PM
Reserved.
ozzy47
08-09-2014, 11:05 PM
Reserved also.
Alan_SP
08-13-2014, 11:18 AM
This looks like very good and useful idea. Sometime people ask why thread has been closed. And some threads are closed only temporarily, to be opened later. We can make these things clear with your mod right away on closing, without farther discussions with users. :up:
ozzy47
08-13-2014, 11:24 AM
Glad you find it useful, and thanks for marking as installed. :)
Alan_SP
08-13-2014, 11:34 AM
I tested it a bit, first impressions:
a) Please include install instructions. I know how to install, but some people might have problems.
b) Please make this lines of code into a phrase:
<h2 class="blockhead" style="text-align:center; font-weight:bold;">This Thread Has Been Closed</h2>
<div class="blockbody settings_form_border" id="staff_reply" style="{vb:raw vbcollapse.collapseobj_staff_reply};">
<vb:comment><div class="blockhead" style="text-align:center; font-weight:bold;">Thread Closed Reason </div>
I need to edit this text manually in template, but it's much easier to work with phrases.
c) A feature request:
If we enable for guests to see reason why thread is closed, there could be option for us to ask them to register before they can see thread closing reason. Otherwise, if we don't ask them that, they see reason normally.
EDIT: Added more lines of code without phrases, colored them into red, as I later saw they also needs to be translated.
Alan_SP
08-13-2014, 11:39 AM
I have a problem with showing thread closing reason. I enter reason, but I only see:
https://imagizer.imageshack.us/v2/382x163q90/910/8dtZUd.png
ozzy47
08-13-2014, 12:02 PM
If you highlight the area, does anything show?
Alan_SP
08-13-2014, 09:15 PM
If you mean to select text as for coping it, everything is the same, only selected. No given reason is shown, - (minus sign) stays the same as when it's not selected.
EDIT: I enabled guests to see thread closing reason, so you could check for yourself: http://slobodni.net/t116947/
Guests obviously don't see minus sign and x to delete reason, but also don't see reason at all, just user name of person who gave reason.
ozzy47
08-13-2014, 09:18 PM
Ok PM me a admin account, and a link to a thread where the display is, and I can look into it.
CAG CheechDogg
08-14-2014, 05:51 AM
Oh this is nice ... lol...im stoked!
CAG CheechDogg
08-14-2014, 06:19 AM
Good stuff Ozzy! Just one question ..well a little request..
How can I add an image of a lock or something to display along with this?
CAG CheechDogg
08-14-2014, 06:38 AM
Ok I figured it out ..in case someone wants to add an image you can do this:
Open up the following template:
ozzmodz_t_closed_reason_display
look for:
<h2>
{ozzmodz_t_closed_reason_output}
</h2>
Add above it:
<img src="http://www.yourdomain.com/your-image-path" width="image's width" height="image's height" alt="If you want one" border="0" />
I always add the image's width and height, so should you....
ozzy47
08-14-2014, 09:26 AM
Oh this is nice ... lol...im stoked!
Thanks, glad you like it, and thanks for marking as installed. :)
Good stuff Ozzy! Just one question ..well a little request..
How can I add an image of a lock or something to display along with this?
I am going to be pushing out a update soon to sort some issues, I can see about adding this.
Ok I figured it out ..in case someone wants to add an image you can do this:
Open up the following template:
ozzmodz_t_closed_reason_display
look for:
<h2>
{ozzmodz_t_closed_reason_output}
</h2>
Add above it:
<img src="http://www.yourdomain.com/your-image-path" width="image's width" height="image's height" alt="If you want one" border="0" />
I always add the image's width and height, so should you....
Do you or anyone have a good image to use, so I can add it to the mod?
CAG CheechDogg
08-14-2014, 10:56 AM
For the image how about this in the attachment ...
Or making it where each individual adds their own image maybe from the settings?
CAG CheechDogg
08-14-2014, 10:58 AM
I am using this one that I found online and just added a drop shadow:
https://vborg.vbsupport.ru/external/2014/08/30.png
You can see what it looks like here:
https://www.cagclan.com/community/threads/32770-Closed-Thread-Feature-Example
Alan_SP
08-14-2014, 12:11 PM
For some reason I don't see image and receive text forbidden when I follow your link. Do you block old Opera browsers?
Something similar I experienced on Ozzy's site: http://ozzmodz.com/showthread.php/533-Site-doesn-t-work-with-old-Opera-(maybe-other-older-browsers-too) After modifying blocked string I could access his site with old Opera.
ozzy47
08-14-2014, 12:26 PM
Yeah if is probably the block user agent mod stoping you from his site.
Alan_SP
08-14-2014, 12:37 PM
Just tried to use FireFox browser with same result. :( It's something different, not my UA. Maybe something for blocking proxy, but I'm not using proxy...
CAG CheechDogg
08-14-2014, 05:07 PM
No..i dont block proxies ..i do have the the block spiders mod but thats about it ... no one else has problems ...weird ..
CAG CheechDogg
08-14-2014, 05:16 PM
Removed content.... Ozzy agreed im a "Goofball" :)
Alan_SP
08-14-2014, 10:03 PM
Don't know, maybe you're blocking my IP, i.e. my countries IP? Who knows...
ozzy47
08-14-2014, 10:23 PM
For the image how about this in the attachment ...
Or making it where each individual adds their own image maybe from the settings?
Yeah I will probably use that, and there will be a setting where you can change the image name, to use different images.
CAG CheechDogg
08-15-2014, 10:46 PM
Don't know, maybe you're blocking my IP, i.e. my countries IP? Who knows...
Ok wait, so it wont allow you on my site at all?
Yeah I will probably use that, and there will be a setting where you can change the image name, to use different images.
Sweet Ozzy! yes that setting to allow different images by each user would be great! WOOHOO!
ozzy47
08-15-2014, 10:58 PM
Hmm, it won't be by each user, it will be global for now.
CAG CheechDogg
08-15-2014, 11:09 PM
Yeah , that's what I mean, global, I said user because of each user that download and installs your mod lol ...
ozzy47
08-15-2014, 11:10 PM
Ahhh ok gotcha. :)
CAG CheechDogg
08-16-2014, 05:48 AM
Ozzy..im sorry about that long list of bots I block my Man, if you can just delete that post or replace it with a "CheechDogg is a goofball" lol ..
ozzy47
08-16-2014, 08:29 AM
Nah I cant, I don't have that kind of perms here, I am just a glorified member. :)
CAG CheechDogg
08-16-2014, 10:07 AM
Lol! I just edited all out lol ...thanks Ozzy
ozzy47
08-16-2014, 10:16 AM
Hopefully sometime today I will have a update, it is almost a complete re-write so it is taking a bit of time. :)
I have it just about ready on my test site, then I need to see if it is working on Alan's site, as he had the original issue.
CAG CheechDogg
08-16-2014, 10:20 AM
SaaaaWeeeet! .... thanks man you always come through! Can't wait!
Nirjonadda
08-16-2014, 11:30 AM
Please can you add option enable only for selected forum ? If so i can use on my site.
Alan_SP
08-16-2014, 11:40 AM
Ok wait, so it wont allow you on my site at all?
Now I can see you site. But before I saw "Forbidden!". Probably blocked IP address, or something. As my operator uses dynamic IPs, now I probably have different IP, so I can see your site, and the way you used image.
Talking about the way you used your image, in my opinion I would use table, made two (or maybe three) columns, in left (or both left and farthest right) I'd put image, and in right (or in the middle) I'd put reason for closing text. It seems better solution (and shorter vertically wise).
so, it would look something like:
Image | Closing reason
or
Image | Closing reason | Image
Mod doesn't work on mobile skins (at least not on dartho's), so users probably would look at this on notebook, desktop, which has more screen space.
And I think that everyone who wants something like this can make its own template change, as it is pretty easy.
Alan_SP
08-16-2014, 11:42 AM
Please can you add option enable only for selected forum ? If so i can use on my site.
Why? Just tell your moderators not to use it in places you don't want it to be used. Users don't see thread closing reason unless it's specifically given. Moderators see option to give a reason, but you can tell them to ignore it in certain forums.
On the other hand, if Ozzy is willing, why not...
ozzy47
08-16-2014, 11:46 AM
Please can you add option enable only for selected forum ? If so i can use on my site.
I will see about that once I get everything that is there already working.
CAG CheechDogg
08-16-2014, 03:12 PM
Now I can see you site. But before I saw "Forbidden!". Probably blocked IP address, or something. As my operator uses dynamic IPs, now I probably have different IP, so I can see your site, and the way you used image.
Talking about the way you used your image, in my opinion I would use table, made two (or maybe three) columns, in left (or both left and farthest right) I'd put image, and in right (or in the middle) I'd put reason for closing text. It seems better solution (and shorter vertically wise).
so, it would look something like:
Image | Closing reason
or
Image | Closing reason | Image
Mod doesn't work on mobile skins (at least not on dartho's), so users probably would look at this on notebook, desktop, which has more screen space.
And I think that everyone who wants something like this can make its own template change, as it is pretty easy.
Nice idea Alan ! I will check that out once Ozzy spits out the update .....
ozzy47
08-16-2014, 03:41 PM
This is how it's going to look in the screenshot.
CAG CheechDogg
08-16-2014, 03:44 PM
Ooooh ....Sexeh!
Alan_SP
08-16-2014, 03:47 PM
This is how it's going to look in the screenshot.
It looks like you put image in background?
ozzy47
08-16-2014, 04:00 PM
No, the image is not in the background. :)
ozzy47
08-16-2014, 04:51 PM
Looks like I might just have it licked, v2.0.0 is working on Alan's site just fine. Will wait to see if he comes back on.
ozzy47
08-16-2014, 05:03 PM
But I do see a couple of issues I need to fix. :(
CAG CheechDogg
08-16-2014, 05:42 PM
ok good stuff ...
ozzy47
08-16-2014, 08:34 PM
v2.0.0 Released August 16th 2014
- Completely rewrote the mod.
- Fixed a issue with the mod not working on some sites.
- Added the missing phrases, now the mod is fully phrased.
- Increased security.
- Added a option to show a closed thread image in the block.
- Added a option to set the image name, so you can easy change it to one of your choosing.
- Added a option to select which forums the mod will work in, if the thread is closed.
- Added a option that if you allow guests to see the thread closed reason block, to show them a message asking them to register to see the reason for the thread being closed.
ozzy47
08-16-2014, 08:43 PM
@Alan_SP, your site is running the latest version, but you may want to grab the new files anyway. :)
Alan_SP
08-16-2014, 09:15 PM
I just tested how it works on my site. It works great now. :up:
Only thing I noticed is that there's no easy way to select all forums, I needed to select them all manually. If there could be option to easily select all forums? For example, in the beginning to have option for none, all and then list of all individual forums? Or maybe option if we want to select individual forums or not? For example, I want to use it everywhere.
Especially as some of guests could be curios why thread is closed and they might register just to see this reason, as now we can choose not to show them reason, but "please register" text instead. :D
And yes, I'll download installation files just in case, thank you. :up:
ozzy47
08-16-2014, 09:19 PM
Click the first forum in the list, scroll down to the last forum, then hold shift, and right click on the last forum.
You can change the message the guest see's by editing the phrase, ozzmodz_t_closed_reason_guest
Alan_SP
08-16-2014, 09:44 PM
Yes, I did that for selecting all forums, just thought that it might be easier for some people... And you don't need to right click, left click works just fine. Acutally, I don't know what would be if the right click is used?
And yes, I translated everything important, including guest message. Hopefully over the time there would be some curios users who would register just to see why thread has been closed. :D
ozzy47
08-16-2014, 09:54 PM
Yeah there is no easy way to gt all forums in the vBoptions that I know of.
Would be nice to get some people to register to see the reason. :)
Alan_SP
08-16-2014, 10:05 PM
Well, your mod can at least help somewhat to get those curios enough to register. :D
And just to mention, there's some minor spelling errors, nothing that impacts the way the mod works (or I didn't noticed that for the moment).
For example:
_______
So by setting this to "Yes" you will stop dmins and moderators from being able to reply to closed threads.
Note: Of course this will only work if the selected usergroups are a admin or moderator group.
Set this to "Yes" to chow a thread closed image in the closed reason block.
________
As you can see, nothing big, but just to mention...
ozzy47
08-16-2014, 10:08 PM
Crap, I will get those fixed up in a future update, that's what I get for coding when I am tired. :)
Alan_SP
08-16-2014, 10:34 PM
And I just tested with really long thread closing reason, and there's a bit of overlapping text with image. Take a look: http://slobodni.net/t116947/ (log in as ozzy47 to see how it looks)
I noticed that you reduced image to 125x125 in CSS, as I'm using a bit larger image (I removed this image restriction in CSS), then I first noticed this. But, it still appears even with 125x125. Maybe to use tables to separate image from text, just in case if someone needs to use really long reason? Or some other way that restricts text right of the image?
ozzy47
08-16-2014, 10:55 PM
To fix the text overlapping the image, in the ozzmodz_t_closed_reason.css find the following:
#ct_image {
position:absolute;
padding-left:2px;
width:125px;
height:125px;
float:left;
}And remove the line:
position:absolute;
I think I had that in there when I first added the image.
ozzy47
08-16-2014, 11:00 PM
I have updated the zip to include the above fix, and the spelling corrections. :)
So if anyone downloaded v2.0.0 before this post, please re-download, only the XML has changed.
CAG CheechDogg
08-17-2014, 05:04 AM
Nice..good stuff Ozzy and Alan ! I come back from a nice long nap and I see this...im SO EXCITED ! LOL ............
CAG CheechDogg
08-17-2014, 06:04 AM
So far so good ! everything is good to go !
I did make a few changes like changed the name of the folder where the image is in, I aligned the text and image to the left instead of center and the size of the image as well in the css.
But everything is looking smOOOOth! Thank you Ozzy! Once again great work my Man!!!
woodmj
08-17-2014, 08:26 AM
Strange. Uploading the new files to my site crashed it with a DB error. I needed to remove the files to get to my ACP and then uinstall the mod to get the whole site working again. I'm on 4.2.2 Patch 1, mySQL 5.5.38.
ozzy47
08-17-2014, 08:43 AM
What was the error?
woodmj
08-17-2014, 09:27 AM
Unfortunately I didn't write it down and when I tried a fresh install there was no error but the mod just remained inactive even though it was set to active in Options in the ACP.
ozzy47
08-17-2014, 09:29 AM
Did you set up all the options for it to show on closed threads?
Alan_SP
08-17-2014, 11:35 AM
I installed latest version, image and text are now fine.
Spelling wise, isn't this:
Of course this will only work if the selected usergroups are in a admin or moderator group.
should be:
Of course this will only work if the selected usergroups are in an admin or moderator group.
Because admin is pronounced with an a sound?
And maybe feature request (although I know I can manually edit CSS) so we could easily impact how closing reason looks like. Bigger text, or bolder, or maybe even different color?
ozzy47
08-17-2014, 11:38 AM
You can use bbcode in the reason.
Alan_SP
08-17-2014, 12:35 PM
Great, I was wandering, is it HTML or BBcode we can use there. :up:
ozzy47
08-17-2014, 12:41 PM
Yeah I thought bbcode would be the easiest. :)
thetechgenius
08-22-2014, 03:28 AM
Is there any way to make the Box smaller? I think it looks to big when there is only a single line of text for the reason.
ozzy47
08-22-2014, 09:18 AM
Is there any way to make the Box smaller? I think it looks to big when there is only a single line of text for the reason.
Sure, first mark the mod as installed, then open the file, ozzmodz_t_closed_reason.css, under the group, CSS Templates and find this bit of code:
.ct_block{
padding: 10px 0px 10px 0px;
}
And change it to this:
.ct_block{
padding: 10px 0px 10px 0px;
width:700px;
}
Adjust the 700 as needed. :)
mitch84
08-22-2014, 04:04 PM
installed & nominated, great idea! thx
ozzy47
08-22-2014, 04:08 PM
installed & nominated, great idea! thx
Glad you like it, and thanks for marking as installed, and nominating it. :)
thetechgenius
08-24-2014, 11:01 PM
Sure, first mark the mod as installed, then open the file, ozzmodz_t_closed_reason.css, under the group, CSS Templates and find this bit of code:
.ct_block{
padding: 10px 0px 10px 0px;
}
And change it to this:
.ct_block{
padding: 10px 0px 10px 0px;
width:700px;
}
Adjust the 700 as needed. :)
Installed, and thank you! ;)
ozzy47
08-24-2014, 11:03 PM
Not a problem, glad to help. Also thanks for marking as installed. :)
Alan_SP
09-13-2014, 11:05 PM
Just noticed one thing: If there's no closing reason given, user's who are able to see closing reason see it (and if they're guests, they see special guest message).
But, description of this option is this:
Select which usergroups can see the closed message, if the thread is closed, and there was a reason added.
Because of it I was thinking they would see reason for closing thread only if it is given, not message that no reason is given at the moment.
And that made me thinking about a new feature request, that we have option to see thread reason only if it exist. Other option is that we see it in any case, even if thread is closed without given reason.
Or just change description, to set which usergroups would see closing reason, whether it exist or not.
ozzy47
09-13-2014, 11:12 PM
Well you are supposed to be able to see if if no reason was given, so you could always add one at a future date.
Now if you mean users that can see it, but can not give a reason, I will have to see about adding that.
Alan_SP
09-13-2014, 11:28 PM
Yes, I'm talking about users, not about staff members that are able to give reason. I was testing mod for welcoming new users just to check if registration goes well and I noticed that reason is visible even if it wasn't given.
ozzy47
09-13-2014, 11:30 PM
I can see about adding such a option at some point. I did not add it originally as that is not the way I invisioned the mod. :)
Alan_SP
09-14-2014, 10:26 AM
I thought that reason isn't visible because how option was described, so it was a bit of surprise to see every closed thread shows reason to users. Which made me thinking, maybe someone would want only to show it if reason is actually given.
ozzy47
09-14-2014, 10:49 AM
True, but I would think users would like to see that their was no reason given. Either way, I'll look into adding it. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.