PDA

View Full Version : usergroup permissions on my site


CarpCharacin
01-05-2015, 10:57 PM
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
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
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
Perhaps this mod, https://vborg.vbsupport.ru/showthread.php?t=229035

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

ozzy47
01-06-2015, 12:27 AM
Right, I don't even allow myself to do it on my site, just to many things can go wrong.

Look at this thread, https://vborg.vbsupport.ru/showthread.php?t=316436

The user tried to put adsense code in the forum manager., now if it was not done correctly, and the html was messed up, it would cause that sort of issues.

You could cause the same sort of issues by posting HTML in a post, and screwing it up.