vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Encheferizer (https://vborg.vbsupport.ru/showthread.php?t=134327)

cheesegrits 12-18-2006 10:00 PM

Encheferizer
 
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! :D

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

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

[high]* projectego clicks install[/high]

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

Quote:

Originally Posted by tanyeri24 (Post 1141915)
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

Quote:

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

Quote:

Originally Posted by Tulsa (Post 1144854)
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

Quote:

Originally Posted by Tulsa (Post 1146122)
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
PHP Code:

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 this
PHP Code:

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

Quote:

Originally Posted by Tulsa (Post 1144854)
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

Quote:

Originally Posted by OmniBuzz (Post 1147762)
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

Quote:

Originally Posted by tanyeri24 (Post 1141915)
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/s...d.php?p=593684 Encheferizered user

http://xlforum.net/vbportal/forums/s...ad.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

Quote:

Originally Posted by cherylferraro (Post 1148684)
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

Quote:

Originally Posted by bplinson (Post 1148581)
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/s...d.php?p=593684 Encheferizered user

http://xlforum.net/vbportal/forums/s...ad.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


All times are GMT. The time now is 04:54 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.01511 seconds
  • Memory Usage 1,876KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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