vb.org Archive

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

thincom2000 08-15-2016 03:34 PM

I have reviewed the code and it looks like you are correct. There is no handling for guest users.

Try this. In includes/ces_permissions.php, find:
Code:

        if (!empty($parser->ces_options["$forumid"][$parser->ces_options['current_userid']]))
        {
                $dohtml = $parser->ces_options["$forumid"][$parser->ces_options['current_userid']]['can_html_' . $parser->ces_options['check_type']];

Before it, add:
Code:

        if (empty($parser->ces_options['current_userid']))
        {
                // user is a guest
                $userinfo = array(
                        'userid' => 0,
                        'usergroupid' => 0,
                        'membergroupids' => ''
                );

                if (empty($parser->ces_options["$forumid"][0]))
                {
                        if (empty($post['permissions']))
                        {
                                $grab = true;
                        }
                        else
                        {
                                $userinfo['permissions'] = $post['permissions'];
                        }
                }
        }


grey_goose 08-15-2016 04:19 PM

AHA!

Thank you so much! And again, great mod!

M.C. 04-06-2017 10:43 AM

Quote:

What It Does:
Allows you to grant only certain usergroups the ability to use HTML, BB-code, smilies, and IMG-code in their profile fields, posts, PMs, and in Project Tools.
hmm... I only see "CES Profile Permissions" group in "AdminCP -> Usergroups -> Usergroup Manager -> Edit Usergroup"

Also would be nice to disallow to use TABLE bb code for usergroups!

It also in CONFLICT with [CKEditor] MARCO1 Advanced Quick Reply And Edit :(

Pocket Aces 08-29-2018 03:23 AM

This mod prevents inline image (attach tag) from showing in posts.

X-or 12-12-2018 03:58 PM

after uninstall blogs are still messed up and I don't know how to fix

terrible mod, do not use, you've been warned

brandon515 12-23-2019 04:48 PM

I'm getting these warnings filling up my error log, any ideas?

PHP Warning: Use of undefined constant value - assumed 'value' (this will throw an Error in a future version of PHP) in /home/mysite/public_html/includes/ces_permissions.php(588) : eval()'d code on line 1

Hostboard 12-23-2019 09:37 PM

The PHP call is depreciated in the version of PHP you are running. Did you or your host recently update PHP? While VB 4.2.5 is compatible with PHP 7.1.x many of the plugins were not written for this version and will throw warning messages. This does not mean they will not work and you can just add:

Code:

php_flag display_errors off
to your .htaccess file to suppress the warning message(s). Eventually you might want to have hire a coder to bring the code up to date.


All times are GMT. The time now is 04:11 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.01030 seconds
  • Memory Usage 1,728KB
  • 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_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
  • (7)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