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

SİMAR 11-29-2009 09:25 PM

thanks you

kall 11-29-2009 10:10 PM

Quote:

Originally Posted by abdobasha2004 (Post 1921979)
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

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?

kall 12-10-2009 06:48 PM

*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?

kall 12-18-2009 12:54 AM

It's not supposed to affect thread titles, no.

yotsume 12-26-2009 04:26 PM

1 Attachment(s)
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

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

cosy 12-30-2009 10:13 AM

this should by a default on vb4 :(


anyway good job kall

rajubd 12-30-2009 03:44 PM

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


kall 12-30-2009 07:04 PM

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?

kall 12-31-2009 01:42 AM

Quote:

Originally Posted by badawidollah (Post 1943053)
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

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1943932)
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.

kall 01-01-2010 03:48 PM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1943932)
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:
Code:

why does he have blue wristbands and a red belt?????
Putting that in to quote, code, etc will result in:

Code:

[COLOR=\\"lime\\"]why does he have blue wristbands and a red belt?????[/COLOR]
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. :)

kall 01-09-2010 03:19 AM

Quote:

Originally Posted by Sador (Post 1949472)
Hmm, interesting. Thanks. :)

You're welcome, but you might want to actually download and install it before you thank me. :)

kall 01-09-2010 03:27 AM

Quote:

Originally Posted by FF|Skyrider (Post 1948028)
I found a bug.. This plugin is messing with the BBCodes.. Here's an example:

Someone posted this in green:
Code:

why does he have blue wristbands and a red belt?????
Putting that in to quote, code, etc will result in:

Code:

[COLOR=\\"lime\\"]why does he have blue wristbands and a red belt?????[/COLOR]
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...05/#post112567

Can you describe, step-by-step, how this occurs?

kall 01-10-2010 03:31 PM

Quote:

Originally Posted by Dr.osamA (Post 1923250)
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

kall 02-13-2010 06:17 AM

Quote:

Originally Posted by Greight (Post 1966817)
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?

kall 02-13-2010 06:19 AM

Quote:

Originally Posted by velma33 (Post 1981192)
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.) :)


All times are GMT. The time now is 12:59 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.01424 seconds
  • Memory Usage 1,830KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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