Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Dzonny on July 12, 2009, 08:35:25 AM

Title: Admin ban button in post
Post by: Dzonny on July 12, 2009, 08:35:25 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1962)

Admin ban button in post
by Dzonny (http://www.simplemachines.org/community/index.php?action=profile;u=154709)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dodaj.rs%2Ff%2F1n%2Ftv%2F1AtcqVgO%2Fbanbutton.png&hash=2819427c029dbe93c410a93a5be4a2d601a1ac80)

- This is simply mod wich allow Admins and other members who has persmissions to ban, to have ban button in post view, and easely ban members.

Please note that on custom themes you'll have to install this mod manually. (Manual Installation of Mods) (http://docs.simplemachines.org/index.php?topic=402)

I welcome new translations here:
$txt['admin_ban_button'] = 'Ban user';

Versions:

1.0 for smf 1.1.8 and 1.1.9
-   Admin_ban_button.zip
-   This version will add ban button just for admins!

1.1 for smf 1.1.8 - 1.1.10 and for all 2.0 Versions
-   Ban_button_1.1.zip
-   This version will add button for members who has persmissions to ban users, and for admin.


Plans for new versions:
- New version is realised, and i'm welcome new ideas for next versions.

Title: Re: Admin ban button in post
Post by: alex30 on July 12, 2009, 05:50:07 PM
Good mod.

Thanks.
Title: Re: Admin ban button in post
Post by: the_shadow on July 12, 2009, 06:56:17 PM
can you make this for 2.0RC1-1?

thnkx
Title: Re: Admin ban button in post
Post by: MF30 on July 12, 2009, 08:29:02 PM
Excellent work Dzonny. :)
Title: Re: Admin ban button in post
Post by: Dzonny on July 13, 2009, 10:11:16 AM
Quote from: alex30 on July 12, 2009, 05:50:07 PM
Good mod.

Thanks.

Quote from: MF30 on July 12, 2009, 08:29:02 PM
Excellent work Dzonny. :)

Thanks for your comment guys. :)
I'm glad that you like it.. :)

Quote from: the_shadow on July 12, 2009, 06:56:17 PM
can you make this for 2.0RC1-1?

thnkx

Maybe in next version...For now it works only with 1.1.x versions.
Title: Re: Admin ban button in post
Post by: TurtleKicker on July 13, 2009, 12:56:46 PM
Is this hard-coded to just be available to admins? Or can any mod with access to edit the ban list also see this button?
Title: Re: Admin ban button in post
Post by: Dzonny on July 13, 2009, 01:42:25 PM
For now this allow only admins to view ban button, but in next version (very soon) i will make it for members which can manage bans.
Title: Re: Admin ban button in post
Post by: MF30 on July 14, 2009, 05:15:12 PM
Modification.portuguese_pt.php

$txt['admin_ban_button'] = 'Banir usuário';
Title: Re: Admin ban button in post
Post by: Dzonny on July 14, 2009, 05:35:09 PM
Quote from: MF30 on July 14, 2009, 05:15:12 PM
Modification.portuguese_pt.php

$txt['admin_ban_button'] = 'Banir usuário';
Thanks, i will add that tomorrow... :)
Title: Re: Admin ban button in post
Post by: Sabre™ on July 15, 2009, 02:08:36 AM
You gave me the idea to use an image instead of the text for This (http://custom.simplemachines.org/mods/index.php?mod=1876) mod lol

Thanks mate :)
Title: Re: Admin ban button in post
Post by: JeremyB. on July 15, 2009, 02:21:00 AM
Nice Mod Dzonny, Thanks Here are a Few Translations.

Espanol:

$txt['admin_ban_button'] = 'Prohibición de usuario';

Catalan:
$txt['admin_ban_button'] = 'Prohibició d'usuari';

Ukranian:
$txt['admin_ban_button'] = 'Пан користувача';

Russian:
$txt['admin_ban_button'] = 'Пан пользователя';

Polish:
$txt['admin_ban_button'] = 'Zakaz użytkownika';

-JB








Title: Re: Admin ban button in post
Post by: Dzonny on July 15, 2009, 12:59:55 PM
Quote from: Sabre™ on July 15, 2009, 02:08:36 AM
You gave me the idea to use an image instead of the text for This (http://custom.simplemachines.org/mods/index.php?mod=1876) mod lol

Thanks mate :)
I know about that mod, and this one is quite different...
Thanks anyway.. :)

