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)
-   -   Moderators Functions - Disemvowelr? - A new passive-aggressive form of moderation.. (https://vborg.vbsupport.ru/showthread.php?t=210572)

magnus 04-06-2009 10:00 PM

Disemvowelr? - A new passive-aggressive form of moderation..
 
1 Attachment(s)

Keywords: Disemvowel, Devowel, Revowel

Description:
Where to start? Basically, this modification will allow you (the moderator) to strip a post of it's vowels (ie. "disemvowel" -- get it? See what I did there? Oh yes..) Why would you want to do this? Well, I can think of a multitude of reasons.. none of them relevant, but I digress. Disemvoweling has been made e-famous by popular blog sites such as BoingBoing and Gizmodo.


Details:
So, what is disemvoweling exactly?

Here's what Wikipedia has to say about it:
Quote:

Originally Posted by Wikipedia
In the fields of Internet discussion and forum moderation, disemvoweling is a technique used to censor unwanted postings such as spam, internet trolling, rudeness or criticism and yet maintain some transparency, both of the act and the underlying word. Disemvoweling (also spelled disemvowelling) appears to model the word "disemboweling" and involves removing vowels from questionable text, either as a form of self-censorship or as a technique used by forum moderators and newsgroup operators. The net effect of disemvoweling text is illegibility or legibility only through significant cognitive effort; thus the technique helps to suppress unwanted comments.

Neat idea, huh? Yea.. I thought so, too.. and here we are!

Cliff-Notes (y'know, for the slow..):
This mod will turn this:
Quote:

This site sucks, you (and your dog) suck too. I'm going to go eat paper, bye!
... into this!:
Quote:

Ths st scks, y (nd yr dg) sck t. 'm gng t g t ppr by!
(FYI, if you need pictures.. I attached those too.)

[hr]-[/hr]
Installation:
  1. Download and unzip the attached archive.
  2. Upload included files to their respective directories.
  3. Import product-disemvowelr.xml via the Product Manager.
  4. ???
  5. Profit!

Notes:
All template edits are done automagically for you. However, if you'd like to do them yourself in an alternate location, color, whatever -- simply disable the auto-template editor plugin via the Plugin Manager.

[hr]-[/hr]
Comments:
As with all my hacks, this modification is provided free of charge. However, if you find this product useful and have money burning a hole in your pocket, feel free to make a small donation, I won't mind.. really. :)

Version History:
  • 1.0 - Initial release, here's to hoping..
  • 1.1 - Added a FAQ entry as to what disemvoweling is and linked to it from within the disemvoweled post.
  • 1.1.1 - Added auto-template support for postbit_legacy
  • 1.2 - Icons! Yay! Also included instructions for manual template edits (see README.TXT)
  • 1.3 - Fixed a problem when disemvoweling a post with quotes (or possibly any BBCODE). Now the post is stripped of BBCODES before disemvoweled. No more broken quote tags.

* Please note that this modification was developed on a forum with a userbase of 1 (myself). I've tested it for basic functionality but I cannot guarantee functionality or behavior on your forum. So, please -- make backups before installing this product!

Oyabun 04-07-2009 05:51 PM

I don't get it. What does this do? Im german and i don't understand the description and the pictures also doesn't tell much (to me)

magnus 04-07-2009 05:54 PM

Allows you to strip a post of it's vowels, rather than deleting it.. thus allowing for public shaming of the affected party.

More information about disemvoweling at Wikipedia: Disemvoweling.

DobieGillis? 04-07-2009 06:11 PM

I'm cautious. Your screen shot shows the word diemvowel in the postbit. Looks like it may stretch it out a bit.

magnus 04-07-2009 06:28 PM

Quote:

Originally Posted by DobieGillis? (Post 1785943)
I'm cautious. Your screen shot shows the word diemvowel in the postbit. Looks like it may stretch it out a bit.

... What?

vbboarder 04-07-2009 06:40 PM

Hey Magnus, glad to see you're releasing VB 3.8 mods.... your mods are cool!

Sweeks 04-07-2009 08:05 PM

Very amusing, does it show the disemvowelled notice to all members or just staff?
________
The Cigar Boss

magnus 04-07-2009 08:13 PM

Quote:

Originally Posted by Sweeks (Post 1786018)
Very amusing, does it show the disemvowelled notice to all members or just staff?

All members.. I thought it would make a more effected deterrent that way, as well as explain what happened.

bahrainfalcon 04-07-2009 08:14 PM

You did a great job ! Thanks

Sweeks 04-07-2009 08:18 PM

Quote:

Originally Posted by magnus (Post 1786022)
All members.. I thought it would make a more effected deterrent that way, as well as explain what happened.

Is it simple to remove the notice? I would like this one without it and let our members know about it but when people spam and troll they will end up confused.
________
CREAMPIE TEEN

magnus 04-07-2009 08:21 PM

Quote:

Originally Posted by Sweeks (Post 1786028)
Is it simple to remove the notice? I would like this one without it and let our members know about it but when people spam and troll they will end up confused.

Absolutely, everything is template based. Just remove/comment out the portion of the auto-template edit plugin that adds it.

Wired1 04-07-2009 08:33 PM

Heh, nice mod :)

pete_brady 04-07-2009 08:57 PM

Quote:

Originally Posted by Sweeks (Post 1786018)
Very amusing, does it show the disemvowelled notice to all members or just staff?

Quote:

Originally Posted by magnus (Post 1786022)
All members.. I thought it would make a more effected deterrent that way, as well as explain what happened.

can you make it "all members except the author of the disemvowelled post"?

glorify 04-08-2009 12:44 AM

Looks cool, will try it out. :)

soletrader 04-08-2009 02:28 AM

how does one set usergroup permissions on who can use this?

Daniel_HBK 04-08-2009 02:34 AM

Quote:

Originally Posted by magnus (Post 1785929)
Allows you to strip a post of it's vowels, rather than deleting it.. thus allowing for public shaming of the affected party.

More information about disemvoweling at Wikipedia: Disemvoweling.

i got it too [i'm Egyptian :D] , thanks man :)

redlabour 04-08-2009 08:38 AM

Awesome Idea but does not work.

There is no Link for this Function shown in the Postbittemplates. vBulletin 3.8.2

Hugo Holbling 04-08-2009 08:55 AM

Am I reading the coding correctly insofar as this only functions with the default postbit, not postbit legacy?

Quote:

Originally Posted by DobieGillis? (Post 1785943)
I'm cautious. Your screen shot shows the word diemvowel in the postbit. Looks like it may stretch it out a bit.

I agree and think it would be better to replace the postbit text with an icon.

magnus 04-08-2009 10:23 AM

Quote:

Originally Posted by soletrader (Post 1786244)
how does one set usergroup permissions on who can use this?

It's a moderator function. Those with the ability to moderate posts may also disemvowel them.

magnus 04-08-2009 10:24 AM

Quote:

Originally Posted by redlabour (Post 1786423)
Awesome Idea but does not work.

There is no Link for this Function shown in the Postbittemplates. vBulletin 3.8.2

Sure it does. Are you by chance using Legacy Postbit? If so, template edits would need to be manually.

magnus 04-08-2009 10:27 AM

Quote:

Originally Posted by Hugo Holbling (Post 1786426)
Am I reading the coding correctly insofar as this only functions with the default postbit, not postbit legacy?

Correct, the auto-template feature (currently) only modifies postbit, and not postbit_legacy. Edits would need to be made manually.

I'll include postbit in the auto-template edits in a quick update.

Quote:

Originally Posted by Hugo Holbling (Post 1786426)
I agree and think it would be better to replace the postbit text with an icon.

I'm a programmer, not a designer. :) Plus, there are so many different styles out there -- finding an icon that goes well with all of them is a futile task. Hence, text.

I'll have an update with a few customization options. To choose between text or a user-specified icon, postbit or postbit legacy, etc.

imedic 04-08-2009 11:23 AM

Great idea for a mod. I never have enough moderators tools to make my life easier :).

I am too looking forward for a postbit legacy version.

Hugo Holbling 04-08-2009 12:08 PM

Great, thanks magnus. Looking forward to the update and the ability to choose postbit legacy. :)

ericgtr 04-08-2009 07:00 PM

Quote:

Originally Posted by imedic (Post 1786486)
Great idea for a mod. I never have enough moderators tools to make my life easier :).

I am too looking forward for a postbit legacy version.

Quote:

Originally Posted by Hugo Holbling (Post 1786511)
Great, thanks magnus. Looking forward to the update and the ability to choose postbit legacy. :)

Thirded. :)

Installed though.

SoloX 04-08-2009 09:08 PM

I changed postbit to postbit_legacy in the following code to make it work for legacy! :)
PHP Code:

<phpcode><![CDATA[if(isset($vbulletin->templatecache['postbit_legacy']))
{
    
$find '<strong>$post[postcount]</strong></a> &nbsp;") : (""))."';

    
$replace '<strong>$post[postcount]</strong></a> &nbsp;") : (""))."
        ".((can_moderate($thread[\'forumid\'], \'canmoderateposts\')) ? ("
            ".((!$post[disemvowel]) ? ("[&nbsp;<a href=\"disemvowelpost.php?do=disemvowel&p=$post[postid]\" name=\"vB::Disemvowel::$post[postid]\">$vbphrase[disemvowel]</a>&nbsp;]") : ("[&nbsp;<a href=\"disemvowelpost.php?do=revowel&p=$post[postid]\" name=\"vB::Revowel::$post[postid]\">$vbphrase[revowel]</a>&nbsp;]"))."
        ") : (""))."'
;

    
$vbulletin->templatecache['postbit_legacy'] = str_replace($find$replace$vbulletin->templatecache['postbit_legacy']);

    
$find '<!-- message -->';

    
$replace '".(($post[disemvowel]) ? ("
            <div align=\"center\" style=\"color: red; background-color: white; border: 1px solid black; padding:2px\">
                $vbphrase[this_post_has_been_disemvoweled]
            </div>
        ") : (""))."
        <!-- message -->'
;

    
$vbulletin->templatecache['postbit_legacy'] = str_replace($find$replace$vbulletin->templatecache['postbit_legacy']);
}]]></
phpcode


ericgtr 04-08-2009 09:31 PM

Quote:

Originally Posted by SoloX (Post 1786899)
I changed postbit to postbit_legacy in the following code to make it work for legacy! :)
PHP Code:

<phpcode><![CDATA[if(isset($vbulletin->templatecache['postbit_legacy']))
{
    
$find '<strong>$post[postcount]</strong></a> &nbsp;") : (""))."';

    
$replace '<strong>$post[postcount]</strong></a> &nbsp;") : (""))."
        ".((can_moderate($thread[\'forumid\'], \'canmoderateposts\')) ? ("
            ".((!$post[disemvowel]) ? ("[&nbsp;<a href=\"disemvowelpost.php?do=disemvowel&p=$post[postid]\" name=\"vB::Disemvowel::$post[postid]\">$vbphrase[disemvowel]</a>&nbsp;]") : ("[&nbsp;<a href=\"disemvowelpost.php?do=revowel&p=$post[postid]\" name=\"vB::Revowel::$post[postid]\">$vbphrase[revowel]</a>&nbsp;]"))."
        ") : (""))."'
;

    
$vbulletin->templatecache['postbit_legacy'] = str_replace($find$replace$vbulletin->templatecache['postbit_legacy']);

    
$find '<!-- message -->';

    
$replace '".(($post[disemvowel]) ? ("
            <div align=\"center\" style=\"color: red; background-color: white; border: 1px solid black; padding:2px\">
                $vbphrase[this_post_has_been_disemvoweled]
            </div>
        ") : (""))."
        <!-- message -->'
;

    
$vbulletin->templatecache['postbit_legacy'] = str_replace($find$replace$vbulletin->templatecache['postbit_legacy']);
}]]></
phpcode


