News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Block individual signatures

Started by nosferatu, September 03, 2007, 04:06:21 PM

Previous topic - Next topic

nosferatu

Apologies if this has been answered elsewhere but I have one member who insists on posting a slightly offensive signature. I could ban him of course but I'd rather have an intermediate sanction such as removing the right to post a signature. Is there any way of doing that for individuals?

Cheers
There's a certain joy in being mad that only madmen know

codenaught

I would advise you to first reset the member's signature so it is nothing.

Then apply code very similar to the code I posted here: http://www.simplemachines.org/community/index.php?topic=188506.0

This way the member won't even be able to see the signature box.

Needed changes to the code I posted for your scenario:

Change:


if ($user_info['is_admin'])

To:

if ($context['user']['id'] != X)

Change:

if ($context['user']['is_admin'])

To:

if ($context['user']['id'] != X)

Replacing X in both cases with the member's ID.

How do I modify files?

Does something like that come close to what you want?
Dev Consultant
Former SMF Doc Coordinator

nosferatu

That sounds like just the thing. Many thanks for taking the time to do this.  ;D
There's a certain joy in being mad that only madmen know

Advertisement: