Avatar for banned members Version 1.0.1

Started by Eclipse16V, October 08, 2011, 10:40:52 PM

Previous topic - Next topic

Eclipse16V

Link to Mod


Avatar for banned members Version 1.0.1
Free Version


Homepage: SID Giessen - Author: Eclipse16V - Support: Support Site - Mods: Mod List



Compatible
Compatible 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 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.

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
I worked with:
SMF 2 in German

Shop:
SID Giessen

Matthew K.

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. :)

abhirupmanna

Yes this is not compatible with 2.02 ? So why add it to compatibility list ?
Quote
" When there is a will there is a way. If there is no way make one "

Please do read my blog
I would love to hear your comments.

Touchline Reporter : for the hardcore soccer fans

Arantor

Well, it will work with 2.0.2 with a configuration change, so it is 'technically' compatible...

Ashelia

I finally got this working, but how can I get the banned avatar to show on profile pages?


akbora

SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

DasVON

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 ?

Eclipse16V

No.
Where does this error message.
What does the error log by SMF.
I worked with:
SMF 2 in German

Shop:
SID Giessen

DasVON

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

Eclipse16V

Are other mods installed?
Tried to manually install the mod?
I worked with:
SMF 2 in German

Shop:
SID Giessen

DasVON

decided to remove mod for the moment

thanks for the help...  ::)

jafonseca

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

Arantor

Has the user logged back in? How did you ban the user? If you go to that user's profile, are they still banned?

jafonseca

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

bobybc


Irisado

Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente

Ninja ZX-10RR

Italian translation is in there, already edited the file accordingly and tested. Thanks for the mod :)
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

GL700Wing

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>';
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Advertisement: