REGISTER or LOGIN to have the annoying ads removed.
Post Reply 
 
Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Self Close/Open v1.1
Jan 07, 2012, 10:36 PM (This post was last modified: Feb 09, 2012 09:24 PM by xerotic.)
Post: #1
Self Close/Open v1.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 File(s) Thumbnail(s)
   

.zip  Self_Close_v1.1.zip (Size: 32.57 KB / Downloads: 271)
Find all posts by this user
Quote this message in a reply
Mar 10, 2012, 01:00 PM
Post: #2
RE: Self Close/Open v1.1
One of the less used D:

Click here!
[Image: I50r5.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 11, 2012, 04:19 PM (This post was last modified: Mar 11, 2012 04:28 PM by iRun.)
Post: #3
RE: Self Close/Open v1.1
Wait. It isn't working. The {$selfclose} is added, however the icon isn't there.
Find all posts by this user
Quote this message in a reply
Mar 16, 2012, 12:22 PM
Post: #4
RE: Self Close/Open v1.1
(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.

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 23, 2012, 07:56 AM
Post: #5
RE: Self Close/Open v1.1
Is it possible to make this for only certain forums?
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 15, 2012, 10:53 PM
Post: #6
RE: Self Close/Open v1.1
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>
Find all posts by this user
Quote this message in a reply
May 05, 2012, 06:12 PM
Post: #7
RE: Self Close/Open v1.1
(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.
Visit this user's website Find all posts by this user
Quote this message in a reply
May 06, 2012, 12:40 AM
Post: #8
RE: Self Close/Open v1.1
Thanks. I really appreciate this.
Find all posts by this user
Quote this message in a reply
May 06, 2012, 07:57 PM
Post: #9
RE: Self Close/Open v1.1
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

Find all posts by this user
Quote this message in a reply
May 07, 2012, 09:49 PM
Post: #10
RE: Self Close/Open v1.1
(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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)