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)
CompatibleCompatible with the following versions:
- SMF 1.1.7
- SMF 1.1.8
- SMF 1.1.9
- SMF 1.1.10
- SMF 1.1.11
- SMF 1.1.12
- SMF 1.1.13
- SMF 1.1.14
- SMF 1.1.15
- SMF 1.1.16
- SMF 1.1.17
- SMF 1.1.18
- SMF 2.0 Beta 3 Public
- SMF 2.0 Beta 3.1 Public
- SMF 2.0 Beta 4
- SMF 2.0 RC1
- SMF 2.0 RC1-1
- SMF 2.0 RC1.2
- SMF 2.0 RC2
- SMF 2.0 RC3
- SMF 2.0 RC4
- SMF 2.0 RC5
- SMF 2.0
- SMF 2.0.1
- SMF 2.0.2
- SMF 2.0.3
- SMF 2.0.4
Modification InformationHere 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 supportedFor this mod already following translations are included in this package:
English, GermanAll 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
| | 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
|
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. :)
Yes this is not compatible with 2.02 ? So why add it to compatibility list ?
Well, it will work with 2.0.2 with a configuration change, so it is 'technically' compatible...
I finally got this working, but how can I get the banned avatar to show on profile pages?
Bump!
Where is the setting area?
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 ?
No.
Where does this error message.
What does the error log by SMF.
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
Are other mods installed?
Tried to manually install the mod?
decided to remove mod for the moment
thanks for the help... ::)
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
Has the user logged back in? How did you ban the user? If you go to that user's profile, are they still banned?
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
does not work on my 2.0.7 board
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)
Italian translation is in there, already edited the file accordingly and tested. Thanks for the mod :)
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>';