Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
per-user/usergroup HTML posting permissions v2.0 Details »»
per-user/usergroup HTML posting permissions v2.0
Version: 1.00, by Darkling Darkling is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-12-2004 Last Update: Never Installs: 28
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-23-2004, 11:32 AM
Dennis Olson Dennis Olson is offline
 
Join Date: Jul 2004
Location: Wisconsin
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did the $post var issue get resolved?
Reply With Quote
  #13  
Old 09-14-2004, 04:06 PM
Dennis Olson Dennis Olson is offline
 
Join Date: Jul 2004
Location: Wisconsin
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump for the answer...?
Reply With Quote
  #14  
Old 09-14-2004, 04:20 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Certain user groups can only use IMG tags.
Reply With Quote
  #15  
Old 09-14-2004, 06:03 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #16  
Old 09-25-2004, 04:00 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

damn nice hack!
[high]* Revan clicks install[/high]
Reply With Quote
  #17  
Old 10-16-2004, 11:19 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*theArchitect clicks install*.

Nice hack.
Reply With Quote
  #18  
Old 10-28-2004, 04:19 PM
mferguson's Avatar
mferguson mferguson is offline
 
Join Date: Jan 2003
Location: Colorado
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 11-29-2004, 10:45 PM
nubian nubian is offline
 
Join Date: Nov 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 12-15-2004, 12:38 AM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(bump) Anyone get this to work on 3.03?

Seems like a great concept. Does it work?
Reply With Quote
  #21  
Old 12-19-2004, 09:59 PM
nubian nubian is offline
 
Join Date: Nov 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 06:10 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.05214 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete