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 01-01-2007 10:25 PM

Quote:

Originally Posted by bplinson (Post 1148581)
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:

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

cheesegrits 01-01-2007 10:52 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...

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

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

Quote:

Originally Posted by msu2k (Post 1155784)
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

Quote:

Originally Posted by cheesegrits (Post 1156514)
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


All times are GMT. The time now is 08:03 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.01228 seconds
  • Memory Usage 1,766KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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