Didn't work for me. This isn't too hard to figure out but it has to be picked apart so I'll do it when I get home and if magnus doesn't have it up by then I will share it. Many people use legacy so I am surprised it's not added.

imedic 04-08-2009 09:52 PM

Unfortunately does not work.
If I copy paste your code it gives error on product upload. I have manually replace it and still no luck to see the link in postbit.

magnus 04-08-2009 10:08 PM

The above code has been wrapped in <phpcode><![CDATA[ ... ]]></phpcode> tags. Those will need to be removed.

Anyway, I have postbit_legacy support finished .. I had intended to finish the other features before releasing, but since the demand is there, I'll release the minor changes. I'll have it posted tomorrow morning (the code is on my work machine).

magnus 04-09-2009 12:00 PM

As promised, I made v1.1.1 available which will detect which postbit layout you're using and modify accordingly. Nothing else has changed.

Hugo Holbling 04-09-2009 03:16 PM

Thanks, magnus - much appreciated. It works great. :)

I'll try to figure out how to replace the text (Disemvowel/Revowel) with icons; I suggest the famfamfam font_delete and font_add silk icons would work nicely.

GCSkye 04-09-2009 03:47 PM

Would be a nice feature for you to choose a usergroup that always has disemvoweled posts.

ericgtr 04-09-2009 03:51 PM

Quote:

Originally Posted by magnus (Post 1787293)
As promised, I made v1.1.1 available which will detect which postbit layout you're using and modify accordingly. Nothing else has changed.

Thank you.

magnus 04-09-2009 06:55 PM

Quote:

Originally Posted by Hugo Holbling (Post 1787440)
Thanks, magnus - much appreciated. It works great. :)

I'll try to figure out how to replace the text (Disemvowel/Revowel) with icons; I suggest the famfamfam font_delete and font_add silk icons would work nicely.

The next release will allow you to choose between text or (user-specified) icons via the AdminCP. If you come across any (public domain) icons you feel would fit nicely with this hack, feel free to post them up. :)

magnus 04-09-2009 06:57 PM

Quote:

Originally Posted by GCSkye (Post 1787456)
Would be a nice feature for you to choose a usergroup that always has disemvoweled posts.

That's not really what this hack was designed for, if you want someones posts to ALWAYS be disemvoweled, you may as well just use Tachy Goes to Coventry. This is meant more to be a surgical strike, rather than a carpet bombing.

Hugo Holbling 04-09-2009 06:59 PM

1 Attachment(s)
Quote:

Originally Posted by magnus (Post 1787586)
If you come across any (public domain) icons you feel would fit nicely with this hack, feel free to post them up. :)

I think the famfamfam silk icons attached would do nicely. :)

magnus 04-09-2009 07:05 PM

Quote:

Originally Posted by Hugo Holbling (Post 1787592)
I think the famfamfam silk icons attached would do nicely. :)

Wow.. yea, those are pretty perfect (and free!) if you ask me. I'll definately be including them in the next release.

Thanks for pointing those out!

Alien 04-09-2009 09:43 PM

Nice work, magnus!

I'll have use for this. Looking forward to the icon update and consider this installed!

Wings69 04-09-2009 09:57 PM

Quote:

Originally Posted by GCSkye (Post 1787456)
Would be a nice feature for you to choose a usergroup that always has disemvoweled posts.

I know you said this isn't what you intended the mod to be used for, but I would also just like to second this. I allow my users to "buy" custom titles etc for other users(with vbcredits) for fun, and I'd love to be able to get them to "buy" this for someones posts for x amount of hours :)

ericgtr 04-09-2009 10:15 PM

Just thought I would throw this out there, might be pretty cool with this mod.. Swedish chef speak https://vborg.vbsupport.ru/showthread.php?t=134327 :D

magnus 04-10-2009 03:22 PM

As promised, 1.2 is released -- now with ICONS! (thanks Hugo Holbling)

Also included manual instructions for template edits.


All times are GMT. The time now is 01:04 AM.

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.01408 seconds
  • Memory Usage 1,856KB
  • 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_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete