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)
-   -   Miscellaneous Hacks - CES Parser Permissions (https://vborg.vbsupport.ru/showthread.php?t=138476)

punjabi.king 08-27-2008 12:13 AM

^ thanks but that's what i was trying and it didn't work....

punjabi.king 08-27-2008 12:25 AM

well didn't worked for me, so i had to unistall....
but anywayz thanks to nerofix and thincom2000 for your support....

nerofix 08-27-2008 12:36 AM

Both solutions doesn't work for you? That's a bit mysterious then :erm:

punjabi.king 08-27-2008 12:45 AM

yeah still waiting for thincom2000 to reply..
im kinda confused too, tried everything even through the template

nerofix 08-27-2008 08:49 AM

And embedding of other BB-Code like [img] works? Okay then wait for thincoms reply =)

thincom2000 08-27-2008 04:12 PM

EDIT: You already removed the EMBED code from the banned tag list, so I need to investigate this a little further. But it's possible that the unparsed embed is now saved to the post cache, so see if clearing that helps.

punjabi.king 08-27-2008 07:00 PM

may be its cuz im using 3.7.2

anyone else tested on 3.7.2 ???

thincom2000 08-27-2008 08:12 PM

I'm running it on 3.7.2 ... XD

nerofix 08-28-2008 12:50 AM

I'm running 3.7.2 as well :)

Thincom, I need a solution for the plugin code in this reply ..

Special characters like "&" or "<" or ">" are getting transformed in my fields to html code like &lt;

You know a solution?

thincom2000 08-28-2008 04:07 PM

This should do it. Your member_complete plugin should look like this:

PHP Code:

require_once(DIR '/includes/ces_permissions.php');

if (
FILE_VERSION >= '3.7.0')
{
    
$userinfo =& $blockobj->profile->userinfo;
}

if (empty(
$bbcode_parser))
{
    require_once(
DIR '/includes/class_bbcode.php');
    
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list(true));
    
$bbcode_parser->ces_options = array();
}

$un_parse explode(' '$vbulletin->options['ces_parse_fields']);
$un_parse array_flip($un_parse);
ces_permissions_create($bbcode_parser'ces_profile');

foreach (
$userinfo AS $key => $value)
{
    if (
strpos($key'field') !== 0)
    {
        continue;
    }

    
$keynum str_replace('field'''$key);

    if (empty(
$keynum) OR $un_parse["$keynum"] === null)
    {
        continue;
    }

    
$save_tag_list $bbcode_parser->tag_list;

    if (empty(
$bbcode_parser->ces_options['ces_profile'][$userinfo['userid']]))
    {
        if (
$userperms['ces_parser_permissions'] !== null)
        {
            
$userinfo['permissions'] = $userperms;
        }
        else
        {
            
$userinfo['permissions'] = cache_permissions($userinfo);
        }

        
$bbcode_parser->ces_options['ces_profile'][$userinfo['userid']] = convert_bits_to_array($userinfo['permissions']['ces_parser_permissions'], $vbulletin->bf_ugp['ces_parser_permissions']);
    }

    
$bbcode_parser->ces_options['current_userid'] = $userinfo['userid'];
    
$userinfo["$key"] = $bbcode_parser->parse(htmlspecialchars_decode($value), 'ces_profile');

    
$bbcode_parser->tag_list $save_tag_list;




All times are GMT. The time now is 09:28 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.01297 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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