The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Per Usergroup HTML Posting Permission Details »» | |||||||||||||||||||||||||||
Just like the name says, this ultra-simple little Product will allow you to specify Usergroups that may make forum posts in HTML and have that HTML be parsed.
Default vBulletin - You can only choose whether an entire forum has the HTML permission, for all Usergroups. With this modification, you can give the permission to a specific Usergroup. The code in this version is 100% identical to that in the 3.5 version (except for the lack of parseing in the Preview), which worked all the way through 3.6,7 and 8. Blog HTML permissions are, for some reason, actually there in Usergroup Manager, they control HTML in Blog entries and posts, and override the settings in this Product. ***BE AWARE THAT INDISCRIMINATE USE OF THIS PRODUCT 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. Controlled by a Setting in Usergroup Manager, it's phrased and works in editpost.php in WYSIWYG and normal modes, AND the Forum Rules shows HTML is ON to allowed Usergroups. In the current vB 4.0, this WILL apply retroactively. That is, if a User posted something in HTML in the past, before they were given the ability, that post will be parsed. This could prove dangerous/troublesome for anything not wrapped in PHP tags. Many thanks to Andreas 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 those posts are made by an Admin with the setting to Yes, so the HTML is parsed. Known Issues: It is not currently possible to choose whether the HTML in a post is parsed or not - it will be.. unless (weirdly) you wrap it in PHP /PHP tags. I'll look into adding a toggle switch. Download Now
Show Your Support
|
2 благодарности(ей) от: | ||
Razor87, RichieBoy67 |
Comments |
#72
|
|||
|
|||
Hi Kall,
Ive got a quick question and wondered if you may be able to help. Ive installed the mod and posted some HTML, however I get what is shown in the attachment. This was the HTML I tried to post PHP Code:
Also, im using 3.8.5 :erm: |
#73
|
||||
|
||||
From a quick glance, I see a in the very first line. I bet that's getting parsed before the HTML bit does.
Maybe try changing the execution order of the plugin to 1, but that probably wont help. Removing the smiley would, but would screw with your everywhere, probably. Sorry. |
#74
|
|||
|
|||
Ex: Set Allow HTML for AdminGroup, in a post by an admin, a SuperMod or Moderator edit that post follow his style... It's really bad, very dangerous, right?
Could you prevent that? By protect that posts, may add keyword to filter them and restrict any action from other Usergroups or something... Some my opinions |
#75
|
|||
|
|||
thank you
|
#76
|
|||
|
|||
just for admin use this works great.. thx
|
#77
|
|||
|
|||
Quote:
you need to just use Code:
<embed src="file.swf" height="280px" width="336px"></embed> |
#78
|
|||
|
|||
Works great, thank you so much!
|
#79
|
|||
|
|||
Kall,
I have made a modification to allow HTML input from the WYSIWYG editor as well and it works, though I have noticed a bug. Code:
HOOK LOCATION:wysiwyg_parse_start // Was this post made by an allowed Usergroup member? global $vbulletin, $permissions; if ($permissions['allowhtmlpermissions'] & $vbulletin->bf_ugp_allowhtmlpermissions['canposthtml']) //if ($this->registry->userinfo['allowhtmlpermissions'] & $this->registry->bf_ugp_allowhtmlpermissions['canposthtml']) { // This is an allowed post so parse HTML. $allowhtml = '1'; } else { // usergroup HTML disabled so use default forum permission. $allowhtml = '0'; } If I can't get this to work, the owner of this forum wants to go back to allowing HTML from all, which I am highly against. Any help would be great. |
#80
|
|||
|
|||
Quote:
It seems the plug-in that is turned off by default is what I needed, and just alone. I am getting expected results now. Thank you for this mod. It was an excellent starting block and I will be an immediate recommendation and solution to any mods or admins wanting to post HTML. Thank you again. ~Tyson |
#81
|
|||
|
|||
works perfect in v 4.0.5
thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|