Quote from: JeremyB. on July 15, 2009, 02:21:00 AM
Nice Mod Dzonny, Thanks Here are a Few Translations.
Thanks, i will add translation soon.
Thanks for your comment guys.. :)

Regards.
Title: Re: Admin ban button in post
Post by: Sabre™ on July 15, 2009, 01:32:21 PM
Quote from: Dzonny on July 15, 2009, 12:59:55 PM
I know about that mod, and this one is quite different...
Thanks anyway.. :)

Yeah, with your planned update(s) it will be exactly the same, just a different location.
Thanks anyway.. :)
Title: Re: Admin ban button in post
Post by: Costa on July 16, 2009, 04:32:28 PM
Congrats, simple but very useful mod ;)

Translations

modifications.portuguese_brazilian.php

$txt['admin_ban_button'] = 'Banir usuário';


modifications.portuguese_brazilian-utf8.php

$txt['admin_ban_button'] = 'Banir usuário';


modifications.portuguese.php

$txt['admin_ban_button'] = 'Banir usuário';


modifications.portuguese-utf8.php

$txt['admin_ban_button'] = 'Banir usuário';


Farewell
Title: Re: Admin ban button in post
Post by: Antes on July 16, 2009, 04:49:49 PM
Nice Work ...

BoTh same UTF-8 & Norm
$txt['admin_ban_button'] = 'Kullanıcıyı Yasakla';
Title: Re: Admin ban button in post
Post by: Dzonny on July 17, 2009, 02:44:53 AM
Costa and Antes, thanks for translation! :)
Title: Re: Admin ban button in post
Post by: Teerapat on October 22, 2009, 09:38:41 AM
This is translation to thai and thai-utf8

modifications.thai.php
$txt['admin_ban_button'] = 'แบนผู้ใช้นี้';

modifications.thai-utf8.php
$txt['admin_ban_button'] = 'แบนผู้ใช้นี้';

:)
Title: Re: Admin ban button in post
Post by: Forbs on October 22, 2009, 10:18:40 AM
good and usefull mod,thanks..
Title: Re: Admin ban button in post
Post by: PalmBeachPreps on October 22, 2009, 04:14:56 PM
Installed it but the button is not showing up. :(
Title: Re: Admin ban button in post
Post by: Dzonny on October 22, 2009, 05:53:17 PM
Thanks for comments and translation.

Quote from: PalmBeachPreps on October 22, 2009, 04:14:56 PM
Installed it but the button is not showing up. :(
Which forum version, and which theme are you using?
You need to edit themes files manually if you're using custom theme....
Title: Re: Admin ban button in post
Post by: PalmBeachPreps on October 23, 2009, 02:06:40 AM
Quote from: Dzonny on October 22, 2009, 05:53:17 PM
Thanks for comments and translation.

Which forum version, and which theme are you using?
You need to edit themes files manually if you're using custom theme....
2.0 RC1.2 and I'm using a theme based off of the default.
Title: Re: Admin ban button in post
Post by: Dzonny on October 23, 2009, 07:42:59 AM
Have you edited your Display.template.php like it is shown here:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1962;attach=107838;smf_version=2.0_RC1.2
Title: Re: Admin ban button in post
Post by: DFarish on November 09, 2009, 05:32:02 PM
I downloaded the file in the admin section and this is what i reveived when i tried to install.

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

This is the version that I'm using.

SMF 2.0 RC1.2


Than
Title: Re: Admin ban button in post
Post by: zoran_dj on November 09, 2009, 05:35:23 PM
MOD cant install itself so u need to install this MOD mannualy its not that hard!
Title: Re: Admin ban button in post
Post by: Dzonny on November 09, 2009, 05:37:56 PM
Hello there,

I recomend you to install this mod manually:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1962;attach=107838;smf_version=2.0_RC1.2

There can be many reasons for this error. Did you get exectly file which couse this error?

If you dont know how to install this manually, feel free to ask.
Title: Re: Admin ban button in post
Post by: hariS. on November 22, 2009, 04:56:43 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F3883%2F27180863.jpg&hash=1add460850c65b196e70d56cce8bdf200b1f2bfa)

Why there isn't a picture ?
Title: Re: Admin ban button in post
Post by: Dzonny on November 23, 2009, 04:50:03 AM
Quote from: hariS. on November 22, 2009, 04:56:43 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg257.imageshack.us%2Fimg257%2F3883%2F27180863.jpg&hash=1add460850c65b196e70d56cce8bdf200b1f2bfa)

