vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   per-user/usergroup HTML posting permissions v2.0 (https://vborg.vbsupport.ru/showthread.php?t=66133)

Darkling 06-12-2004 10:00 PM

per-user/usergroup HTML posting permissions v2.0
 
Another slant on this much requested hack.

Designed for and tested in vB3.0.1

This hack is designed to allow only specified users and/or usergroups to use HTML in their posts.

Usage

You can grant and deny users the ability to use HTML in their posts by userid or usergroup.
Primary usergroups and membergroups are taken into account.

Four comma separated lists in config.php specify:

Usergroups that CAN use HTML,
Usergroups that CANNOT use HTML,
Users that CAN use HTML,
Users that CANNOT use HTML.

User settings take precedence over usergroup settings.
In each, denial of permission takes precedence over granting of permission.

If you have the same user or usergroup listed as both grant and deny then they are denied permission.

Settings have the following order of precedence:

vB's per-forum setting

is overridden by...

Usergroups that CAN post HTML

is overridden by...

Usergroups that CAN NOT post HTML

is overridden by...

Users that CAN post HTML

is overridden by...

Users that CAN NOT post HTML

All users not specified either individually or by usergroup will take their permission from
vB's default forum permissions.

Adding and removing userids is retroactive and will affect all posts belonging to those users.

There is a master switch in config.php allowing you to enable/disable this system
without having to edit your allowed and denied lists.

When this system is diabled, control reverts back to vB's default forum permissions.

Known limitations

When editing another user's post, "HTML code is On/Off" displays *your* permission not that of the user who owns the post.
HTML is parsed based on the permissions of the owner not the editor.

Getting the poster's usergroup and membergroups adds a query.

Installation

File edits: 4

See attached.

NuclioN 06-14-2004 01:40 AM

Seems not to work for vb 3 gold

Darkling 06-14-2004 12:02 PM

It appears that there was an error in my instructions.

A block of original vB code was not commented out.

This effectively undid the hack.

Apologies to anyone who has downloaded the file already and found it did not work

A new file has been uploaded with the correction made.




Credit goes to kall for pointing this out.

Thanks Kall.

kall 06-14-2004 07:19 PM

Quote:

Originally Posted by Darkling
It appears that there was an error in my instructions.

A block of original vB code was not commented out.

This effectively undid the hack.

Apologies to anyone who has downloaded the file already and found it did not work

A new file has been uploaded with the correction made.




Credit goes to kall for pointing this out.

Thanks Kall.

That's the joy of using a colour-coded text editor. :)

[high]* kall installs[/high]

Karthick 06-16-2004 07:18 AM

Quote:

Originally Posted by kall
That's the joy of using a colour-coded text editor. :)

[high]* kall installs[/high]

Installed in less than 2 minuted... Really great hack.

[high]* Karthick clicks install[/high]

Karthick 06-17-2004 08:00 PM

Quote:

Originally Posted by Karthick
Installed in less than 2 minuted... Really great hack.

[high]* Karthick clicks install[/high]

How to parse HTML in the title of the post?

Dean C 06-17-2004 10:41 PM

This one's great - will make my mods life easier when drawing up tournament tables and such - thanks :)!

Chriss74 07-21-2004 08:08 PM

Thanks for the hack. It works good!

But one thing: When I'm sending private messages, the html-code is still turned off, although I turned it on with your hack. That could be an enhancement for the next version of the hack.

Greetings,
Chriss

mallchin 08-03-2004 02:34 PM

I've tried this on 3.0.3 but doesn't seem to work -- am I missing something?

I've enabled the hack and added user groups as instructed.

:(

Andreas 08-03-2004 03:10 PM

I think the problem is that $post is not a global variable.

Dennis Olson 08-23-2004 11:32 AM

Did the $post var issue get resolved?

Dennis Olson 09-14-2004 04:06 PM

bump for the answer...?

kau 09-14-2004 04:20 PM

How could I change this to do the same thing for IMG tags.

Certain user groups can only use IMG tags.

kau 09-14-2004 06:03 PM

Anyone?

Revan 09-25-2004 04:00 PM

damn nice hack! :D
[high]* Revan clicks install[/high]

theArchitect 10-16-2004 11:19 AM

*theArchitect clicks install*.

Nice hack.

mferguson 10-28-2004 04:19 PM

On one of my sites we have the ability for members to upload travel stories to a forum. Given that these users do not have html enabled I have the person email me pictures for there story and then edit his post to include them. Based on the way this hack currently functions you can't (if you have HTML enabled for yourself as the admin) go to another member's post and edit it to contain html. I've looked at the code but don't see an obvious way to modify it to support this capability. Can any one supply ideas on how this might be accomplished?

Thanks!

Mark

nubian 11-29-2004 10:45 PM

i migrated from phpbb to vb 3.0.3.
i just install this hack but i don't think it works.
anyone else get this working for 3.0.3?
please help.
thanks in advance

ataraxia 12-15-2004 12:38 AM

(bump) Anyone get this to work on 3.03?

Seems like a great concept. Does it work?

nubian 12-19-2004 09:59 PM

Quote:

Originally Posted by ataraxia
(bump) Anyone get this to work on 3.03?

Seems like a great concept. Does it work?

i've tried this for 3.0.3 and never got it to work

ataraxia 01-06-2005 08:39 PM

Anyone try this on 3.0.4 yet?

tpearl5 01-18-2005 04:26 PM

I can't see to get it to work in 3.0.5. When I tried enabling HTML manually it didn't work. When I removed the hack HTML worked fine.

kall 05-18-2005 08:34 AM

It works fine in 3.0.7 .. you people must have done something wrong, or it is conflicting with another hack.

CodeRed 09-08-2005 02:11 PM

anyone try it with 3.0.8?

thanks

akoj 09-09-2005 06:38 PM

This is one of my favorite hacks. Are there plans to release it for 3.5?

bigcurt 09-09-2005 06:42 PM

I am sure someone will port something like this for vB 3.5 once gold releases :)



~Curt

Doozilla 12-28-2005 09:20 PM

Any luck on a 3.5.x port?

corbint 02-02-2006 02:27 PM

plz port this to 3.5.X!!!

feldon23 11-15-2006 01:22 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=96926" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=96926</a>


All times are GMT. The time now is 02:41 AM.

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.01205 seconds
  • Memory Usage 1,768KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete