PDA

View Full Version : BB Code Enhancements - CES Parser Permissions


thincom2000
04-11-2009, 10:00 PM
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: 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
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 (http://www.vaultwiki.org/) or lite (https://vborg.vbsupport.ru/showthread.php?t=239377)) 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.