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
  #72  
Old 04-01-2007, 07:08 AM
masterme's Avatar
masterme masterme is offline
 
Join Date: Jan 2007
Location: Holland
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also installed this, very funny!
How do I get it to work on the index page? Since that has no id?
Reply With Quote
  #73  
Old 04-01-2007, 07:38 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a bug... if someone uses the [IMG] tag... the image gets broken because it enchenferizes the link to the image as well.
Reply With Quote
  #74  
Old 04-02-2007, 12:05 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love it love it love it

A nice thing for the future (for April Fools jokes lol) would be the option to automatically make all forums encheferized, so you don't need to enter all your forum ids

Thanks for making this - I laughed so hard today!
Reply With Quote
  #75  
Old 04-02-2007, 02:15 AM
Soliloquy's Avatar
Soliloquy Soliloquy is offline
 
Join Date: Mar 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the same experience as Jaxel today; it broke all the posted images and the smileys too.

On the upside, I was able to display random avatars of the Chef with a little help from the vBulletin.org forum. I've attached a zip file of the six Swedish Chef avatars I used; they're all a bit on the large size (most are 100 pixels high) so you may want to resize them. Create a subdirectory named SwedishChef in the images/misc directory and upload them there. Then go to Plugins and Products: Plugin Manager, find the Encheferizer section, and click on Edit for the postbit_display_start hook. Add:

Code:
$newavatar = mt_rand(1, 6);
(Change the 6 to the number of Chef avatars you have.)

Next, edit your postbit template. Find:

Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
and comment it out. Below it add:

Code:
<td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="http://www.yourforum.com/images/misc/SwedishChef/swedish_chef$newavatar.jpg" border="0" /></a></td>
Reply With Quote
  #76  
Old 04-14-2007, 08:22 PM
IamRob IamRob is offline
 
Join Date: Nov 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hugh, what's the deal?

Are you ever going to release the next update?
Reply With Quote
  #77  
Old 04-14-2007, 11:51 PM
WhiteOx2 WhiteOx2 is offline
 
Join Date: Nov 2003
Location: Newcastle, Australia
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a pity any quoted text shows up as normal, otherwise this would be great.
Reply With Quote
  #78  
Old 06-05-2007, 12:00 AM
Soonerdude Soonerdude is offline
 
Join Date: Mar 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone needs to make a pig-latin version of this mod.
Reply With Quote
  #79  
Old 01-17-2008, 05:58 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WhiteOx2 View Post
It's a pity any quoted text shows up as normal, otherwise this would be great.
Sorry about the massive time lag on my response, I had some family issues which prevented me spending much time on vborg, only just been able to start finding the time again.

I'm working on making this an option.

-- hugh
Reply With Quote
  #80  
Old 04-01-2008, 09:18 PM
TheJordan TheJordan is offline
 
Join Date: Dec 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's come code I wrote fro dealing with smilies and html entities that get broken in Chef-speak. My only problem is when I put this into the for loop (~ line 106), the smilies and entities are moved to the front of the Encheferized text. I've only had a couple of minutes to mess with this, so I'm sure someone with more of an idea of what this loop is doing (cheesegrits?) will know how to fix this
PHP Code:
            if($char == '&')
            {
                
// check if this is an html entity
                
$goto null;
                
$entity $char;
                for(
$j=$i+1;$j<$maxLen;$j++)
                {
                    
$entity .= $string[$j];
                    if(
$string[$j]==';')
                    {
                        
$goto $j+1;
                        
$j $maxLen 100;
                        continue;
                    }
                }

                
// if we're actually dealing with an entity
                
if($goto != null)
                {
                    
$i $goto;
                    
$newString .= $entity;
                    continue;
                }
            }

            if(
$char == ':')
            {
                
// check if this is a smiley
                
$goto null;
                
$smiley $char;
                for(
$j=$i+1;$j<$maxLen;$j++)
                {
                    
$smiley .= $string[$j];
                    if(
$string[$j]==' ')
                    {
                        
$j $maxLen 100;
                        unset(
$smiley);
                        continue;
                    }
                    elseif(
$string[$j]==':')
                    {
                        
$goto $j+1;
                        
$j $maxLen 100;
                    }
                }

                
// if we're actually dealing with a smiley
                
if($goto != null)
                {
                    
$i $goto;
                    
$newString .= $smiley;
                    continue;
                }
            } 
BTW, been laughing my ass off all day. Best April Fools, ever. Thanks.
Reply With Quote
  #81  
Old 04-05-2008, 02:57 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't stop laughing...
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 11:58 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.05680 seconds
  • Memory Usage 2,342KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)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
  • (3)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