PDA

View Full Version : Miscellaneous Hacks - Mass Censor Usergroup's Entire Post Content


ImNotKibs
08-12-2010, 10:00 PM
Something I ran across when pranking a staff member, which might be useful for an alternative to Banning or Tachy Goes to Coventry.

I couldn't find anything similar here, so let me know if someone already covered this one~

The basic idea is to replace a single user(group's) post contents with...really whatever you want.

To do this:

1. Create a usergroup you wish to censor/screw with.

2. Add the user(s) you wish to be censored into that usergroup, and make sure it's set as their display group, or it won't work.

They can be left in whatever usergroups they are already a part of, as this only affects users whose display group is the censored group.

3. Under postbit, or postbit_legacy find:

<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->


4. And replace with:

<!-- message -->
<div id="post_message_$post[postid]">
<if condition="($post[displaygroupid]== <Group ID you wish to censor>)">

<Whatever you want their entire post to be replaced with>

<else />
$ad_location[ad_showthread_firstpost_start]
$post[message]
</if>
</div>
<!-- / message -->


5. Hit Save!

More effects can obviously be added to different usergroups by adding different conditionals.

No demo is available, since I'll be removing it some time tomorrow. :)

ImNotKibs
08-12-2010, 11:46 PM
This should also probably be moved to template modifications. I do apologize

Hornstar
08-13-2010, 07:52 AM
Interesting idea :) Just thinking if I would want to use this on trolls, spammers, or something else lol

With trolls, it might be okay with new trolls, but old trolls, I don't think it would be good with there old good posts as that would affect the flow and seo. But new trolls it could be useful, but might make them keep going. Sometimes its better to make them appear as they never existed lol

But thanks for sharing.

ImNotKibs
08-15-2010, 09:12 AM
Interesting idea :) Just thinking if I would want to use this on trolls, spammers, or something else lol

With trolls, it might be okay with new trolls, but old trolls, I don't think it would be good with there old good posts as that would affect the flow and seo. But new trolls it could be useful, but might make them keep going. Sometimes its better to make them appear as they never existed lol

But thanks for sharing.In this case, their continued posting could be more entertaining than annoying, who cares if they bump every thread if all they can post is "I'm a massive tool" :P