Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Per Usergroup HTML Posting Permission Details »»
Per Usergroup HTML Posting Permission
Version: 4.001, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.x Rating:
Released: 11-27-2009 Last Update: Never Installs: 300
DB Changes Uses Plugins
Additional Files  
No support by the author.

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

File Type: zip UsergroupAllowHTML4.0.zip (2.4 KB, 1775 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Razor87, RichieBoy67

Comments
  #62  
Old 05-03-2010, 10:02 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on v4.03 ....

Very nice... thank you ... :up:

We needed this for our forums ...

Regards,
Badger
Reply With Quote
  #63  
Old 05-10-2010, 10:02 PM
biosclan biosclan is offline
 
Join Date: Jan 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks this worked like a champ!
Reply With Quote
  #64  
Old 05-24-2010, 09:07 PM
Halfhidden's Avatar
Halfhidden Halfhidden is offline
 
Join Date: Sep 2009
Location: Penzance Cornwall
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #65  
Old 05-25-2010, 05:45 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Halfhidden View Post
Perhaps I'm missing something.
Posts != PMs.
Reply With Quote
  #66  
Old 05-25-2010, 06:03 AM
Halfhidden's Avatar
Halfhidden Halfhidden is offline
 
Join Date: Sep 2009
Location: Penzance Cornwall
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall View Post
Posts != PMs.
Sorry Kall you lost me. Are you saying that pm's don't work only posts do?
Reply With Quote
  #67  
Old 05-25-2010, 08:18 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Halfhidden View Post
Sorry Kall you lost me. Are you saying that pm's don't work only posts do?
From the mod description:
Quote:
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.
Reply With Quote
  #68  
Old 05-25-2010, 08:34 AM
Halfhidden's Avatar
Halfhidden Halfhidden is offline
 
Join Date: Sep 2009
Location: Penzance Cornwall
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cellarius View Post
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
Reply With Quote
  #69  
Old 06-08-2010, 07:04 PM
Mr Morningstarr's Avatar
Mr Morningstarr Mr Morningstarr is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rajubd View Post
when try to enable it error
Code:
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?
Reply With Quote
  #70  
Old 06-08-2010, 07:19 PM
Mr Morningstarr's Avatar
Mr Morningstarr Mr Morningstarr is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #71  
Old 06-08-2010, 08:18 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Halfhidden View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05845 seconds
  • Memory Usage 2,348KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete