Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Encheferizer Details »»
Encheferizer
Version: 1.05, by cheesegrits cheesegrits is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.4 Rating:
Released: 12-18-2006 Last Update: 01-06-2007 Installs: 93
Uses Plugins
Additional Files  
No support by the author.

The Encheferizer

Product
: Encheferizer 1.05
Author: Hugh Messenger (cheesegrits)
Support: On this thread only
Tested on: vBulletin 3.6.0 through 3.6.4
Average Install Time: 30 seconds

Summary

Do you have some troublesome users you want to punish but don't want to ban them just yet? Or maybe play a practical joke on some of your users? Or just have some good old fashioned Swedish Chef Fun? Then this is the mod for you.

What it Does

Displays all posts from a configurable list of UserID's and / or in ForumID's in "mock swedish". You don't have to have seen the Swedish Chef from the Muppet Show, but it sure would make a lot more sense if you have, Bork Bork Bork!

Individual encheferized users see their posts as usual:

Attachment 57831

Everyone else sees them like this:

Attachment 57830

Encheferized forums are "translated" in entirety - posts, titles, descriptions and all. Encheferized posts are NOT altered in the database, they are encheferized on the fly during template evaluation. So when you've had your fun, you just remove ID's from the list and things will go back to normal.

There are some options to control how victims see their own and other victims posts, see the ACP Encheferizer options for details (under the main vBulletin settings list). As of v1.03, the Encheferizer supports bbcode, smilies, IMG's and URL's.

Why?

Good question. Well, apart from just being funny as all get out, I wrote this for a friend who has some very persistant troublemakers on his forum. It turns out that Encheferization is a remarkably good tool for controlling Bad Boyz & Gurlz. It has a way of focusing peer pressure, creates much confusion amongst the Encheferized, and much hilarity for everyone else. Best of all, it renders the Encheferized unable to properly vent their spleen - after all, who can take threats of violence and foul language seriously when it is rendered in mock swedish?

And of course, having an enchererized forum on your board is just good old fashioned family fun!

Installation
  1. Copy bb_encheferizer.php to ./includes in your forum root.
  2. Import the product XML from your ACP Product Manager.
  3. Don't forget to hit the install button on this page. No, I'm not bucking for HOTM, I just want to be able to let you know about any updates!
Configuration
  1. Find the Encheferizer under the vBulletin Settings menu in your ACP.
  2. Enter a comma separated list of userids and/or forumids you want to encheferize.
  3. Light blue touch paper and stand well clear.
Upgrading
  1. Copy the new bb_encheferizer.php to your forum ./includes folder. If you are upgrading from 1.02 or earlier delete the old encheferizer.php.
  2. Re-import the product XML, remembering to set Overwrite to Yes.
Uninstallation
  1. Uninstall the product from the ACP Product Manager.
  2. Delete the ./includes/encheferizer.php and/or bb_encheferizer.php file(s).
Change History
  • 1.05 Fixed forum description and guest posting bugs.
  • 1.04 Fixed post caching bug. Fixed PM title bug (thanks Adrian). Improved bbcode support to prevent "[escaping the chef]".
  • 1.03 Added support for bbcode, smilies, IMG's and URL's.
  • 1.02 Added forum encheferization and "Victims See As" options.
  • 1.01 Changed version and ZIP numbering to match vborg version checking.
  • 1.0.1 Added thread and post title encheferizing, input validation on userid list
  • 1.0.0 Original release
Thanks

Major props to Erik Bakker for the original encheferizer.php port.

Thanks to SirAdrian for putting up with my dumb questions.

Productizing made easy using the Advanced Product Manager by mtha.


With Apologies To

The Swedish Chef. Bork Bork Bork!


Enjoy!

-- hugh

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 01-01-2007, 10:25 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bplinson View Post
Found a bug.
Fixed a bug.

I'll release a 1.05 with this fix in it as soon as I fix the moderated post thing cherylferraro noticed. For now, if you want you can edit your "Encheferizer - showthread title" plugin, and replace the PHP code with this version:

PHP Code:
// Product: Encheferizer 1.05
// Author: Hugh Messenger (cheesegrits)

global $encheferize_all_perps$encheferize_perps$chef_parser$swedish_chef$chefids$chefforumids$vuserid;

