View Full Version : Forum Display Enhancements - Encheferizer
cheesegrits
12-18-2006, 10:00 PM
The Encheferizer
Product: Encheferizer 1.05
Author: Hugh Messenger (cheesegrits (https://vborg.vbsupport.ru/member.php?u=141720))
Support: On this thread only (https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=encheferizer)
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:
57831
Everyone else sees them like this:
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! :D
Installation
Copy bb_encheferizer.php to ./includes in your forum root.
Import the product XML from your ACP Product Manager.
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
Find the Encheferizer under the vBulletin Settings menu in your ACP.
Enter a comma separated list of userids and/or forumids you want to encheferize.
Light blue touch paper and stand well clear.Upgrading
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.
Re-import the product XML, remembering to set Overwrite to Yes. Uninstallation
Uninstall the product from the ACP Product Manager.
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 (http://bork.eamelink.nl/) for the original encheferizer.php port.
Thanks to SirAdrian (http://www.siradrian.com/) for putting up with my dumb questions.
Productizing made easy using the Advanced Product Manager (https://vborg.vbsupport.ru/showthread.php?t=121792) by mtha.
With Apologies To
The Swedish Chef (http://en.wikipedia.org/wiki/Swedish_Chef). Bork Bork Bork!
Enjoy!
-- hugh
cheesegrits
12-19-2006, 02:52 AM
First Reply Reserved for Future Expansion.
Change history:
12/19/2006 - 1.01 - Re-uploaded ZIP and changed version numbering to match vborg's versioning.
12/20/2006 - 1.02 - Added some options to control how victims see their posts, and an optional list of forum ID's (renders entire forum encheferized).
12/21/2006 - 1.03 - Added bbcode support.
12/30/2006 - 1.04 - Fixed post caching bug. Fixed PM title bug (thanks Adrian). Improved bbcode support to prevent "[escaping the chef]".
01/07/2007 - 1.05 - Fixed forum description and guest posting bugs.
-- hugh
Adrian Schneider
12-19-2006, 02:54 AM
I lufe-a eet, tunks ffur shereeng! I teenk my mimbirs lufe-a eet tuu (ixcipt tet une-a gooy LUL)
Bork bork bork!
FleaBag
12-19-2006, 03:18 AM
Haha I like it, and I have one user in mind... :D
Darat
12-19-2006, 09:03 AM
I wouldn't use it but it is funny! (Mind you for an April's fools joke... downloads it just in case.)
tschai
12-19-2006, 09:56 AM
This could be a nice replacement for the Misrable user addon...thanx...wil install and make (ab)use of it
*clicks install*
projectego
12-19-2006, 11:33 AM
Hilarious! ;)
* projectego clicks install
SaN-DeeP
12-19-2006, 05:28 PM
bit hard to understand, seems interesting but can someone convert the above text to proper english please ?
Thanks for this addon.
bashy
12-19-2006, 06:51 PM
Thats the whole idea ;)
tanyeri24
12-19-2006, 11:17 PM
for me it would be interesting if the user see all posts Encheferized. That would be hilarious because he have to logout to read it in correct language, so he cannot use his account.
Hornstar
12-19-2006, 11:43 PM
lol, nice work, something for those members who never learn. however i think any member who had this occur to them would then start making lots of threads saying whats going on etc. and then that would add to the spam... maybe ill leave this for a special occasion like April fools like the above said... nice work tho.
cheesegrits
12-19-2006, 11:52 PM
for me it would be interesting if the user see all posts Encheferized. That would be hilarious because he have to logout to read it in correct language, so he cannot use his account.
I've already added two new options, that control whether encheferized users (or "victims") see their own posts as regular or encheferized. One option lets you define if individual victims see their own posts encheferized or not. The other defines whether all victims will see all other victims as encheferized or not (setting to Yes overrides the per-victim option).
I'm also adding a "forumids" option. I've had a couple of folk say that their users WANT to be encheferized, but only in specific forum(s).
I'll be uploading the new version some time tonight, probably.
-- hugh
cheesegrits
12-20-2006, 12:02 AM
lol, nice work, something for those members who never learn. however i think any member who had this occur to them would then start making lots of threads saying whats going on etc. and then that would add to the spam... maybe ill leave this for a special occasion like April fools like the above said... nice work tho.
Oh, but that's where the fun is! I wish I could point you at some of the threads where the victims are trying to work out what is going on, and everyone else is just having a fine old time. But I don't want to publish those links without explicit permission from the admins running those boards. All I can tell you is that some of the threads have reduced grown admins to tears of helpless laughter.
Yes, it does cause quite a commotion for a little while, but a) watching the victims curse and threaten and generally go ape sh*t in Swedish Chef speak is just too funny for words, and b) you can turn it off any time, and let the victims know that if they annoy you again, they'll get encheferized again, or booted.
Basically, the reason I wrote this was as a last resort before having to ban trouble makers. As I said in the release ntoes, encheferizing has a way of bringing peer pressure to bear on trouble makers. You don't even have to say a word - your members will eventuall work out what's going on. It worked on Usenet 15 years ago, and it seems to work on bulletin boards now. :)
-- hugh
GrendelKhan{TSU
12-20-2006, 01:23 AM
rofl!!
<< bookmarked for next upgrade. nice job!! :D
tobybird
12-20-2006, 02:31 AM
omg this would make a fantastic April Fools joke! LOL
Adrian Schneider
12-20-2006, 03:05 AM
I'll be kind and post the one from my StarCraft site.
Just a warning... foul language and hatred makes its appearance as the thread progresses. Enter at your own risk.
[enchef no longer active, so link removed]
I'm Aj, and cheesegrits is posting as "The Swedish Chef". It was a fun day to say the least. ;)
Insert Username
12-22-2006, 11:31 PM
Hey cheesegrits, I have a problem that maybe you could help me with. This hack, combined with a db error and another issue ended up deleting one of my users. Now I was able to reconstruct the user account, and I uninstalled this hack, along with deleting the file in the /includes folder. However, some (maybe 10%) of the user's posts are still being affected by this hack, despite it no longer being installed. Any idea how that's happening or where I should go to fix it? The posts are still intact, because if I go to edit them, I see the proper text. But somewhere in my forums, something is hanging on to this and I need to shake it look. Any help would be appreciated! Thanks.
cheesegrits
12-23-2006, 01:36 PM
First off, my apologies if the Encheferizer had anything to do with the problems. Although I am puzzled as to how it could have had anything to do with deleting a user, as all it does is modify some display variables just before they get eval'ed in the templates. It doesn't go anywhere within a mile of any database calls, so I doubt it had anything to do with any db errors, either.
I'm half way to North Carolina right now, having a hot spot pit stop breakfast. I'll PM you when I get where I'm going, to find out more about what other hacks you were running. I suspect to get rid of any remaining traces of chefspeak you may have to rebuild a cache somewhere. I do assure you though that nothing has been changed (by me!) in any of your databases. It's 100% done on the display / rendering end.
More news in another 500 miles or so.
-- hugh
Insert Username
12-23-2006, 01:46 PM
Thanks cheesegrits. Honestly, I don't know that this hack was at all responsible for this. I think it was just one of several factors. It happened that the user deleted was one currently under the effect of it, so that's all I'm basing it on.
No rush on this!
Rat1972
12-24-2006, 01:14 PM
I installed it on my board and i took one member for this mod. He always makes fun of anybody else and now he was standing in the spotlights and all the members loved it. Thanks for the big laugh your mod gaved us!
Tulsa
12-25-2006, 11:51 AM
Even though I have both "victims see self encheferized" and "victims see all encheferized" both set to no, the encheferized member see their own posts encheferized.
If I'm reading this right, they are supposed to see their posts normal. Is this acting properly or am I misunderstanding the options use?
da420
12-25-2006, 04:29 PM
Even though I have both "victims see self encheferized" and "victims see all encheferized" both set to no, the encheferized member see their own posts encheferized.
If I'm reading this right, they are supposed to see their posts normal. Is this acting properly or am I misunderstanding the options use?
I get the same thing. Also, when I set it to 'victims see all encheferized' they only see themselves encheferized, but not everyone else, and everyone can see the victims posts encheferized..
cheesegrits
12-26-2006, 04:13 AM
Just to let y'all know I got to my destination ... three days of traveling, almost a thousand miles driven, half a dozen relatives and friends visited with ... it's great to finally be able to sit down and know we don't have to go anywhere for a couple of weeks (till that long haul back home!).
Anyway, it's midnight on Christmas night ... so Ho Ho Ho! I hope Santa was good to y'all, and I'll be back online tomorrow to answer your questions.
-- hugh
Tulsa
12-28-2006, 12:54 AM
Another thing you need to look at is private messages. The titles become encheferized regardless of the user or thier status with this mod.
Tulsa
12-28-2006, 02:36 AM
Hows this for weird?
I had one poster encheferized for testing, she replied in a thread and a few others did after her. I deleted their posts but left hers up. I had set her first so she couldn't see the effect then set it so she could. I then took her userid out of the mod, and saved it. She could still see that particular post encheferized. I could see it encheferized with her userid out of the mod.
Here's the really weird part though, I disabled the hack and we both could still see it encheferized. I then went to her post, edited it, without changing anything and saved it and then it was presented normal to everyone.
So it would appear at least from what I've seen that if you delete a post in a thread where someone has posted after they have been encheferized, it will stay that way even if the hack is disabled. How in the world is that happening?
OmniBuzz
12-29-2006, 08:37 PM
Another thing you need to look at is private messages. The titles become encheferized regardless of the user or thier status with this mod.
I have the same issue : the title is encheferized when you open a PM. The bug is there even when the mod is not enabled (empty fields)
Weird
Adrian Schneider
12-29-2006, 08:53 PM
To prevent it from mucking up your private messages, try this:
In the "Encheferizer - main postbit" plugin, replace this global $thread, $encheferize_all_perps, $encheferize_perps, $chef_parser, $swedish_chef, $chefids, $chefforumids, $vuserid, $chef_tag_list;
if (in_array($GLOBALS['forumid'],$chefforumids) or (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))))with thisglobal $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 (
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
)
)
)
)
)Basically it prevents it from running in the private messages.
cheesegrits
12-30-2006, 02:52 AM
Just so folk know, I asked Aj to take a look at the PM issue this afternoon, as I was absolutely slammed with Pesky Real Work, and simply couldn't take the time out. I'm about to roll his fix into a new ZIP. Thanks, Adrian.
As for the Encheferization sometimes remaining on some posts even after the product is disabled, I've only ever been able to duplicate this once, and I'm still not sure a) how the heck it was happening, or b) what I did to cure it. I'm absolutely, definitely, posolutely not touching the database - I checked when it happened to me, and the three affected posts were in plain text in the database.
It's obviously something to do with being cached elsewhere in vB, and / or some other mod or hack. I just can't work out where or how! Literally all my code does is modify template display variables, as close to where they are rendered in the templates as the hook locations allow. I just can't imagine what would then be taking just some of those variables and caching them. And the normal cache rebuild ACP options don't seem to help.
I'm going to try again tonight to duplicate the effect. If nothing else, I might try some defensive measures, like resetting the display variables as soon as possible after the templates are eval'ed.
Until then, all I can do is assure you the database is still intact, and it is a temporary situation. I just wish I knew what I'd done to cure the only time it's happened to me!
More news when there is news,
-- hugh
cheesegrits
12-30-2006, 09:28 PM
OK, I finally tracked down the post caching bug. The new v1.04 I just uploaded fixes that, along with the PM title bug, and has improvements to bbcode handling.
If you have "ghost posts" you need to un-cache so they return to normal, you just have to edit the post and save it. This will re-cache the normal text version.
Upgrade instructions are in the main doc. It's a 30 second upgrade. Just upload bb_encheferizer.php to your ./includes folder, and re-import the product XML (remembering to "Allow Overwrite").
-- hugh
cheesegrits
12-30-2006, 09:46 PM
Even though I have both "victims see self encheferized" and "victims see all encheferized" both set to no, the encheferized member see their own posts encheferized.
If I'm reading this right, they are supposed to see their posts normal. Is this acting properly or am I misunderstanding the options use?
Tulsa - Sorry about the delay responding, I've been travelling over the holidays, and then had to concentrate on the post caching bug.
Yes, you are reading it correctly. And I do apologize for the confusing nature of those descriptions - it's not an easy thing to explain in a consice fashion! I'll have another go here:
If both options are set to No, victims should see no encheferization at all - not of their own posts, or any other victims posts.
If "Victims See Self Encherized" is set to Yes, victims should see their own posts chefed, but they should see other victims (and everyone else) as normal text.
If "Victims See All Encheferized" is set to Yes, all victims will see their own and all other victims posts chefed. This setting overrides a "Self" setting of "No".
Non-victims always show in normal text, except of course in fully chefed forums, where all posts from anyone are chefed, and seen by everyone that way.
If your board really is behaving differently, let me know, and I can take a look. Make sure you upgrade to 1.04 first though, see if that has any effect.
-- hugh
OmniBuzz
12-30-2006, 10:55 PM
updated, thanks again, no more PM title bug...
cheesegrits
12-31-2006, 04:36 PM
updated, thanks again, no more PM title bug...
Good!
But it did give me an idea to add an "Encheferize Victims PM's" option, LOL!
-- hugh
cheesegrits
12-31-2006, 04:46 PM
for me it would be interesting if the user see all posts Encheferized. That would be hilarious because he have to logout to read it in correct language, so he cannot use his account.
I just noticed I never responded to this one, my apologies.
I'll see if I can work this in as an option.
-- hugh
kewl1uk
01-01-2007, 11:08 AM
Installed! It cracks me up every time I see it. Well done.
bplinson
01-01-2007, 04:40 PM
Installed.
Found a bug.
It also changes the forum category description to the Swedish Chef language.
Here is an example:
http://xlforum.net/vbportal/forums/showthread.php?p=593684 Encheferizered user
http://xlforum.net/vbportal/forums/showthread.php?t=44561 unEncheferizer user
See how the forum category description is changed also?
cherylferraro
01-01-2007, 05:30 PM
Hilarious, keeps snerts from taking themselves too seriously.
Thank you!
cherylferraro
01-01-2007, 07:45 PM
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...
cheesegrits
01-01-2007, 09:07 PM
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...
Hmmm, that's a new one. I'll fix that ASAP. My apologies, and watch this space. Or make sure you pressed the install button, so you'll get the upgrade announcement by mail.
-- hugh
cheesegrits
01-01-2007, 09:40 PM
Installed.
Found a bug.
It also changes the forum category description to the Swedish Chef language.
Here is an example:
http://xlforum.net/vbportal/forums/showthread.php?p=593684 Encheferizered user
http://xlforum.net/vbportal/forums/showthread.php?t=44561 unEncheferizer user
See how the forum category description is changed also?
That's not a bug, that's entirely deliberate. :D
When you encheferize a forum, it encheferizes the WHOLE forum ... forum title, description, browser page title, even the breadcrumb link. It also changes the title on foromhome. The only thing I wasn't able to change was the title of the last post on forumhome, as there is no hook in that area of the code.
If this behaviour bugs you, let me know and I'll add an option to turn that off. But IMHO, if you are are going to encheferize a forum ... then you might as well go all the way, LOL! It's all part of the fun.
-- hugh
cheesegrits
01-01-2007, 09:46 PM
Hmmm. On rereading your post, I think I misunderstood. I'll go and try it on one of my boards. The title, description etc. should only change in encheferized forums, not in normal forums when viewing an enchef'ed post. I think I know what I may have done.
Thanks for the feedback. I'll test this and get it fixed ASAP.
As usual, you can always just turn the product off till I come up with the fix if that "feature" is bugging you ... and of course none of the enchefing is permanent.
-- hugh
cheesegrits
01-01-2007, 10:25 PM
Found a bug.
Fixed a bug. :D
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:
// 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
cheesegrits
01-01-2007, 10:52 PM
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:
// 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
cheesegrits
01-07-2007, 06:49 PM
Uploaded the 1.05 ZIP, which just includes the above two fixes (forum description and guest posting bugs).
-- hugh
cherylferraro
01-10-2007, 04:54 PM
I just installed the latest files and the moderated posts are displaying normally.
Thank you! :D
msu2k
01-10-2007, 09:26 PM
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?
cheesegrits
01-11-2007, 08:28 PM
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. :D
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
chick
01-18-2007, 04:02 PM
i have just the member to pull this on... thanks
msu2k
01-18-2007, 05:10 PM
No, not at the moment, but I'm always open to suggestions. :D
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. ;)
dodgechargerfan
01-19-2007, 01:56 PM
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.
project-Buckfas
01-19-2007, 03:20 PM
Perfect for an april fools
Sadie Frost
01-20-2007, 10:37 PM
OH MY GOD that is fantastic! Awesome! :D
cheesegrits
01-22-2007, 06:36 PM
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.
Hmm, normal smilies should work fine. Are you using My Smilies? I only recently found out about My Smilies, and haven't had a chance to modify the chef to handle custom smilies on a per user basis - although the fix is simple enough, and it should be in the next release.
-- hugh
cheesegrits
01-22-2007, 06:40 PM
OH MY GOD that is fantastic! Awesome! :D
Well thank you! Comments like that make it worth the effort.
-- hugh
WATRD
01-29-2007, 10:49 PM
Fun mod! The only thing that would make it better, would be if you could Encheferize an entire usergroup. That way, you could use it as penalty in conjunction with the Infraction system. Accumulate a certain number of points and join the Encheferizer group for a while :)
bluechris
01-30-2007, 06:28 PM
I had edit abit the bb_encheferizer.php to change the greek words for those who have greek language in their forums.
Great thing m8 we cryed here with some guys that we did it.
cheesegrits
02-05-2007, 01:21 AM
Fun mod! The only thing that would make it better, would be if you could Encheferize an entire usergroup. That way, you could use it as penalty in conjunction with the Infraction system. Accumulate a certain number of points and join the Encheferizer group for a while :)
Someone else suggested that in a PM last week, and I think it's a great idea. I'm working on adding that feature now, hope to have it ready soon.
Don't know why I didn't think of this myself
Thanks for the feedback.
-- hugh
cheesegrits
02-05-2007, 01:27 AM
I had edit abit the bb_encheferizer.php to change the greek words for those who have greek language in their forums.
Ooooh. I hadn't thought about non-English to Swedish Chef translations. Not a lot I can do about that really, as I'd need to understand a lot more than I do about linguistic phonemes and all that in each target language.
What I might look at doing at some point is making the replacement terms be a lookup array, then provide a hook so you can add / redefine them with a simple plugin.
Worth doing just for very thought of The Swedish Chef speaking in Polish or Greek or Italian or ... LOL!!
Great thing m8 we cryed here with some guys that we did it.
Yup, I've had similar experiences. Literally tears running down my face and sides hurting from laughing so much. Especially when the victims start cussing and threatening ...
Thanks for the feedback, makes the work worthwhile. :)
-- hugh
ubblite
02-05-2007, 07:16 AM
Funny mod, but for me even if you enter which forum ID & user ID in Encheferizer, it still shows up for everyone as Encheferizer. Strange.
cheesegrits
02-06-2007, 11:01 PM
Funny mod, but for me even if you enter which forum ID & user ID in Encheferizer, it still shows up for everyone as Encheferizer. Strange.
Not quite sure what the problem is.
If you specify any forum ID's, then all posts in those forums will appear encheferized to everyone, ragardless of userid.
If you specify User ID's, and don't change the "Victims see as ..." options, then those users posts will appear encheferized to everyone else, but normal to the "victims", in any forums. Unless of course they are posting in a chef'ed forum, in which case the above rule applies.
-- hugh
ubblite
02-07-2007, 07:04 AM
You're right cheesegrits - I must have misunderstood the UserCP options. Thanks.
cheesegrits
02-07-2007, 11:22 PM
No problem. It's easy to get confused, even I do sometimes. Being very customizable can be a two edged sword.
-- hugh
cheesegrits
02-08-2007, 02:06 AM
Looking for a couple of volunteers to test 1.07, which adds the Usergroup ID list, as requested by several folk, who had the bright idea of being able to tie the Encheferizer to an "infractions group".
So 1.07 adds "Group ID(s)" to the ACP options. If you specify one or more groups, ALL POSTS (and forum names, titles, descriptions, etc) on the ENTIRE site will be encheferized for those users.
I've tested on a couple of boards, seems to work OK, but I'd like a couple of other folk to try it before I release.
-- hugh
phpdevrus
02-11-2007, 03:47 AM
:-) Freaking hilarious...
Love it. lol
Going to install it now.
cheesegrits
02-27-2007, 05:38 PM
:-) Freaking hilarious...
Love it. lol
Going to install it now.
Don't forget to push that Install button, so I can keep you informed about upgrades and bug fixes (not that there are any bugs, of course, LOL!).
I finally found some time to work on the infraction group stuff, Rob is testing it for me now, should be released real soon.
-- hugh
Soliloquy
03-14-2007, 04:37 AM
I just installed this and plan to unleash it on my forum on April Fool's Day. Oh, the pandemonium that will ensue...:)
Two things I would love to see though: it would be nice if there was an option to allow a user to turn it off when they get tired of it. And wouldn't it be great if it temporarily changed the affected user's avatar to an image of the Swedish Chef? Cheesegrits, if you're still developing this mod, please consider adding those features. And thank you so much for a great mod! My members will be in stitches:up:
kal-L
03-14-2007, 04:56 AM
Oh, but that's where the fun is! I wish I could point you at some of the threads where the victims are trying to work out what is going on, and everyone else is just having a fine old time. But I don't want to publish those links without explicit permission from the admins running those boards. All I can tell you is that some of the threads have reduced grown admins to tears of helpless laughter.
Yes, it does cause quite a commotion for a little while, but a) watching the victims curse and threaten and generally go ape sh*t in Swedish Chef speak is just too funny for words, and b) you can turn it off any time, and let the victims know that if they annoy you again, they'll get encheferized again, or booted.
Basically, the reason I wrote this was as a last resort before having to ban trouble makers. As I said in the release ntoes, encheferizing has a way of bringing peer pressure to bear on trouble makers. You don't even have to say a word - your members will eventuall work out what's going on. It worked on Usenet 15 years ago, and it seems to work on bulletin boards now. :)
-- hugh
Your the best! :D
Indeed this has just been added.. and I do recall Usenet ;)
darkman
03-17-2007, 08:07 PM
heh - classic!
Thanks and installed :)
davelacey
03-18-2007, 10:55 AM
Funniest hack ever. Installed.
Great stuff.
Thanks. :D
IamRob
03-21-2007, 05:29 PM
I just installed this and plan to unleash it on my forum on April Fool's Day. Oh, the pandemonium that will ensue...:)
Two things I would love to see though: it would be nice if there was an option to allow a user to turn it off when they get tired of it. And wouldn't it be great if it temporarily changed the affected user's avatar to an image of the Swedish Chef? Cheesegrits, if you're still developing this mod, please consider adding those features. And thank you so much for a great mod! My members will be in stitches:up:
You'll actually be able to do this with the new update of the chef. One of the changes is a "per usergroup" function. You can simply make that usergroup's avatar the Chef.
pete_brady
03-31-2007, 11:08 PM
this is the best thing ever
masterme
04-01-2007, 07:08 AM
Also installed this, very funny!
How do I get it to work on the index page? Since that has no id?
Jaxel
04-01-2007, 07:38 PM
I found a bug... if someone uses the [IMG] tag... the image gets broken because it enchenferizes the link to the image as well.
Sadie Frost
04-02-2007, 12:05 AM
Love it love it love it :D
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! :D
Soliloquy
04-02-2007, 02:15 AM
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:
$newavatar = mt_rand(1, 6);
(Change the 6 to the number of Chef avatars you have.)
Next, edit your postbit template. Find:
<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:
<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>
IamRob
04-14-2007, 08:22 PM
Hugh, what's the deal?
Are you ever going to release the next update?
WhiteOx2
04-14-2007, 11:51 PM
It's a pity any quoted text shows up as normal, otherwise this would be great.
Soonerdude
06-05-2007, 12:00 AM
Someone needs to make a pig-latin version of this mod.
cheesegrits
01-17-2008, 05:58 PM
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
TheJordan
04-01-2008, 09:18 PM
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 :)
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.
Phaedrus
04-05-2008, 02:57 AM
I can't stop laughing...
cheesegrits
04-09-2008, 01:00 PM
Glad you like it. I'm in the process of testing a new option which translates the entire global phrase cache. So even things like page redirect messages get enchef'ed. Now THAT'S funny. I had hoped to get that out in time for April 1st, but Pesky Real Work got in the way.
TheJordan - I'll look at that code, thanks for sharing.
-- hugh
dmark101
03-31-2009, 07:34 PM
so, has there been any updates to this? been nearly a year. :(
ArnyVee
04-10-2009, 01:26 PM
Someone needs to make a pig-latin version of this mod.
That would be funny as well! :up:
I see this appears to work perfectly in 3.8.x. Excellent work!
TheInsaneManiac
10-30-2009, 04:38 AM
Doesn't work on Visitor Messages for 3.8. Actually won't even let you send Visitor Messages to a Encheferzied person. Uninstalled.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.