vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   usergroup permissions on my site (https://vborg.vbsupport.ru/showthread.php?t=316438)

CarpCharacin 01-05-2015 10:57 PM

usergroup permissions on my site
 
I am getting kind of frustrated because i want to turn HTML parsing on in posts from admins only. Is there a way to do that?

ForceHSS 01-05-2015 11:02 PM

Do you mean for admin group only?

CarpCharacin 01-05-2015 11:04 PM

Quote:

Originally Posted by ForceHSS (Post 2530670)
Do you mean for admin group only?

yes. I want to allow admins to post html, but no one else.

ForceHSS 01-05-2015 11:48 PM

If you turn on html allowed in a section from what I remember it opens that section up to all groups to use html I might be wrong and cant checked this now to confirm it so you might need it coded. Maybe someone else can confirm this. Maybe a plugin has been made already try a search see what comes up
not sure if this will work for your version
Try this for the bbcode_parse plugin
PHP Code:

global $post
$perms =& $post['permissions']; 
if (!
$perms

    
$perms fetch_permissions(0$post['userid'], $post);  

// Was this post made by an allowed Usergroup member? 
if ($perms['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml']) 

    
// This is an allowed post so parse HTML. 
    
$dohtml '1'



ozzy47 01-06-2015 12:03 AM

Perhaps this mod, https://vborg.vbsupport.ru/showthread.php?t=229035

ForceHSS 01-06-2015 12:06 AM

Does that one not have some bugs

ozzy47 01-06-2015 12:11 AM

I dunno, I don't use it, as I don't allow any posting of HTML, it is to big of a security risk.

CarpCharacin 01-06-2015 12:11 AM

Quote:

Originally Posted by ozzy47 (Post 2530676)

does it work on 4.2.2?

ozzy47 01-06-2015 12:12 AM

It has a couple of bugs.

ForceHSS 01-06-2015 12:24 AM

You would be best to not install any plugins that allow html to be used or allow any groups to use html on your site even if they are admins and you trust them its not just because of the security problems with html but if someone makes a mistake in the code of html when making a post it can cause big problems for your site


All times are GMT. The time now is 09:21 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.01610 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete