Version: 1.00, by kall
Developer Last Online: Aug 2021
Version: 3.5.4
Rating:
Released: 09-25-2005
Last Update: 11-27-2005
Installs: 510
Uses Plugins
Is in Beta Stage
No support by the author.
Just like the name says, this ultra-simple little Product will allow you to specify Usergroups that may post in HTML and have that HTML be parsed...SOME PEOPLE ARE HAVING TABLE PROBLEMS - THIS IS UNSUPPORTED USEAGE OF THE MODIFICATION AND I AM UNABLE TO ASSIST!
***BE AWARE THAT INDISCRIMINATE USE OF THIS HACK IS RISKY - RESTRICT IT TO ONLY THOSE USERGROUPS YOU TRUST ABSOLUTELY***
The scary message above is to make sure you are aware that enabling HTML for any group opens you up to security issues. This is why it is not a feature of Stock vB, probably.
I decided I needed to have the ability to post in HTML because I just installed ZT's RSS Feeds hack, and the ones I got from Google looked all horrible.
Now updated to be controlled by a Setting in Usergroup Manager, it's phrased and even works in editpost.php (preview) in WYSIWYG and normal modes, AND the Forum Rules shows HTML is ON.
This will not work retroactively. That is, if a User posted something in HTML before they were given the ability, that post has to be edited by that member (or someone else with HTML ability) in order to be parsed. I am assuming this is due to post caching.
Many thanks to Kirby for prodding me to figure it out by myself and not just telling me what to do.
A "demo" is here..html is OFF in that Forum, but the post is made by an Admin, so the HTML is parsed.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I seem to have a problem, whiklst my usergroup can view and postHTML content - other usergroups are just shown the raw HTML, its not parsed for the viewers :ermm:
Well that just sucks, doesn't it?
A bit of testing reveals that the post seems to need to be edited before it will parse the HTML.
A bit of testing reveals that the post seems to need to be edited before it will parse the HTML.
I will see what I can do to remedy this.
I noticed that on my forums today and was on my way here to report it. Someone asked me what was up with all the HTML, then I noticed it. :ermm:
Still, a nice mod with the exception of having to edit everything to get the code to display :ninja:
EDIT: Strangely enough, this doesn't always happen. I just made a new post with HTML in it that parsed and displayed correctly the first time without editing it.
I noticed that on my forums today and was on my way here to report it. Someone asked me what was up with all the HTML, then I noticed it. :ermm:
Still, a nice mod with the exception of having to edit everything to get the code to display :ninja:
EDIT: Strangely enough, this doesn't always happen. I just made a new post with HTML in it that parsed and displayed correctly the first time without editing it.
Guys:
Try this for the bbcode_parse plugin (provided by the master Kirby):
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';
}
If you could try that and report back to me that it is all good (works perfectly on NZB as far as I can tell), I will update the .zip when I get home from work.
Sorry, I'm a little thick so can I just confirm a few things since I only want the admin to be allowed to posthtml.
I installed and it seems to work but in the bitfield-allowhtml.xml file should I change install="5,6,7" to install="6" so that its restricted to admins.
Sorry, I'm a little thick so can I just confirm a few things since I only want the admin to be allowed to posthtml.
I installed and it seems to work but in the bitfield-allowhtml.xml file should I change install="5,6,7" to install="6" so that its restricted to admins.
No, you would need to go into the Usergroup manager and set the permissions for the usergroups.
Can you make a specific user be allowed to use html?
If so, how?
EDIT: hey, I have an idea, could I make a secondary usergroup that has it enabled, put the desired user as secondary usergroup for it, but have him display as his primary one?