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
  #112  
Old 10-19-2011, 10:18 AM
listisimo.es listisimo.es is offline
 
Join Date: Feb 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Solved the problem I mentioned above. Nothing to do with this mod
Reply With Quote
  #113  
Old 10-20-2011, 10:38 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by listisimo.es View Post
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.
Reply With Quote
  #114  
Old 11-15-2011, 10:24 AM
delta1001's Avatar
delta1001 delta1001 is offline
 
Join Date: Apr 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant idea - just what I'm looking for, alas, I doesn't work with 4.1.7

- is it my mistake?
- will it be updated?

Thanks!
Reply With Quote
  #115  
Old 11-15-2011, 11:55 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 Videx View Post
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.
Reply With Quote
  #116  
Old 11-16-2011, 10:33 AM
delta1001's Avatar
delta1001 delta1001 is offline
 
Join Date: Apr 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #117  
Old 11-16-2011, 01:15 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by delta1001 View Post
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.
Reply With Quote
  #118  
Old 11-17-2011, 09:00 AM
delta1001's Avatar
delta1001 delta1001 is offline
 
Join Date: Apr 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks :up:
Reply With Quote
  #119  
Old 11-17-2011, 01:15 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #120  
Old 11-17-2011, 01:42 PM
delta1001's Avatar
delta1001 delta1001 is offline
 
Join Date: Apr 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #121  
Old 12-23-2011, 12:37 AM
downloadfound downloadfound is offline
 
Join Date: Dec 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 08:44 AM.


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.05608 seconds
  • Memory Usage 2,346KB
  • 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
  • (3)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