MyBB Central
Self Close/Open v1.1 - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Mybb 1.6x Series Topics (http://www.mybbcentral.com/forum-34.html)
+--- Forum: Mybb 1.6x Official Central Plugins and Hacks (http://www.mybbcentral.com/forum-35.html)
+--- Thread: Self Close/Open v1.1 (/thread-7917.html)

Pages: 1 2 3


Self Close/Open v1.1 - Xerotic - Jan 07, 2012

License is attached inside extras folder by using this software you agree to the terms of that license.

Plugin Name: Self Close
Plugin Author: Jesse Labrocca
Plugin Website: http://www.MybbCentral.com
Plugin Version: 1.1
Plugin Mybb Compatibility: 1.6x
Plugin File Edits: None
Plugin File Uploads: 4
Plugin Description: Admincp setting for allowing certain groups to self close and/or open their own threads. An image next to the New Reply button will only appear to the original thread creator, if they have permission, and only if the thread is not already locked by a moderator. This will not affect any regular moderator functions. Members cannot reopen threads once closed unless they have permission and the thread was not closed by a moderator.

This plugin is language compatible.

Installation
1. Upload the files from the zip.

2. Login to your admincp and INSTALL & ACTIVATE the plugin (Self Close) in the plugin manager.

3. You will see a new setting under "Posting" for "Self Close Group" and "Self Open Group".

4. (optional) The images for the buttons is uploaded to images/english/postbit_close.gif and images/english/postbit_open.gif. Alter it to suit your needs. This will work from your theme image directory and language. So it's very compatible with multiple themes and languages.

Screenshots are all available inside the extras folder.

DEMO: http://www.hackforums.net

TROUBLESHOOTING
===================

This only edits one template which is "showthread".
Find:
Code:
{$newreply}
Add before it
Code:
{$selfclose}

That alteration is in the template twice (top and bottom buttons)


Upgrading
===================

If you are upgrading from version 1.0, you will need to Deactivate the previous version to Install this one.

Thanks.


RE: Self Close/Open v1.1 - Madness - Mar 10, 2012

One of the less used D:


RE: Self Close/Open v1.1 - iRun - Mar 11, 2012

Wait. It isn't working. The {$selfclose} is added, however the icon isn't there.


RE: Self Close/Open v1.1 - labrocca - Mar 16, 2012

(Mar 11, 2012, 04:19 PM)iRun Wrote: Wait. It isn't working. The {$selfclose} is added, however the icon isn't there.

It shouldn't show for admins/super mods. You already have permission to close threads.


RE: Self Close/Open v1.1 - Odin - Mar 23, 2012

Is it possible to make this for only certain forums?


RE: Self Close/Open v1.1 - X.RaMiN - Apr 15, 2012

i want to make like CSS botton what should i chenge it to?
Code:
<div style="float:left;">
    <form action="moderation.php" method="post">
        <input type="hidden" name="tid" value="{$thread['tid']}" />
        <input type="hidden" name="action" value="selfclose" />
        <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
        <input type="image" src="{$theme['imgdir']}/{$lang->language}/postbit_close.gif" alt="{$lang->close}"
    </form>
</div>&nbsp;
Code:
class="bitButton">close</a>



RE: Self Close/Open v1.1 - ExaByte - May 05, 2012

(Apr 15, 2012, 10:53 PM)X.RaMiN Wrote: i want to make like CSS botton what should i chenge it to?
Code:
<div style="float:left;">
    <form action="moderation.php" method="post">
        <input type="hidden" name="tid" value="{$thread['tid']}" />
        <input type="hidden" name="action" value="selfclose" />
        <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
        <input type="image" src="{$theme['imgdir']}/{$lang->language}/postbit_close.gif" alt="{$lang->close}"
    </form>
</div>&nbsp;
Code:
class="bitButton">close</a>
I am wanting to do this as well. Please reply.


RE: Self Close/Open v1.1 - USN - May 06, 2012

Thanks. I really appreciate this.


RE: Self Close/Open v1.1 - VideoGameModder - May 06, 2012

Awesome plugin, but before I download it, I'm not sure if this plugin will allow user groups to only open close in certain forums?? or is it global? thanks


RE: Self Close/Open v1.1 - Xerotic - May 07, 2012

(May 06, 2012, 07:57 PM)VideoGameModder Wrote: Awesome plugin, but before I download it, I'm not sure if this plugin will allow user groups to only open close in certain forums?? or is it global? thanks

Only the groups/forums that you specify, or all of them.