vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [OzzModz] Closed Thread Reason (https://vborg.vbsupport.ru/showthread.php?t=313594)

ozzy47 08-09-2014 09:00 PM

[OzzModz] Closed Thread Reason
 
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 10:04 PM

Reserved.

ozzy47 08-09-2014 10:05 PM

Reserved also.

Alan_SP 08-13-2014 10: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 10:24 AM

Glad you find it useful, and thanks for marking as installed. :)

Alan_SP 08-13-2014 10: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:

Code:

        <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 10:39 AM

I have a problem with showing thread closing reason. I enter reason, but I only see:

https://imagizer.imageshack.us/v2/38...910/8dtZUd.png

ozzy47 08-13-2014 11:02 AM

If you highlight the area, does anything show?

Alan_SP 08-13-2014 08: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 08: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 04:51 AM

Oh this is nice ... lol...im stoked!

CAG CheechDogg 08-14-2014 05: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 05: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 08:26 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2511215)
Oh this is nice ... lol...im stoked!

Thanks, glad you like it, and thanks for marking as installed. :)

Quote:

Originally Posted by CAG CheechDogg (Post 2511217)
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.

Quote:

Originally Posted by CAG CheechDogg (Post 2511219)
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 09: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 09: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/th...eature-Example

Alan_SP 08-14-2014 11:11 AM

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/53...r-browsers-too) After modifying blocked string I could access his site with old Opera.

ozzy47 08-14-2014 11:26 AM

Yeah if is probably the block user agent mod stoping you from his site.

Alan_SP 08-14-2014 11:37 AM

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 04: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 04:16 PM

Removed content.... Ozzy agreed im a "Goofball" :)

Alan_SP 08-14-2014 09:03 PM

Don't know, maybe you're blocking my IP, i.e. my countries IP? Who knows...

ozzy47 08-14-2014 09:23 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2511260)
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 09:46 PM

Quote:

Originally Posted by Alan_SP (Post 2511328)
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?

Quote:

Originally Posted by ozzy47 (Post 2511331)
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 09:58 PM

Hmm, it won't be by each user, it will be global for now.

CAG CheechDogg 08-15-2014 10: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 10:10 PM

Ahhh ok gotcha. :)

CAG CheechDogg 08-16-2014 04: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 07: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 09:07 AM

Lol! I just edited all out lol ...thanks Ozzy

ozzy47 08-16-2014 09: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 09:20 AM

SaaaaWeeeet! .... thanks man you always come through! Can't wait!

Nirjonadda 08-16-2014 10: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 10:40 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2511444)
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 10:42 AM

Quote:

Originally Posted by Nirjonadda (Post 2511518)
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 10:46 AM

Quote:

Originally Posted by Nirjonadda (Post 2511518)
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 02:12 PM

Quote:

Originally Posted by Alan_SP (Post 2511519)
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 02:41 PM

This is how it's going to look in the screenshot.

CAG CheechDogg 08-16-2014 02:44 PM

Ooooh ....Sexeh!

Alan_SP 08-16-2014 02:47 PM

Quote:

Originally Posted by ozzy47 (Post 2511538)
This is how it's going to look in the screenshot.

It looks like you put image in background?


All times are GMT. The time now is 02:28 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
  • Page Generation 0.01973 seconds
  • Memory Usage 1,832KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete