Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: -=[Vyorel]=- on April 20, 2012, 05:07:13 PM

Title: Show Banned Message in Topics, Posts and Profile
Post by: -=[Vyorel]=- on April 20, 2012, 05:07:13 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3384)

Show Banned Message in Topics, Posts and Profile

      
         
            
            

            
Created By:
         

            -=[Vyorel]=- (http://www.simplemachines.org/community/index.php?action=profile;u=200419)
            (View my other mods here (http://custom.simplemachines.org/mods/index.php?action=search;author=200419))
         

               
Latest Version: 1.7
            

               
My Website
            

            RO Power Hosting (https://www.ro-ph.com)
            TruckersMP Romania (https://www.truckersmp.ro)
            SAMP Romania (https://www.sa-mp.ro)
         

Summary

It's a simple mod. This mod show a banned message in topics, posts and profile for banned members.

Support Version of SMF :

Language :

- This SMF modification is subject to the Mozilla Public License Version 1.1
- http://www.mozilla.org/MPL/


(https://www.ro-ph.com/images/logo.png) (https://www.ro-ph.com)
Title: Re: Show Banned Message in Topics and Posts
Post by: satinof on June 26, 2012, 07:09:21 AM
i installed mods and its showing only in forum posts, how to add to profile?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F34q6zrq.png&hash=9c2e3f0dfd3a18b379d4734e4348c0a79a583993)

i have edited themes/default/profile.template.php but just nickname appear :(

What i need to do?
I need to slash nickname and add "USER IS BANNED"(uĹžblokuotas)




-
MOds:
http://custom.simplemachines.org/mods/index.php?mod=2960

http://custom.simplemachines.org/mods/index.php?mod=3384


they working only in forum posts,  i need too add it to profile.
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: -=[Vyorel]=- on June 28, 2012, 07:08:00 AM
Update!


Quote from: satinof on June 26, 2012, 07:09:21 AM
i installed mods and its showing only in forum posts, how to add to profile?

...

they working only in forum posts,  i need too add it to profile.
Redownload and reinstall this mod. :)

Thanks for idea.
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: satinof on June 28, 2012, 01:04:14 PM
Quote from: -=[Vyorel]=- on June 28, 2012, 07:08:00 AM
Update!


  • Now, this message appear in topics, posts and profile.
  • Added 2 images for demo

Quote from: satinof on June 26, 2012, 07:09:21 AM
i installed mods and its showing only in forum posts, how to add to profile?

...

they working only in forum posts,  i need too add it to profile.
Redownload and reinstall this mod. :)

Thanks for idea.

damn i love you <3

Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: sbranky on October 18, 2012, 12:26:19 PM
Hi,

I installed this mod and working properly by admin,
a normal user but I see the word "banned" only topics, but do not see it in the user profile,

It 'possible that the forum profile functions only by admin? I would also to be seen in the user profile to all user and not only by admin, is it possible?
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: FemR on April 17, 2014, 09:37:04 AM
Hi -=[Vyorel]=-,

Thanks for the mod, just what I'm looking for.

I have the same issue as above though - regular users don't see it ('Banned!') in profile pages... only in posts. I thought you updated it to show?


Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: jsx on April 14, 2020, 11:37:50 AM
@-=[Vyorel]=-

I wanted to install this modification for a theme other than the default one and several failures occur before installation.

(https://i.imgur.com/ebI8pfC.png)

Why is this happening? And so I have to manually add these codes first and then install the modification?
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: -Rock Lee- on April 14, 2020, 03:27:42 PM
@jsx It may be that since it is a custom theme, the code should not search, so I see it adapt to the default. You can guide through the comments of the file to quickly find where you have to edit...

While I'm at it I leave the translation to Latin Spanish.
<file name="$themedir/languages/Modifications.spanish_latin.php" error="Skip">
      <operation>
<search position="end" />
            <add><![CDATA[
// Show Banned Message Start
$txt['banned'] = 'Baneado';
// Show Banned Message End
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.spanish_latin-utf8.php" error="Skip">
      <operation>
<search position="end" />
            <add><![CDATA[
// Show Banned Message Start
$txt['banned'] = 'Baneado';
// Show Banned Message End
]]></add>
</operation>
</file>



Regards!
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: Strannik64 on June 06, 2022, 05:38:45 AM
Please mod update for 2.1.2
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: Speed King on June 06, 2022, 07:58:58 AM
I think this can be set without any mod - just create separate membergroup called "Banned" and assign there some minimal permissions. Then move to that group all banned users.
See it working on my forum:

https://www.forum.bg-nacionalisti.org/index.php?action=groups;sa=members;group=12

https://www.forum.bg-nacionalisti.org/index.php?topic=28015.0

Click => (https://i.postimg.cc/2qYG0zS7/2022-06-06.png) (https://postimg.cc/2qYG0zS7)
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: Strannik64 on October 08, 2022, 09:18:44 AM
Quote from: Speed King on June 06, 2022, 07:58:58 AMI think this can be set without any mod - just create separate membergroup called "Banned" and assign there some minimal permissions. Then move to that group all banned users.
See it working on my forum:

https://www.forum.bg-nacionalisti.org/index.php?action=groups;sa=members;group=12

https://www.forum.bg-nacionalisti.org/index.php?topic=28015.0

Click => (https://i.postimg.cc/2qYG0zS7/2022-06-06.png) (https://postimg.cc/2qYG0zS7)

I'll do that :)
Title: Re: Show Banned Message in Topics, Posts and Profile
Post by: LuciferMorningstar on December 05, 2023, 11:08:32 AM
Update for SMF 2.1.4, please.