View Full Version : BB Code Enhancements - CES Parser Permissions
thincom2000
04-12-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 - 4.0.x.
*** NEWS ***
11/8/2010 - 2.2.3 released
5/15/2010 - 2.2.2 released
4/12/2009 - 3.8.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 *
Jasem
04-13-2009, 06:49 PM
Nice one man, thank you!
forumsonsuz
04-13-2009, 07:25 PM
thank you!
grey_goose
12-11-2009, 07:19 PM
I still can't put code into custom profile fields... what am i doing wrong?
thincom2000
12-13-2009, 04:31 PM
In vBulletin Options > vBulletin Options > CES Profile Fields, add the profile field IDs to the following:
Parse Which Profile Fields?
Profile Fields Appearing in the Postbits?
If the setting group "CES Profile Fields" does not appear, you may need to enable debug mode until you finish making changes. This is on the list of items to change for the next release when we update for vB4.
grey_goose
12-14-2009, 01:33 AM
aha!
awesome dude this has made it possible for me to do awesome stuff :D
grey_goose
12-14-2009, 04:41 AM
On another note, this seems to have broken the [.post.] tag in the Poll Write-In & Change Vote Hack (https://vborg.vbsupport.ru/showthread.php?t=198535)... any ideas?
thincom2000
12-14-2009, 02:14 PM
I don't know about that, but it seems like there may be a bug where it doesn't parse BB-Code in poll questions or options. I'll add this to the to-do list.
grey_goose
12-14-2009, 02:38 PM
Most excellent! TY!
Alucard^
12-15-2009, 04:27 PM
Well, i installed and seted the "allow html posts" permission to administrators but... i can't use html code.
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
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 (http://www.vaultwiki.org/) or lite (https://vborg.vbsupport.ru/showthread.php?t=239377)) 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:
else
{
($hook = vBulletinHook::fetch_hook('bbcode_permissions_user info')) ? eval($hook) : false;
}
Add before:
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
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
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.
thincom2000
11-08-2010, 07:51 PM
Have not had an issue with user fields replacing post text. Does this occur in all threads or just in threads where poll options are parsed?
Posted the 2.2.3 update, which includes fixes for poll options and 'nonforum' messages.
grey_goose
11-09-2010, 10:50 PM
It must have been a bug with something else, it went away. :D
Again, thanks so much for a great hack. It's given me the flexibility to do some really cool stuff.
fxwoody
10-15-2011, 11:08 AM
Good job thincom :)
I was searching for a way to do this and......you came into my life!!! lollll
Works A1 in 4.1.3
Big thanks bud
Installed and voted
Kavadas
05-23-2013, 07:40 PM
I'm having an issue with this product.
I have vBadvanced's CMPS installed and I run two newsfeeds from two separate forums on the front page.
It appears that while I had this installed any post fed to the newsfeed on the frontpage would have all BBCode automatically unparsed. It would display in the newsfeed unparsed and also the post itself would be completely unparsed and just look like a mess of BBCode.
I installed this product and sure enough this solved the problem.
The website is http://47th.info
Running vB3.8.5 and CMPS 3.2.3.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.