Why there isn't a picture ?
Please upload attached picture in /Themes/your_theme/images/buttons
Title: Re: Admin ban button in post
Post by: chico200987 on December 26, 2009, 01:39:22 PM
I've ported it to SMF 2 RC2 ...
Title: Re: Admin ban button in post
Post by: T3CHN0 on October 10, 2010, 08:52:16 PM
Hello the ban button didn't work for me,
everything installed correctly but the ban button did nothing.
I am using SMF2.0 RC3
I fixed it my self and it works now & I thought I would post it to help others

find

                <a href="', $scripturl, '?action=ban;sa=add;u=', $message['member']['id'], '">', $ban_button, '</a>';


replace with


               <a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $message['member']['id'], '">', $ban_button, '</a>';
Title: Re: Admin ban button in post
Post by: KensonPlays on December 24, 2010, 07:15:42 PM
When will official RC4 support come?
Title: Re: Admin ban button in post
Post by: snyperthugs on January 23, 2011, 06:39:23 PM
I installed this and it says "The package you tried to upload either is not a valid package or has become corrupted." So I went back to try to install manually but I click on "1.1.12" and click PARSE and it says "Sorry, but the modification could not be parsed."   So now what?? Im lost
Title: Re: Admin ban button in post
Post by: Dzonny on January 23, 2011, 07:40:40 PM
Mod is still not updated to work with new smf versions, but i will do that as soon as i can.
Sorry about that.

Regards.
Title: Re: Admin ban button in post
Post by: impreza on January 23, 2011, 07:52:05 PM
Good modification, it is useful to me thank you
Title: Re: Admin ban button in post
Post by: SrMorte on February 03, 2011, 06:51:29 PM
I've tryed about 2 hours about including this on Dyno Light template on RC4 but give me always error.

Someone could help me with this please ? And tell me how to put this on that template...

Regards
Title: Re: Admin ban button in post
Post by: Dzonny on February 04, 2011, 03:00:38 AM
Hello there.
Can you pls attach Display.template.php? Wich forum version are you uisng?
Title: Re: Admin ban button in post
Post by: SrMorte on February 05, 2011, 06:35:37 AM
Hello, sorry the delay :S

The version i am using is SMF 2.0 RC4.

Well, this question sound like stupid, but i dont have that file on my custom template...  :o

The template i have is that:

http://custom.simplemachines.org/themes/index.php?lemma=2232

Regards :)
Title: Re: Admin ban button in post
Post by: Dzonny on February 05, 2011, 07:17:07 AM
No problem, pls attach that file from default theme pls.
Title: Re: Admin ban button in post
Post by: SrMorte on February 05, 2011, 08:57:06 AM
There is the file...

Regards
Title: Re: Admin ban button in post
Post by: Dzonny on February 07, 2011, 04:14:31 AM
SrMorte, can you please chek the new version of mod and try to install it. Ive update it to work with 2.0 RC4, and change codes, couse previous versions cant work with rc4 version.
If you cant install 2.0 version of mod let me know and i will help you.

Regards.
Title: Re: Admin ban button in post
Post by: SrMorte on February 10, 2011, 03:05:34 PM
Quote from: Dzonny on February 07, 2011, 04:14:31 AM
SrMorte, can you please chek the new version of mod and try to install it. Ive update it to work with 2.0 RC4, and change codes, couse previous versions cant work with rc4 version.
If you cant install 2.0 version of mod let me know and i will help you.

Regards.

Hello, sorry the delay :S

Yes, it worked very well :)

If you could mention on instalation to put the icon on folder "custom_theme/images/theme/ban.gif"  (on custom templates)

Thank you,
Regards
Title: Re: Admin ban button in post
Post by: Robin1989 on March 14, 2011, 01:54:02 PM
will this work on rc5?
Title: Re: Admin ban button in post
Post by: Rain Forest on March 14, 2011, 01:56:37 PM
Dutch:
$txt['admin_ban_button'] = 'Ban gebruiker';
Title: Re: Admin ban button in post
Post by: dougiefresh on June 15, 2011, 03:42:28 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and using 2.0 RC4 emulation.  Hope this info helps someone!

