vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Per Usergroup HTML Posting Permission (https://vborg.vbsupport.ru/showthread.php?t=229035)

kall 11-27-2009 10:00 PM

Per Usergroup HTML Posting Permission
 
1 Attachment(s)
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..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

kall 11-28-2009 05:37 AM

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.

kall 11-28-2009 05:49 AM

Try downloading it again, it might have become corrupted.

kall 11-28-2009 05:53 AM

Quote:

Originally Posted by cellarius (Post 1921931)
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

1 Attachment(s)
Very nice .. Thank you

If you agree to make it in Arabic

That you do not agree I will remove it from attachments


All times are GMT. The time now is 06:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01277 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete