vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   BB Code Enhancements - CES Parser Permissions (https://vborg.vbsupport.ru/showthread.php?t=211102)

grey_goose 12-15-2009 07:00 PM

Another small bug: it doesn't seem to parse the custom profile fields on profile.php. It will on member.php, but not on profile.php.

thincom2000 12-16-2009 11:53 AM

Quote:

Originally Posted by Alucard^ (Post 1931215)
Well, i installed and seted the "allow html posts" permission to administrators but... i can't use html code.

In order for any of the settings to work, you must also have the item turned on globally - in this case, HTML must already be allowed in the forum the admin is posting in.

thincom2000 01-08-2010 06:02 AM

I should be creating a 4.x thread and releasing the updated version tomorrow. It'll mainly be the same except for some editor button fixes in 4.x and support for CMS comments.

grey_goose 01-08-2010 10:40 PM

Excellent... will the update be compatible with 3.8? Any fix for the poll issue?

thincom2000 01-09-2010 03:16 PM

As mentioned, it's just a compatibility update right now. Once I get more of my mods "compatible", I'll be revisiting them to solve the unresolved issues.

thincom2000 05-15-2010 04:38 AM

Posted the 2.2.2 update. Users who are also running VaultWiki (full or lite) need to update to this version.

grey_goose 05-15-2010 03:00 PM

Unfortunately, it still doesn't parse bbcode in Poll options ala Topic of the Month...

thincom2000 05-15-2010 07:49 PM

Try the following. In includes/ces_permissions.php, find:
Code:

        else
        {
                ($hook = vBulletinHook::fetch_hook('bbcode_permissions_userinfo')) ? eval($hook) : false;
        }

Add before:
Code:

        else if (THIS_SCRIPT == 'poll' OR ($GLOBALS['pollinfo'] AND !$GLOBALS['splitoptions']))
        {
                global $threadinfo;

                $post['userid'] = $threadinfo['postuserid'];
                $postusername = $threadinfo['postusername'];
        }

Then, AdminCP > Plugins & Products > Plugin Manager > Add New Plugin.

Product: CES Parser Permissions
Hook: showthread_poll_start
Title: Show Edit Poll Link
Execute Order: 5
Code:

if ($show['editpoll'] AND $threadinfo['userid'] != $vbulletin->userinfo['userid'])
{
        require_once(DIR . '/includes/ces_permissions.php');
        $show['editpoll'] = ces_has_permissions($threadinfo['forumid']);
}

Active: Yes

Add another New Plugin.
Product: CES Parser Permissions
Hook: poll_start
Title: Check Poll Edit Conflict
Code:

if (
        $threadinfo['postuserid'] != $vbulletin->userinfo['userid'] AND
        (
                $_REQUEST['do'] == 'polledit' OR
                $_POST['do'] == 'postpoll'
        )
)
{
        require_once(DIR . '/includes/ces_permissions.php');
        ces_has_permissions($threadinfo['forumid'], true);
}

Active: Yes

grey_goose 05-16-2010 02:38 PM

omg you are the win :)

thanks so much

grey_goose 05-17-2010 04:59 PM

hmmmmm new bug; i have random instances of a parsed user field replacing a poster's message text.


All times are GMT. The time now is 05:32 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.01077 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (1)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
  • (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