REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 5 Vote(s) - 3.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Self Close/Open v1.1
#1
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.


Attached Files Thumbnail(s)
   

.zip   Self_Close_v1.1.zip (Size: 32.57 KB / Downloads: 503)
Reply
#2
One of the less used D:
Reply
#3
Wait. It isn't working. The {$selfclose} is added, however the icon isn't there.
Reply
#4
(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.
Reply
#5
Is it possible to make this for only certain forums?
Reply
#6
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>
Reply
#7
(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.
Reply
#8
Thanks. I really appreciate this.
Reply
#9
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
Reply
#10
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)