Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Eclipse16V on October 08, 2011, 10:40:52 PM

Title: Avatar for banned members Version 1.0.1
Post by: Eclipse16V on October 08, 2011, 10:40:52 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3116)


Avatar for banned members Version 1.0.1
Free Version


Homepage: SID Giessen (http://www.sid-giessen.de) - Author: Eclipse16V - Support: Support Site (http://forum.sid-giessen.de) - Mods: Mod List (http://sid-giessen.de/index.php?route=product/category&path=39_44_46)



Compatible
Compatible with the following versions:

Modification Information
Here you can enable and disable whether to display a special avatar for banned members.
This Avatar for banned members Version 1.0.1 is the FREE VERSION of the Mod. The PRO VERSION you can find on SID Giessen (http://sid-giessen.de/index.php?route=product/category&path=39_44_46).

Languages supported
For this mod already following translations are included in this package:
English, German
All languages are also included in the UTF-8.
New translations are gratefully welcomed.

Changelog



Free Version                                                     Pro Version

Version 1.0.1 - 17.12.2012

  • Now runs with SMF 2.0.3 and SMF 1.1.17

Version 1.0 - 02.07.2011

  • Released

Version 1.0.3 - 17.12.2012

  • Now runs with SMF 2.0.3 and SMF 1.1.17

Version 1.0.2 - 13.01.2012

  • Now runs with SMF 2.0.2 and SMF 1.1.16

Version 1.0.1 - 21.09.2011

  • Now runs with SMF 2.0.1 and SMF 1.1.15

Version 1.0 - 02.07.2011

  • Released
Title: Re: Avatar for banned members Version 1.0
Post by: Matthew K. on February 16, 2012, 03:34:27 PM
Just wanted to let you know that this modification is not compatible with SMF 2.0.2 without using version emulate, you can fix this very easily by making the install and uninstall elements in package-info.xml a range...such as: <install for="2.0-2.0.99" then you don't have to keep updating it for future patches that may be released. :)
Title: Re: Avatar for banned members Version 1.0
Post by: abhirupmanna on June 10, 2012, 02:37:32 PM
Yes this is not compatible with 2.02 ? So why add it to compatibility list ?
Title: Re: Avatar for banned members Version 1.0
Post by: Arantor on June 10, 2012, 02:39:23 PM
Well, it will work with 2.0.2 with a configuration change, so it is 'technically' compatible...
Title: Re: Avatar for banned members Version 1.0
Post by: Ashelia on June 27, 2012, 07:54:26 PM
I finally got this working, but how can I get the banned avatar to show on profile pages?
Title: Re: Avatar for banned members Version 1.0
Post by: Ashelia on June 28, 2012, 04:04:23 PM
Bump!
Title: Re: Avatar for banned members Version 1.0
Post by: akbora on August 29, 2012, 04:32:56 PM
Where is the setting area?
Title: Re: Avatar for banned members Version 1.0
Post by: DasVON on December 17, 2012, 06:02:02 AM
Just Upgraded to 2.0.3 and installed this mod in 2.0.2 compatibility mode but I get this error on top of page

// Avatar for banned members MOD by SID-Giessen $txt['enable_banned_membav']='Avatar for banned members'; // Avatar for banned members MOD by SID-Giessen $txt['enable_banned_membav']='Avatar for banned members';

Any Idea's ?
Title: Re: Avatar for banned members Version 1.0
Post by: Eclipse16V on December 17, 2012, 07:35:01 AM
No.
Where does this error message.
What does the error log by SMF.
Title: Re: Avatar for banned members Version 1.0
Post by: DasVON on December 17, 2012, 09:16:12 PM
Error Log shows this..

http://mysite.net/index.php?action=admin;area=packages;sa=install2;package=Avatar_for_banned_members_v1.0.1.zip;pid=08: Undefined index: menu_orderFile: /home/mysite/public_html/Sources/Admin.php

Line: 242


http://mysite.net/index.php?action=admin;area=packages;sa=install;package=Avatar_for_banned_members_v1.0.1.zip8: Undefined index: convert_urlsFile: /home/mysite/public_html/Sources/Subs-Post.php

Line: 176


http://mysite.net/index.php?action=admin;area=packages;sa=install;package=Avatar_for_banned_members_v1.0.1.zip8: Undefined index: menu_orderFile: /home/mysite/public_html/Sources/Admin.php

Line: 242
Title: Re: Avatar for banned members Version 1.0
Post by: Eclipse16V on December 18, 2012, 07:14:10 AM
Are other mods installed?
Tried to manually install the mod?
Title: Re: Avatar for banned members Version 1.0
Post by: DasVON on December 18, 2012, 07:49:54 AM
decided to remove mod for the moment

thanks for the help...  ::)
Title: Re: Avatar for banned members Version 1.0.1
Post by: jafonseca on March 30, 2013, 08:11:43 PM
I banned an user for 30 days and then expired. Now in the profile of the post of the topics stills appears the image (banned.png) of the banned avatar. What's wrorng ?
t
thanks
Title: Re: Avatar for banned members Version 1.0.1
Post by: Arantor on March 30, 2013, 08:14:09 PM
Has the user logged back in? How did you ban the user? If you go to that user's profile, are they still banned?
Title: Re: Avatar for banned members Version 1.0.1
Post by: jafonseca on March 30, 2013, 09:24:14 PM
Quote from: Arantor on March 30, 2013, 08:14:09 PM
Has the user logged back in? How did you ban the user? If you go to that user's profile, are they still banned?
No the web is now in Maintenance the user has no logged back in, I banned the user with a complete restriction  for 30 days (will expire in 30 days) and now is expired (desactivate)-. In the user profile is NOT banned
Title: Re: Avatar for banned members Version 1.0.1
Post by: bobybc on April 03, 2014, 02:09:37 PM
does not work on my 2.0.7 board
Title: Re: Avatar for banned members Version 1.0.1
Post by: Irisado on April 03, 2014, 02:20:25 PM
Have you tried this?

http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Avatar for banned members Version 1.0.1
Post by: Ninja ZX-10RR on December 01, 2014, 08:28:24 AM
Italian translation is in there, already edited the file accordingly and tested. Thanks for the mod :)
Title: Re: Avatar for banned members Version 1.0.1
Post by: GL700Wing on February 27, 2017, 07:53:48 PM
The following code changes will also used the banned avatar on the Profile Summary page and on Personal Messages:

In ./Themes/default/Profile.template.php
Find:

<div class="username"><h4>', $context['member']['name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4></div>
', $context['member']['avatar']['image'], '
<ul class="reset">';


Replace with:

<div class="username"><h4>', $context['member']['name'], ' <span class="position">', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</span></h4></div>';

// If the member is banned show the banned avatar.
if (!empty($context['member']['bans']) && !empty($modSettings['enable_banned_membav']))
echo '
<img src="' . $settings['images_url'] . '/banned.png" alt="" />';
else
echo '
', $context['member']['avatar']['image'], '';
echo '
<ul class="reset">';



In ./Themes/default/PersonalMessage.template.php
Find:

<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';


Replace with:

<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">';

// If the member is banned show the banned avatar
if ($message['member']['is_banned'] && !empty($modSettings['enable_banned_membav']))
echo '<img src="' . $settings['images_url'] . '/banned.png" alt="" />';
else
echo $message['member']['avatar']['image'];

echo '
</a>
</li>';