Quote from: PalmBeachPreps on October 22, 2009, 04:14:56 PM
Installed it but the button is not showing up. :(
It doesn't show up for me, either.  I figured it out though.... it turned out that the ban.gif file wasn't being copied to the individual theme's images/theme folder.  Manually copying it to each of my theme folders solved my particular issue.  That being said, it would be appreciated if the mod itself could copy that particular file, but hey, I'll take what I can get  ::)
Title: Re: Admin ban button in post
Post by: mattio41 on September 02, 2011, 06:29:12 PM
I am a programming Idiot !! But very much into building a forum. Hope this might be in the workd to finish for smf 2.0 ???
Title: Re: Admin ban button in post
Post by: mattio41 on September 02, 2011, 06:29:33 PM
I am a programming Idiot !! But very much into building a forum. Hope this might be in the workd to finish for smf 2.0 ???
Title: Re: Admin ban button in post
Post by: Sefket on November 27, 2011, 03:05:24 PM
I get this for 1.1.15:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Admin ban button in post
Post by: Giorgios on November 27, 2011, 10:39:56 PM
Is there a new version?
Title: Re: Admin ban button in post
Post by: T3CHN0 on November 27, 2011, 10:40:03 PM
Quote from: Sefket on November 27, 2011, 03:05:24 PM
I get this for 1.1.15:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
works well on 2.0.1 but you must emulate to the mods 2.0 RC4
Title: Re: Admin ban button in post
Post by: Dzonny on November 28, 2011, 01:42:01 PM
Please try to use 3.0 version, it should work with latest smf versions as well...
Title: Re: Admin ban button in post
Post by: UBER__ on January 24, 2012, 06:01:12 AM
Hello,

I'm new so figure me if I say something wrong. When I try to add this mod it gives me errors.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aedes.us%2Fd%2Fi5xMh.png&hash=7da46e4bfa544bde2418eff09b05f56718ea10ce)

I am running version 2.02 so I downloaded
QuoteAdmin Ban Button in Post    1.1


I would attach my display template php but it's rather long. Plus I see two files.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aedes.us%2Fd%2FFHKEL.png&hash=ea4357990d6ab7e34f65ecb3fce69173bc7e9e72)

I hope you can help.


Best regards,

UBER__

Title: Re: Admin ban button in post
Post by: UBER__ on January 24, 2012, 06:04:48 AM
Hello,

damn I should have read the post right above mine. The latest version ban_button_3.0 worked fine.


Best regards,

UBER__
Title: Re: Admin ban button in post
Post by: dougiefresh on September 21, 2013, 09:41:44 AM
Thank you for this mod!  I noticed something that I fixed in my copy of the mod.  The ban button doesn't show up on non-default themes.  So I thought I'd post a fix for this, if anybody was interested.

In package-info.xml, replace all instances of this:$themedir/imageswith this:$imagesdir
Title: Re: Admin ban button in post
Post by: Dzonny on September 23, 2013, 08:05:28 PM
Quote from: dougiefresh on September 21, 2013, 09:41:44 AM
Thank you for this mod!  I noticed something that I fixed in my copy of the mod.  The ban button doesn't show up on non-default themes.  So I thought I'd post a fix for this, if anybody was interested.

In package-info.xml, replace all instances of this:$themedir/imageswith this:$imagesdir
Thanks, fixed! :)
Title: Re: Admin ban button in post
Post by: the_shadow on November 05, 2013, 01:09:14 PM
Quote from: dougiefresh on June 15, 2011, 03:42:28 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and using 2.0 RC4 emulation.  Hope this info helps someone!

Quote from: PalmBeachPreps on October 22, 2009, 04:14:56 PM
Installed it but the button is not showing up. :(
It doesn't show up for me, either.  I figured it out though.... it turned out that the ban.gif file wasn't being copied to the individual theme's images/theme folder.  Manually copying it to each of my theme folders solved my particular issue.  That being said, it would be appreciated if the mod itself could copy that particular file, but hey, I'll take what I can get  ::)

put ban.gif on thems>default>images ....... solved