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)

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:

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>

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

Quote:

Originally Posted by WhiteOx2 (Post 1227922)
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 :)
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.

Phaedrus 04-05-2008 02:57 AM

I can't stop laughing...


All times are GMT. The time now is 11:00 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.02993 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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