if (
in_array($thread['forumid'],$chefforumids))
{
    
$thread['title'] = $swedish_chef->encheferize(strip_bbcode($thread['title'], true)); 
    
$foruminfo['title'] = $swedish_chef->encheferize(strip_bbcode($foruminfo['title'], true)); 
    
$foruminfo['description'] = $swedish_chef->encheferize(strip_bbcode($foruminfo['description'], true)); 

}
else if (
in_array($thread['postuserid'],$chefids) and 
            (!
$vuserid or !in_array($vuserid,$chefids) or $encheferize_all_perps or
                (
$encheferize_perps and $thread['postuserid'] == $vuserid)
            )
        )
{
    
$thread['title'] = $swedish_chef->encheferize(strip_bbcode($thread['title'], true)); 

-- hugh
Reply With Quote
  #43  
Old 01-01-2007, 10:52 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cherylferraro View Post
On my board unregistered posters are moderated. I just noticed that all of their posts have been Encheferizerized. Have I set something up incorrectly?

I had to disable the hack to get their posts to display normally...
I think I have a fix for this. It's a little hard for me to be sure, as I'm on the road and don't have access to my actual test server ... so I'm having to (very carefully!) test it on a couple of live servers.

[Edit - I just got into my test board, and this fix works for me just fine. I set guests to be moderated, posted, approved, posts show up normally.]

Could you try this. Find your "Encheferizer - main postbit", and replace the PHP with the following. There's actually only one small change, but it's easier to just copy & paste the whole thing in there:

PHP Code:
// Product: Encheferizer 1.05
// Author: Hugh Messenger (cheesegrits)

global $thread$encheferize_all_perps$encheferize_perps$chef_parser$swedish_chef$chefids$chefforumids$vuserid$chef_tag_list;

$safeScripts = array(
    
'showpost',
    
'showthread'
);

if (
in_array(THIS_SCRIPT$safeScripts) and (
        
in_array($GLOBALS['forumid'],$chefforumids) or (
            
$this->post['userid'] and (
                
in_array($this->post['userid'],$chefids) and (
                    !
$vuserid or
                    !
in_array($vuserid,$chefids) or
                    
$encheferize_all_perps or (
                        
$encheferize_perps and
                        
$this->post['userid'] == $vuserid
                    
)
                )
            )
        )
    )
)  
{
    
$this->post['title'] = $swedish_chef->encheferize(strip_bbcode($this->post['title'], true)); 
    
$cheftext $chef_parser->do_parse($swedish_chef->bb_encheferize($this->post['pagetext'],0,$chef_tag_list,$didCut),0,1,1,1,1);

Let me know if this fixes your problem, and I'll wrap this and another change up and release 1.05.

-- hugh
Reply With Quote
  #44  
Old 01-07-2007, 06:49 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uploaded the 1.05 ZIP, which just includes the above two fixes (forum description and guest posting bugs).

-- hugh
Reply With Quote
  #45  
Old 01-10-2007, 04:54 PM
cherylferraro cherylferraro is offline
 
Join Date: Oct 2005
Location: California
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed the latest files and the moderated posts are displaying normally.

Thank you!
Reply With Quote
  #46  
Old 01-10-2007, 09:26 PM
msu2k msu2k is offline
 
Join Date: Jan 2003
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to set it so that a chefed user sees ALL posts on ALL forums as chefed, but everyone else sees them normally?
Reply With Quote
  #47  
Old 01-11-2007, 08:28 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msu2k View Post
Is there a way to set it so that a chefed user sees ALL posts on ALL forums as chefed, but everyone else sees them normally?
No, not at the moment, but I'm always open to suggestions.

Would you want everyone else to see those victims posts encheferized, or normal?

I'll look at adding a new category of "victim", that see the entire board encheferized. Watch this space.

-- hugh
Reply With Quote
  #48  
Old 01-18-2007, 04:02 PM
chick's Avatar
chick chick is offline
 
Join Date: Aug 2006
Location: PI Land
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have just the member to pull this on... thanks
Reply With Quote
  #49  
Old 01-18-2007, 05:10 PM
msu2k msu2k is offline
 
Join Date: Jan 2003
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheesegrits View Post
No, not at the moment, but I'm always open to suggestions.

Would you want everyone else to see those victims posts encheferized, or normal?

I'll look at adding a new category of "victim", that see the entire board encheferized. Watch this space.

-- hugh
I just thought it would be amusing for a victim to see everything chefed but for everything to appear normal to others...they'd probably have to start questioning the victim's sanity.
Reply With Quote
  #50  
Old 01-19-2007, 01:56 PM
dodgechargerfan dodgechargerfan is offline
 
Join Date: Aug 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it!

It does mess up the smilies though. I can't see a simple way to fix that, though, as smiley replacement text could be anything.

The trade-off is worth it. I put the board owner in as the first "victim." He'll love it once he figures it out.
Reply With Quote
  #51  
Old 01-19-2007, 03:20 PM
project-Buckfas project-Buckfas is offline
 
Join Date: Jul 2006
Location: Ireland
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect for an april fools
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:11 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.04699 seconds
  • Memory Usage 2,345KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete