View Full Version : New Posting Features - Per Usergroup HTML Posting Permission
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. :D
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 (http://www.nzboards.com/showthread.php?t=89305&p=112214#post112214)..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.
Asterix_ita
11-28-2009, 05:27 AM
When importing the XML file I have the following error
Errore XML: not well-formed (invalid token) alla linea 0
thanks
Hi there.. which xml file are you trying to import, and how?
I just this second installed it on a fresh vB4.0 Beta4 install and it worked fine.
Asterix_ita
11-28-2009, 05:43 AM
The file is product-nzbgroupallowhtm entered into plugins and product and then I selected add and import
sorry for my english
cellarius
11-28-2009, 05:48 AM
Installs fine for me.
I can confirm that the mod now indeed works retroactively, and additionally would like to point out that I have no permission to view the demo site since that seems to be for logged in users only.
Try downloading it again, it might have become corrupted.
Installs fine for me.
I can confirm that the mod now indeed works retroactively, and additionally would like to point out that I have no permission to view the demo site since that seems to be for logged in users only.
Thanks for the confirmation.. I'll have to add a warning to that effect.
(and also for pointing out my permissions booboo). ;)
Asterix_ita
11-28-2009, 05:58 AM
Sorry maybe it's my problem, it seems this morning, no plugin is loaded try to redo the upgrade of my board, 'll know as soon
Thanks
abdobasha2004
11-28-2009, 08:54 AM
thanks alot
reserved
Silencer Groans
11-28-2009, 09:00 AM
Very nice .. Thank you
If you agree to make it in Arabic
That you do not agree I will remove it from attachments
SİMAR
11-29-2009, 09:25 PM
thanks you
thanks alot
reserved
You're welcome.
What are you reserving?
Asterix_ita
11-30-2009, 08:00 AM
Now it's ok, it was my problem. Thanks
Dr.osamA
11-30-2009, 10:43 PM
thanxxx man
and thanxx Silencer Groans for translition
________
PARENTING ISSUES FORUMS (http://www.health-forums.org/parenting-issues/)
Skyrider
12-09-2009, 12:32 PM
Just curious.. What if HTML has been disabled within the forum section? Will this plugin overwrite it and post the HTML anyway?
Greight
12-09-2009, 03:11 PM
The html code is shown on the CMS in Recent Forum Posts widget. How can be this fixed?
*edit* Sorry, misread the question.
Umm. I'll have to look into it. Maybe changing the priority of the existing plugins would work.
Otherwise a new plugin is likely going to have to be used.
david01130
12-18-2009, 12:48 AM
I installed this and it seems to be working when I use html in posts but not in thread titles. Is it suppose to do that or am I doing something wrong?
It's not supposed to affect thread titles, no.
yotsume
12-26-2009, 04:26 PM
I am designing a mod that allows admins to post a Youtube video on top of a custom image such as an iPhone. Your mod is a prerequisite for what I am designing. :)
Here is a live sample of what I have designed: iPhone Youtube Player (http://www.maczuki.com/showthread.php?t=282)
My code will work in any html based website as well as in any vBulletin post so long as your mod is installed.
So a big thank you for this wonderful mod!
Merjawy
12-26-2009, 08:27 PM
Thanks ,, Taged for later try
this should by a default on vb4 :(
anyway good job kall
rajubd
12-30-2009, 03:44 PM
when try to enable it error
Database error in vBulletin 4.0.0:
Invalid SQL:
UPDATE vbusergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<span style=\"font-weight: bold;\" style=\"color:green;\">',
`closetag` = '</span>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`ms_megaupload_upload_permissions` = '0',
`ms_photobucket_upload_permissions` = '0',
`allowhtmlpermissions` = '1',
`ms_force_style_permissions` = '0',
`force_style_id` = '',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`pmquota` = '100',
`pmpermissions` = '7',
`pmsendmax` = '0',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '55',
`profilepicmaxwidth` = '120',
`profilepicmaxheight` = '120',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '160',
`avatarmaxheight` = '100',
`avatarmaxsize` = '200000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '262143',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`ms_imageshack_upload_permissions` = '0'
WHERE usergroupid=6;
MySQL Error : Unknown column 'ms_megaupload_upload_permissions' in 'field list'
Error Number : 1054
Request Date : Wednesday, December 30th 2009 @ 07:40:44 PM
Error Date : Wednesday, December 30th 2009 @ 07:40:45 PM
Script : http://www.symbiantalk.net/admincp/usergroup.php?do=update
Referrer : http://www.symbiantalk.net/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : 119.30.36.20
Username : Raju
Classname : vB_Database
MySQL Version : 4.1.20
That would appear to be due to another mod that you have not totally uninstalled.
badawidollah
12-31-2009, 01:26 AM
why must html??
is it better for SEO?
why must html??
is it better for SEO?
Because, it is a feature not in standard vB.
No. Not everything is about SEO. This modification has as much bearing on SEO as whether or not you ate icecream last night.
InTeNsE-HuMoR
01-01-2010, 12:12 PM
On your demo page, a member tried to post HTML but it didn't work (#4). However, when the member quoted that post in post #5, the HTML appears to be working. Is that supposed to happen?
Also, does anyone know if you can post HTML in the CMS when creating articles?
cellarius
01-01-2010, 01:29 PM
Also, does anyone know if you can post HTML in the CMS when creating articles?
This is standard functionality controlled by the permission system in the CMS.
On your demo page, a member tried to post HTML but it didn't work (#4). However, when the member quoted that post in post #5, the HTML appears to be working. Is that supposed to happen?
Also, does anyone know if you can post HTML in the CMS when creating articles?
Oooh. I certainly hope not. Quoting should not make it parse.
I think what happened there is that I edited that second post. That will make it parse.
Skyrider
01-05-2010, 04:58 PM
I found a bug.. This plugin is messing with the BBCodes.. Here's an example:
Someone posted this in green:
why does he have blue wristbands and a red belt?????
Putting that in to quote, code, etc will result in:
why does he have blue wristbands and a red belt?????
See the \? The plugin is causing to add a \ at every ". Can this be solved please?
Sador
01-07-2010, 11:02 AM
Hmm, interesting. Thanks. :)
Hmm, interesting. Thanks. :)
You're welcome, but you might want to actually download and install it before you thank me. :)
I found a bug.. This plugin is messing with the BBCodes.. Here's an example:
Someone posted this in green:
why does he have blue wristbands and a red belt?????
Putting that in to quote, code, etc will result in:
why does he have blue wristbands and a red belt?????
See the \? The plugin is causing to add a \ at every ". Can this be solved please?
I can't replicate this.. see: http://www.nzboards.com/testing-zone/my-html-test-89305/#post112567
Can you describe, step-by-step, how this occurs?
thanxxx man
and thanxx Silencer Groans for translition
Do you just post 'thanxxx man' in all modification threads to spam your signature or something?
Just wondering, because I see it EVERYWHERE, and notice you haven't clicked Install.
AZRainman
01-24-2010, 09:06 AM
Two problems I noticed:
1. Post preview mode doesn't parse the html
3. When editing the message, all the previous html code is removed.
Thanks for the mod :)
ICannt.org
01-24-2010, 09:31 AM
Quick question, what would happen if a user (who didn't have permission to use HTML) quoted a post made by someone with permission that contained HTML?
Greight
01-26-2010, 05:49 AM
Recently, I have noticed that the only person who can see the html parsed in my posts is me !
Any idea ?
velma33
02-13-2010, 05:15 AM
I've downloaded and installed this, and I'm just not clear on how to activate it. I'm wanting to allow Admins only to post with html. When I look at the usergroup, I don't see anything about using html in posts.
I did turn on html for blog posts and signatures, but that is, of course, not what I'm wanting.
Am I missing something?
Velma
Recently, I have noticed that the only person who can see the html parsed in my posts is me !
Any idea ?
Can you please provide a link to a post that should show as parsed, but does not, unless it's you?
I've downloaded and installed this, and I'm just not clear on how to activate it. I'm wanting to allow Admins only to post with html. When I look at the usergroup, I don't see anything about using html in posts.
I did turn on html for blog posts and signatures, but that is, of course, not what I'm wanting.
Am I missing something?
Velma
Hi Velma,
You need to go into Usergroup Manager and edit the Usergroup you wish to have HTML permissions.
They will have HTML parsed in all forums.
(Please click Mark as Installed, it tends to make the coders more willing to assist.) :)
velma33
02-13-2010, 02:48 PM
Thanks. Marked as installed.
I went to Usergroups==>Usergroup Manager.
Selected to edit the Administrator Usergroup.
Went through all the different permission sections. (Expected to see it in Post/Thread Permissions.)
Didn't see "HTML Permissions in anything except for blogs and signatures.
It feels like I missed a step.
I uploaded product-nzbgroupallowhtm using Plugins & Products System==>Manage Products==>Add Import Product.
Thanks for your help.
Did you make sure to upload the bitfield xml file? That is what puts the permission in Usergroup Manager.
(You are looking for "Allow HTML Permissions" and "Should this usergroups HTML posts be parsed?") :)
velma33
02-13-2010, 05:11 PM
Ha ha! Got it. :) That's exactly what I was missing. I didn't fully understand the installation instructions, but honestly, I wouldn't know how else to explain what needed to be done anyway. Glad I had this place to ask questions.
Velma
Yay! Glad you got it. :)
I did notice your join date and post count, so guessed you might not be as familiar with the 'workings' of vB as a veteran.
This way, you learned what the difference is between a product .xml and a bitfield.xml. :)
isman
02-14-2010, 08:43 PM
I just cannot get this thing to install. Every time I get "Invalid file specified".
Any suggestions? I have to have this.
Are you trying to import the bitfield in Product Manager?
Try the Product file.
isman
02-14-2010, 10:26 PM
I am. I'm trying to import bitfield_allowhtml.xml in the product manager. I've tried the system path, relative path, I even tried loading from my local hard drive.
isman
02-14-2010, 11:03 PM
Doh, I got it. I was importing the wrong xml file. I was not importing the product-nzbgroupallowhtml.xml.
Thanks for the pointer.
:)
bitfield - permissions added to Usergroup Manager
product - thing imported in Product Manager
ICannt.org
02-17-2010, 08:21 AM
Quick question, what would happen if a user (who didn't have permission to use HTML) quoted a post made by someone with permission that contained HTML?
Can the dev please clarify this for me, I don't want to install this mod until this is clarified.
zeroality
03-10-2010, 05:00 PM
Can the dev please clarify this for me, I don't want to install this mod until this is clarified.
Just tested - it does not parse html if you quote and aren't in the html-enabled usergroup. You also cannot edit HTML into someone else's post, it has to be originally posted by an html-enabled user.
Great mod, thanks.
Can the dev please clarify this for me, I don't want to install this mod until this is clarified.
Sorry, missed that. Clarified it back on page 2 though. :)
Thanks zeroality. :)
Has the cache problem been fixed?
karlm
04-05-2010, 09:49 AM
Excellent - thank you
steveheinsch
04-07-2010, 04:21 PM
I tried putting up a paypal button (a form). The button shows up but when you click on it I get a vb error message:
You did not select any posts to which the action you picked can be applied.
Any way to get this hack to work with paypal code?
Thanks!
Edit: Don't think it matters, but Im using vb3.8.
fogjuice
04-23-2010, 07:48 AM
This doesn't work with vb 4.0.3
Halfhidden
05-03-2010, 04:55 PM
Would this work with welcome pm's
I suppose it is possible, if they are considered to be posts.. not sure though.
Halfhidden
05-03-2010, 05:12 PM
It's just that I fancy your welcome pm on VBSEO... wow that's very nice.
Better that the horrid welcome pm in VB
This doesn't work with vb 4.0.3
Yes, it does: http://www.nzfishtalk.com/f9/welcome-to-nz-fish-talk-1/#post17
BadgerDog
05-03-2010, 10:02 PM
Installed on v4.03 ....
Very nice... thank you ... :up:
We needed this for our forums ... :)
Regards,
Badger
biosclan
05-10-2010, 10:02 PM
Thanks this worked like a champ!
Halfhidden
05-24-2010, 09:07 PM
Perhaps I'm missing something. I uploaded the xml and then imported the product. I then set allow html for pm's in VB general setting (presuming that everybody would be blocked from using html with this new product) Then went to the the Usergroup manager and set Allow HTML Permissions "Should this usergroups HTML posts be parsed?" to yes for my group only.
Now I was able to send html pm's but so were the rest of the users. If I disable the html settings in private message nobody can send html messages regardless of the settings set for this plugin including my group.
Perhaps I'm missing something.
Posts != PMs.
Halfhidden
05-25-2010, 06:03 AM
Posts != PMs.
Sorry Kall you lost me. Are you saying that pm's don't work only posts do?
cellarius
05-25-2010, 08:18 AM
Sorry Kall you lost me. Are you saying that pm's don't work only posts do?
From the mod description:
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
Red color added by me.
Halfhidden
05-25-2010, 08:34 AM
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.
Thanks cellarius..... that answers the question I asked Kall in post 57
Mr Morningstarr
06-08-2010, 07:04 PM
when try to enable it error
Database error in vBulletin 4.0.0:
Invalid SQL:
UPDATE vbusergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '<span style=\"font-weight: bold;\" style=\"color:green;\">',
`closetag` = '</span>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`ms_megaupload_upload_permissions` = '0',
`ms_photobucket_upload_permissions` = '0',
`allowhtmlpermissions` = '1',
`ms_force_style_permissions` = '0',
`force_style_id` = '',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`pmquota` = '100',
`pmpermissions` = '7',
`pmsendmax` = '0',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '55',
`profilepicmaxwidth` = '120',
`profilepicmaxheight` = '120',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '160',
`avatarmaxheight` = '100',
`avatarmaxsize` = '200000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '262143',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`ms_imageshack_upload_permissions` = '0'
WHERE usergroupid=6;
MySQL Error : Unknown column 'ms_megaupload_upload_permissions' in 'field list'
Error Number : 1054
Request Date : Wednesday, December 30th 2009 @ 07:40:44 PM
Error Date : Wednesday, December 30th 2009 @ 07:40:45 PM
Script : http://www.symbiantalk.net/admincp/usergroup.php?do=update
Referrer : http://www.symbiantalk.net/admincp/usergroup.php?do=edit&usergroupid=6
IP Address : 119.30.36.20
Username : Raju
Classname : vB_Database
MySQL Version : 4.1.20
I'm getting exactly the same error when I try to use this plug in, any idea how to solve this?
Mr Morningstarr
06-08-2010, 07:19 PM
OK, I read what Kall said and checked the xml folder and ther was an xml file for a product I wasn't using anymore still in there, one for restricting urls. I deleted that, re-uploaded the xml file and imported the product and it works fine now.
Cheers Kall, great mod, I couldn't be without it. ;)
Thanks cellarius..... that answers the question I asked Kall in post 57
Sorry I missed the followup question. That answer cel quoted - its the very first thing in this thread, at the very top of the modification.
Pleas forgive me for feeling that I had already made the fact abundantly clear, by posting it as the first sentence of the mod.
powerful_rogue
06-11-2010, 09:15 PM
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
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" WIDTH="336px" HEIGHT="280px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" quality="high" bgcolor="#ffffff" name="Player_99c32d91-e170-4d50-a216-a0756991f6c2" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="280px" width="336px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT>
Just wondered if you had any ideas at all.
Also, im using 3.8.5 :erm:
From a quick glance, I see a :D 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 :D smiley would, but would screw with your :D everywhere, probably. Sorry. :(
share4vn.com
06-12-2010, 02:15 PM
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
a7lameza.com
06-20-2010, 07:48 PM
thank you
AURFSCAN
06-21-2010, 06:42 AM
just for admin use this works great.. thx
AURFSCAN
06-21-2010, 06:56 AM
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
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" WIDTH="336px" HEIGHT="280px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=GetDisplayTemplate" id="Player_99c32d91-e170-4d50-a216-a0756991f6c2" quality="high" bgcolor="#ffffff" name="Player_99c32d91-e170-4d50-a216-a0756991f6c2" allowscriptaccess="always" type="application/x-shockwave-flash" align="middle" height="280px" width="336px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fthefrefin-21%2F8014%2F99c32d91-e170-4d50-a216-a0756991f6c2&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT>
Just wondered if you had any ideas at all.
Also, im using 3.8.5 :erm:
you need to just use <embed src="file.swf" height="280px" width="336px"></embed>
not all that code you've posted
Rebecca217
07-15-2010, 06:29 PM
Works great, thank you so much! :)
tyvgreen
07-22-2010, 01:38 AM
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.
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';
}
When a post is placed and one without rights to parse HTML is the first to view it directly (as in refresh the page and not just AJAXed in after editing), it places the code as typed, not parsed. Same the other way around. If one not allowed to post HTML posts HTML and an Admin is the first to view it, it is parsed. Is this a bug from the code I placed in there or a 'caching issue' from the previous posts (I couldn't follow the exact issue)?
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.
tyvgreen
07-25-2010, 08:40 AM
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.
When a post is placed and one without rights to parse HTML is the first to view it directly (as in refresh the page and not just AJAXed in after editing), it places the code as typed, not parsed. Same the other way around. If one not allowed to post HTML posts HTML and an Admin is the first to view it, it is parsed. Is this a bug from the code I placed in there or a 'caching issue' from the previous posts (I couldn't follow the exact issue)?
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.
Kall,
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
Terrona
07-28-2010, 11:53 AM
works perfect in v 4.0.5
thanks
Kuscheltod
08-08-2010, 09:18 PM
Hey,
I would like to know if there is a way to make a table without border
tried
<table border=\\"0\\"><tr><td>TEST1</td><td>TEST2</td></tr></table>
and without \\ doesn't bring me the results I'm looking for.
Thanks in advance!
jacobomoya
09-13-2010, 07:59 AM
Does it work on 4.0.6 PL1? I've just installed it and doesn't seem to be doing anything. After installation you just have to change the option on the usergroup settings pages, right?
EDIT: Nevermind, it seems the forums must be set to not allow HTML in order to function properly. Thanks a lot for the mod.
jacobsen1
09-15-2010, 08:11 PM
thanks!
bandare
10-20-2010, 07:43 PM
is this not working any more? It used to be a great feature in 3.x
It should be fine in 4.0.8 and later, something's broken it.
ArchAngelz
11-05-2010, 03:32 AM
I'm sorry if I don't understand this completely; are you saying that it works in 4.08 or that it is broken in 4.08?
It should be fine in 4.0.8 and later, something's broken it.
treysoucie
11-11-2010, 02:05 PM
So do we need to default all the forums to "not allow html" and this mod will allow the specified usergroups to post html? Does this allow all usergroups that cannot post html to be able to view html properly if it was posted by a usergroup that has permission?
Phrost
11-29-2010, 07:57 PM
Not working for me 4.0.8 PL2.
Somesite
12-04-2010, 01:50 PM
Seems like when I try and post a table, I get like 900 breaks before the table itself within the post.
Seems like when I try and post a table, I get like 900 breaks before the table itself within the post.
Yep!
I'm assuming you are using returns in your table code. These get converted to <br /> by vB.
The correct way to do it is to put the entire table code into one line.
Lautaro
12-16-2010, 09:56 PM
it wont parse html if you try to "preview" the post / thread.
if you could get tha to work it would be awesome.
thanks.
TrigZu
12-18-2010, 12:46 PM
I would use this, but I'm afraid of this line:
"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."
I would like to see a version where only html inside tags like works.
ArchAngelz
01-07-2011, 07:14 AM
I have installed this and was having trouble editing already posted HTML posts.
I note that the first post says:
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.
However, I realised that when I'm editing in WYSIWYG mode (which is the default interface in my forums for all users), I cannot edit the html code. Saving the edit will result in all HTML code being stripped/destroyed.
Changing my default interface in admin cp to the normal editor toolbar "Show Standard Editor Toolbar" and HTML editing works, even if I should switch to the WYSIWYG interface by clicking on the "Switch Editor Mode" button at the top right.
This is rather strange behaviour; anyone else also experiences it?
I am on v4.03
Raeven
02-18-2011, 10:20 AM
works under 4.1.1 for me :)
MortysTW
02-25-2011, 04:23 PM
That is the simplest, clearest mod I've ever installed. And permissions like this scare the hell out of me, but by default everyone is set to NO and the option to turn on is clear as day. You're an idiot if you turn permissions on by accident.
Thank you for such a crisp and clean Mod. I love it! It's exactly what I needed to get my Picasa image RSS feeds loading into my site as cell phone pics submitted by users.
Thank you thank you!
mmacrypt
03-31-2011, 05:31 PM
nice job and completely painless, thank you for this mod.
fishinstud
04-01-2011, 08:07 PM
Installed on 4.1.2, thank you
Krishan
05-16-2011, 08:51 AM
I installed this plugin..but in usergroup manager..i cant find Should this usergroups HTML posts be parsed?
Any help?
midnz
05-16-2011, 09:21 AM
I installed this plugin..but in usergroup manager..i cant find Should this usergroups HTML posts be parsed?
Any help?
It looks like this:
https://vborg.vbsupport.ru/
Have you tried searching for "Allow HTML Permissions" while viewing the Usergroup Permissions page?
Krishan
05-16-2011, 10:32 AM
It looks like this:
http://img535.imageshack.us/img535/412/htmlpermissions.jpg
Have you tried searching for "Allow HTML Permissions" while viewing the Usergroup Permissions page?
Dear sir,
Yes, I've searched for that. It is still not showing in the "Edit usergroup permissions". I uploaded XML file in root, then I uploaded the provided plugin in admin panel.
Any help?
CaptCom
05-23-2011, 05:57 PM
Nice code, thank you!!
MortysTW
06-05-2011, 06:27 PM
This may sound dumb but has worked on many mods for me.
Go to your plugin/ products and disable the first mod. Doesn't matter what it is. Let page do its thing then turn it back on.
When you alter mods like that its rebuilds the admincp in vbulletin. Basically "fixing" it.
Then go back and look for your html control in usergroup permissions.
colwal
06-15-2011, 01:55 PM
FTP issue at moment but when fixed will install and thanks.
Webbstre
06-17-2011, 08:40 AM
Hopefully the mod author still follows this one, but lately I have run into a lot of video embed scripts that don't work properly. Here is an example:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH=640 HEIGHT=391 id="videoPlayer"><PARAM NAME=movie VALUE="http://image.com.com/gamespot/images/cne_flash/production/eidothea/release/eidothea.swf?ver=008_11"><PARAM NAME=scale VALUE="noScale"><PARAM NAME=salign VALUE="lt"><PARAM NAME=quality VALUE=high><PARAM NAME=allowscriptaccess VALUE="always"><PARAM NAME=allowFullScreen VALUE="true"><PARAM NAME=flashvars VALUE="bwr=0&playerMode=embedded&movieAspect=16.9&mapp=embedded_640&gen=1&viewMode=sd&autoPlay=false¶msXML=http%3A%2F%2Fwww.gamespot.com%2Fpages%2F video_player%2Fxml.php%3Fid%3D6319192%26mode%3Demb edded%26width%3D640%26height%3D391%26newplayer%3D1 %26skin%3DeidotheaEmbedded640_169.xml"><PARAM NAME=wmode VALUE="opaque"><embed id="mymovie" width="640" height="391" flashvars="bwr=0&playerMode=embedded&movieAspect=16.9&mapp=embedded_640&gen=1&viewMode=sd&autoPlay=false¶msXML=http%3A%2F%2Fwww.gamespot.com%2Fpages%2F video_player%2Fxml.php%3Fid%3D6319192%26mode%3Demb edded%26width%3D640%26height%3D391%26newplayer%3D1 %26skin%3DeidotheaEmbedded640_169.xml" wmode="opaque" allowscriptaccess="always" scale="noScale" salign="lt" allowFullScreen="true" quality="high" name="mymovie" style="" src="http://image.com.com/gamespot/images/cne_flash/production/eidothea/release/eidothea.swf?ver=008_11" type="application/x-shockwave-flash"/></embed></OBJECT>
It usually breaks on the first part, around classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000". Sometimes removing it and/or other parts of the code helps, but this particular one just got stuck on a permanent loading screen when I did it. Any chance for a small update to make this easier?
cellarius
06-17-2011, 11:13 AM
Your own post here may give you a hint - does it help if you disable smilie parsing for the relevant post?
Webbstre
06-17-2011, 12:18 PM
Actually, I did try that, and it still didn't work. :(
ewebdesigner
08-12-2011, 09:44 PM
I have a question.
When I post in HTML why cannot I put up a buy now image and it be clickable to a paypal link to make a payment?
Just curious as I allow my members to post their internet marketing products for sale on one particular forum which is modded before it is live so I can check the HTML to make sure everything is OK!
I want them to be able to post their thread just like a squeeze page but in a post. Not the graphics or anything just an HTML buy now page and images not as a pop up.
Any suggestions?
listisimo.es
09-07-2011, 10:19 AM
First of all let me say this is a really useful mod so thank you very much.
However, we have encountered a bit of a problem.
In our case, this mod only works with Firefox, but not with Chrome or IE.
For example, check out this thread using different browsers (Firefox, Chrome and IE):
http://www.listisimo.es/temas/11354-codigo-descuento-15-en-altavoces-logitech
See what I mean?
Anyone else had this problem? Is there a fix so it works with all browsers?
Thanks
listisimo.es
10-19-2011, 10:18 AM
Solved the problem I mentioned above. Nothing to do with this mod :)
Videx
10-20-2011, 10:38 AM
Solved the problem I mentioned above. Nothing to do with this mod :)You should really let everyone know what the problem was and how you fixed it, for the benefit of future searchers.
Anyway, I've just installed it in 4.1.7 and I too can't get the preview to work. Can anyone? Is there a trick to it? If not, the line in the first post about preview working should be edited.
Also, correct me if I'm wrong, but does the code in a post all have to be on the same line? If so, that should be mentioned in the first post.
delta1001
11-15-2011, 10:24 AM
Brilliant idea - just what I'm looking for, alas, I doesn't work with 4.1.7 :o
- is it my mistake?
- will it be updated?
Thanks!
I too can't get the preview to work. Can anyone? Is there a trick to it? If not, the line in the first post about preview working should be edited.
Good point, edited.
As for 'does it all have to be on one line'? No. No it does not.
delta1001
11-16-2011, 10:33 AM
Now I hear, it is supposed to work with 4.1.7 - which I cannot confirm. On my site it doesn't do anything. I can edit html when it is turned on on a forum base which enables all users to use it. If it (html) is turned off, the addon doesn't allow the use for selected usergroups.
What am I missing?
Videx
11-16-2011, 01:15 PM
What am I missing?Hard to say. It sounds like you've turned on html for everyone, in which case you don't need this mod.
But understand this is generally considered a Really Bad Idea, because if everyone can post html then anyone can totally screw your forum easily, if only by accident e.g. forgetting a closing tag.
delta1001
11-17-2011, 09:00 AM
Well, that is presently my workaround - as I need to use html so here's what I do:
- I create a subforum with html ON
- I resrict write rights to myself
- reading rights for the rest
When I turn html off, the plugin doesn't do a thing - even though I have turned on html for the usergroup admin - it doesn't work. I'm quite aware of the risks of allowing html to everybody.
So where do I look for the mistake? I've installed it properly - checked twice - help much appreciated :D
Thanks :up:
Videx
11-17-2011, 01:15 PM
You may be having the same problems I did when I was testing this last month. First it took me some time to figure out the preview wasn't working, so I actually had to post my test messages. Then there seemed to be some kind of problem with large blocks of code - specifically the product codes I was getting from Amazon. As I recall a simple one line html test worked fine. But as you can see above the author answered me and says a large code block should work, but I never got it to and haven't gotten back to it yet.
delta1001
11-17-2011, 01:42 PM
Yes, sir :)
You're right - the preview isn't working! Just tested it: the preview gives me the "literal" text, whereas after publishing the post/thread html is parsed.
BUT: now vB inserts an extra crlf and doubles the empty lines - something I can turn off when html is allowed for the forum.
So - how do I turn that off using this addon?
This is really necessary if you want to insert a properly styled page using html and css which is what I'm looking for.
Anyone - including the developer - having a brilliant idea?
Thank you very much :D
downloadfound
12-23-2011, 12:37 AM
This script works great, even in 4.1.9, but I need something way more complex. Let's say I want permission only for certain HTML markup, would that be possible? I'm running a video script that automatically embeds HTML markup into new threads when someone uploads a video.
I only want to give permission to parse certain code, I doubt that's possible.
Or better yet, don't allow HTML code to be parsed that accesses an outside domain? If anyone can do it, I'll pay.
downloadfound
01-02-2012, 06:02 PM
Nevermind.
dog-tag
01-05-2012, 12:59 PM
I'm using this on vbulletin 4.1.9 and it works 100%
I'm so happy you, you don't know how much I appreciate this mod, it's a life saver for me :)
Marked as installed and nominated for mod of the month...
I've fully tested it and it's excellent... for the noobs like me to vbulletin, here's a simpler install explanation (no offence OP but I found your directions difficult to understand)
1.) download and extract all files
2.) upload the bitfield_allowhtml.xml (Open up the includes folder, then open the xml folder and you will see - bitfield_allowhtml.xml
3.) Now put this file into somewhere like /public_html/forum/includes/xml
(your file path may differ but basically put this file using FTP into the xml folder of your forum)
4.) Admin CP -> Plugins & Products-> Manage Products -> [Add/Import Product]
Now see "EITHER upload the XML file from your computer"
Click the button and upload the last file called "product-nzbgroupallowhtm"
Click import and your done. There is basically only 2 files to this entire install.
If anyone finds my directions too hard to understand then vbulletin isn't for you and I suggest outsourcing work like this. This is as easy as it gets!
acast
01-11-2012, 03:33 PM
I installed in 4.1.9 and it works fine on new posts, but in the old ones, it doesnt parse the html until we edit thems. does i have to do anything to parse html in all old threads?
Thanks for the work.
Suzie
02-05-2012, 02:23 AM
Does anyone have this working in 4.1.10? I have it installed and enabled for my usergroup but I am unable to embed video using HTML.
Webbstre
02-05-2012, 03:07 AM
Honestly, this thing has always had problems embedding video. It's not the fault of this modification though, it seems to have to do with the video embed code from many places trying to call on css classes and javascript from outside the site. I suspect there are conflicts in the naming as well.
thenashy
03-17-2012, 12:58 AM
Will it do divs? I'm trying to do:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div id="surveyMonkeyInfo"><div><script src="http://www.surveymonkey.com/jsEmbed.aspx?sm=REMOVED"> </script></div>Create your <a href="http://www.surveymonkey.com/">free online surveys</a> with SurveyMonkey, the world's leading questionnaire tool.</div>
</body>
</html>
And it does nothing.
thenashy
03-17-2012, 12:58 AM
Obviously I've tried with just the div tags too.
ThisIrksMe
04-14-2012, 08:49 PM
How do I remove the linebreaks so that there isn't gaps in the code.
--NVM, I figured it out---
links4rank
04-30-2012, 04:18 PM
I use with v4.1.12 and it works. But I cannot remove linebreaks so the post looks very ugly.
How to remove the line break ?
Thanks in advance!
links4rank
04-30-2012, 05:18 PM
How do I remove the linebreaks so that there isn't gaps in the code.
--NVM, I figured it out---
How to fix it ? Can you tell me ?
Thanksin advance!
JetLee
06-29-2012, 01:22 AM
Using this in 4.2.0-PL2 successfully.
Thanks!
Naijasite
08-10-2012, 03:21 PM
I just installed on 4.2.0 and i have also enable it for Admin user group.
Do i need to enable it here too Admin CP -> Forums & Moderators -> Forum Manager -> Edit Forum -> Allow HTML -> No
Feedback please
JetLee
09-03-2012, 08:45 PM
Naija: No, you don't enable it in the Forum Manager.
For each User Group that you want to have HTML abilities, scroll to the bottom of the UserGroup Manager and set that to Yes. Leave the Forum set to No.
My question is:
How do I enable HTML for Admin/Mod for Private Messaging without enabling it for regular users as well?
Gn_Snake
09-27-2012, 07:22 AM
Only one thing I can not do.
I can not edit a thread of another member of staff and insert the html code, that is, it is but i can not process the code.
AFemaleProdigy
10-02-2012, 11:59 PM
I installed this with 4.0.8 and am having trouble with it. I try to add this to the post:
<a href="http://www.amazon.com/gp/product/0759285837?ie=UTF8&tag=sexdrivedaily-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0759285837" target="_blank"><img border="0" src="http://www.sexdrivedaily.com/amazon/images/sexsphere.jpg" style="float:left; margin-right:10px"></a><img src="http://www.assoc-amazon.com/e/ir?t=sexdrivedaily-20&l=as2&o=1&a=0759285837" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
.And it turns it into this (when I look at the page source code):
<a href="http://www.amazon.com/gp/product/0759285837?ie=UTF8&tag=sexdrivedaily-20&linkCode=as2&camp=1789&creative=9325&creativeAS IN=0759285837" target="_blank"><img border="0" src="http://www.sexdrivedaily.com/amazon/images/sexsphere.jpg" style="float:left; margin-right:10px"></a><img src="http://www.assoc-amazon.com/e/ir?t=sexdrivedaily-20&l=as2&o=1&a=0759285837" width="1" height="1" border="0" alt="" style="border:none !important;" />
Videx
10-03-2012, 12:34 AM
Sexsphere? I probably don't want to know. But welcome to the club. It was Amazon links I mostly wanted to embed and I never got it working.
But later I discovered there is a working mod that at least automatically adds your Amazon associate ID to links. Dynamic Amazon Links (https://vborg.vbsupport.ru/showthread.php?t=163393)
AFemaleProdigy
10-03-2012, 11:35 PM
Sexsphere? I probably don't want to know. But welcome to the club. It was Amazon links I mostly wanted to embed and I never got it working.
But later I discovered there is a working mod that at least automatically adds your Amazon associate ID to links. Dynamic Amazon Links (https://vborg.vbsupport.ru/showthread.php?t=163393)
Lol! It's a science fiction book. ;) I need to be able to post a lot of different kinds of html, not just Amazon. But thanks.
tpearl5
01-18-2013, 01:20 PM
I'm having a strange issue where a lot of breaks are inserted into the post before the html starts. Anyone seeing similar behavior?
vimarc
02-17-2013, 08:20 AM
installed but don't know how to use in threads. which bb code i need to use for html codes like banners etc
vimarc
02-17-2013, 08:29 AM
<a target="_blank" href="http://affiliate.godaddy.com/redirect/332D707143B58ABDAFE499E48F7B9D0C1F293F37485AE9F898 39BE4C3FDA829E846DD3FE4B49B16C94A6429B6E250B3765FF 3F595282FDCE43644B87B4A1ED22"><img src="http://affiliate.godaddy.com/ads/332D707143B58ABDAFE499E48F7B9D0C1F293F37485AE9F898 39BE4C3FDA829E846DD3FE4B49B16C94A6429B6E250B3765FF 3F595282FDCE43644B87B4A1ED22" border="0" width="468" height="60" alt="40% off your First Order with GoDaddy.com!"/></a>
U-Fig
04-29-2013, 09:52 PM
just confirming this works great on a near stock vb 4.2.1
some other hacks installed but nothing interfering atm..
Thanks a bunch
elfenny
06-02-2013, 05:39 PM
installed and running, thanks
Sinjen
08-07-2013, 03:04 PM
Doesn't work using iframes.
-edit...in Chrome...FF works.
leanbulk
09-02-2013, 11:42 PM
Not working in vb 4.2.1
djbaxter
09-02-2013, 11:53 PM
Not working in vb 4.2.1
Working fine for me in 4.2.1
leanbulk
09-03-2013, 02:31 AM
Working fine for me in 4.2.1
I just tried again. I get a blank set of usergroup controls, but they are unlabeled. Can you detail your installation process?
djbaxter
09-03-2013, 04:16 PM
I followed the standard installation process for any product. Installed in 4.2.0 and upgraded to 4.2.1 without issue.
g10net
09-11-2013, 05:31 PM
thanks
dougdirac
11-14-2013, 05:06 PM
Any reports on how this works on vB4.2.2?
djbaxter
11-14-2013, 05:15 PM
It's working just great on 4.2.2 here.
tommyxv
11-11-2014, 01:43 PM
I am unable to delete a post in a thread that someone has posted HTML in. Inline moderation doesn't work. I've tested this numerous times and it's only threads that have HTML posted in it.
tommyxv
11-12-2014, 09:14 PM
Anyone have a suggestion or fix to resolve this?
ozzy47
11-12-2014, 09:47 PM
I looked at this before and could not find a good solution.
tommyxv
11-13-2014, 12:06 AM
I looked at this before and could not find a good solution.
Glad I'm not the only one with this issue. I have to turn of html for the usergroup so i can moderate a thread. Then re-enable it when done. What a PITA!
I hope a fix can be done. XF has one and it works great!
ozzy47
11-13-2014, 12:16 AM
Yeah it is a giant PITA, once I am done with my current mod, I may look into this again. :)
tommyxv
11-14-2014, 09:48 PM
Yeah it is a giant PITA, once I am done with my current mod, I may look into this again. :)
Happy to donate to get this fixed!
ozzy47
11-14-2014, 10:54 PM
Not sure when it will be, as the mod I am working on is giving me grief. :)
tommyxv
12-14-2014, 10:56 PM
Any time for this yet Ozzy?
ozzy47
12-14-2014, 11:03 PM
No I have not found anything out. :(
fridolin
02-27-2016, 06:08 AM
hmm... what about vb 3.8 version?
rbrt508
03-30-2017, 08:47 PM
Working flawlessly on 4.2.4
hmm... what about vb 3.8 version?
3.5-3.8
https://vborg.vbsupport.ru/showthread.php?t=96926
4.0-4.2
(You're already here)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.