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
  #122  
Old 01-02-2012, 06:02 PM
downloadfound downloadfound is offline
 
Join Date: Dec 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind.
Reply With Quote
  #123  
Old 01-05-2012, 12:59 PM
dog-tag's Avatar
dog-tag dog-tag is offline
 
Join Date: Jan 2012
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #124  
Old 01-11-2012, 03:33 PM
acast acast is offline
 
Join Date: Aug 2008
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #125  
Old 02-05-2012, 02:23 AM
Suzie Suzie is offline
 
Join Date: May 2004
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #126  
Old 02-05-2012, 03:07 AM
Webbstre Webbstre is offline
 
Join Date: Nov 2009
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #127  
Old 03-17-2012, 12:58 AM
thenashy thenashy is offline
 
Join Date: May 2011
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Obviously I've tried with just the div tags too.
Reply With Quote
  #128  
Old 03-17-2012, 12:58 AM
thenashy thenashy is offline
 
Join Date: May 2011
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will it do divs? I'm trying to do:

HTML Code:
<!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.
Reply With Quote
  #129  
Old 04-14-2012, 08:49 PM
ThisIrksMe ThisIrksMe is offline
 
Join Date: Dec 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove the linebreaks so that there isn't gaps in the code.

--NVM, I figured it out---
Reply With Quote
  #130  
Old 04-30-2012, 04:18 PM
links4rank links4rank is offline
 
Join Date: Feb 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #131  
Old 04-30-2012, 05:18 PM
links4rank links4rank is offline
 
Join Date: Feb 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ThisIrksMe View Post
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!
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:12 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.05587 seconds
  • Memory Usage 2,338KB
  • 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_html
  • (1)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
  • (1)pagenav_pagelinkrel
  • (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