Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
CES Parser Permissions Details »»
CES Parser Permissions
Version: 2.2.5, by thincom2000 thincom2000 is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.x Rating:
Released: 01-07-2010 Last Update: 06-24-2014 Installs: 32
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

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 ***
6/25/2014 - 2.2.5 released
11/8/2010 - 2.2.3 released
5/15/2010 - 2.2.2 released
4/25/2010 - 2.2.1 released
4/9/2010 - 2.2.0 Patch Level 1 released
1/8/2010 - 4.0.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.5
  • compatible with PHP 5.4+
  • compatible with vBulletin 4.1.4+
  • compatible with VaultWiki 4.x

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

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

As of Version 2.2.1
  • edit permissions check disables post cache

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

Download Now

File Type: zip ces_parser_perms_v225.zip (15.2 KB, 98 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
TAIFUN_T

Comments
  #32  
Old 08-15-2016, 03:34 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'];
			}
		}
	}
Reply With Quote
Благодарность от:
grey_goose
  #33  
Old 08-15-2016, 04:19 PM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AHA!

Thank you so much! And again, great mod!
Reply With Quote
  #34  
Old 04-06-2017, 10:43 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #35  
Old 08-29-2018, 03:23 AM
Pocket Aces Pocket Aces is offline
 
Join Date: Mar 2007
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod prevents inline image (attach tag) from showing in posts.
Reply With Quote
  #36  
Old 12-12-2018, 03:58 PM
X-or X-or is offline
 
Join Date: Nov 2005
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

terrible mod, do not use, you've been warned
Reply With Quote
  #37  
Old 12-23-2019, 04:48 PM
brandon515 brandon515 is offline
 
Join Date: Nov 2006
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #38  
Old 12-23-2019, 09:37 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04229 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete