vb.org Archive

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

thincom2000 04-11-2009 10:00 PM

CES Parser Permissions
 
CES Parser Permissions
vBulletin 3.6.x, 3.7.x, 3.8.x, 4.0.x supported
Version: 2.2.3

If you encounter what you think may be a bug, please include your vBulletin version number when reporting it, since code and fixes differ greatly from 3.6.4 - 3.8.x.

*** NEWS ***
11/8/2010 - 2.2.3 released
5/15/2010 - 2.2.2 released
4/12/2009 - 3.7.x thread created

Known Issues:
- If you are using the Advanced BB-Code Permissions hack, conflicts can arise when profile fields are parsed in the postbit, causing nothing be parsed. The fix is described here: https://vborg.vbsupport.ru/showthread.php?p=1252480

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.

Mod Features:
- parse profile fields on user profiles using Usergroup Permissions
- parse profile fields in postbits using Usergroup Permissions
- parse posts using Usergroup Permissions
- parse calendar events using Usergroup Permissions
- parse private messages using Usergroup Permissions
- parse Project Tools issues and replies using Usergroup Permissions
- parse Social Messages and usernotes using Usergroup Permissions
- complete Forum Rules integration
- disallow certain HTML tags

Products to Install: 1
Files to Upload: 3
Files to Edit: 0
Template Edits: 0

*** Changelog ***
As of Version 2.2.3
  • non-forum messages don't parse
  • poll options don't parse

As of Version 2.2.2
  • several bug fixes
  • compatible with VaultWiki 2.5.7 PL 1 & 3.0.0 RC 3

* This mod is offered for free here. Please donate if you like this mod *

Cerbero1000 09-30-2009 09:20 AM

After upgrade from 2.1.1 to 2.1.6 social groups bbcode don'ts works anymore. Same problem for the events forum (not bbcode).
Please help me (3.7.5)

thincom2000 10-01-2009 03:12 AM

Where in the social group? Please provide a full URL example or a link to the page in question -- different URL structures use different tricks to parse them, so a URL can help us locate the problem more quickly.

Cerbero1000 10-02-2009 08:50 PM

Well, there are no more problems in social groups because I have disabled them. The only problem is with my event forum. If I disable Ces Parser, everything works fine. What's the problem?
Here the mod: https://vborg.vbsupport.ru/showthread.php?t=123416

thincom2000 10-03-2009 04:31 AM

It should work properly for replies in event forums. For the event description, the problem is that the first post is fetched from the event table and added after the rest of the posts. There is no associated $userinfo from the post to draw permissions from.

You can create a plugin for Event Forums by going to Plugins & Products > Plugin Manager > Add New Plugin.

Hook Location: bbcode_permissions_userinfo
Title: Parser Permissions - Event Forums Integration
Execute Order: 5
Code:

if (THIS_SCRIPT == 'showthread' AND !empty($GLOBALS['lv_vb_eventforums_user']))
{
        global $eventinfo, $lv_vb_eventforums_user;

        $post['userid'] = $eventinfo['userid'];
        $post['usergroupid'] = $lv_vb_eventforums_user['usergroupid'];
        $post['username'] = $lv_vb_eventforums_user['username'];
        $post['membergroupids'] = $lv_vb_eventforums_user['membergroupids'];
        $postusername = $lv_vb_eventforums_user['username'];
}

Active: Yes

That should hook parser permissions into the event post.

Cerbero1000 10-03-2009 07:54 PM

Perfect. Marked as installed, rated excellent and nominated MOTM.
The best mod for vbulletin and you are one of the best coder!

grey_goose 12-11-2009 07:01 PM

I must be doing something wrong?

I want to parse code in custom profile fields -- yet when I install this... it still doesn't.

Kosmic1 12-11-2009 08:14 PM

*edited*

thincom2000 05-15-2010 04:40 AM

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

thincom2000 11-08-2010 07:49 PM

Posted the 2.2.3 update, which includes fixes for poll options and 'nonforum' messages.


All times are GMT. The time now is 12:40 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.01746 seconds
  • Memory Usage 1,732KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete