vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Mass Censor Usergroup's Entire Post Content (https://vborg.vbsupport.ru/showthread.php?t=248489)

ImNotKibs 08-12-2010 10:00 PM

Mass Censor Usergroup's Entire Post Content
 
1 Attachment(s)
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:
Code:

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


4. And replace with:
Code:

                <!-- 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

Quote:

Originally Posted by hornstar1337 (Post 2083117)
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


All times are GMT. The time now is 04:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01725 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete