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
  #22  
Old 01-06-2005, 08:39 PM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone try this on 3.0.4 yet?
Reply With Quote
  #23  
Old 01-18-2005, 04:26 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 05-18-2005, 08:34 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works fine in 3.0.7 .. you people must have done something wrong, or it is conflicting with another hack.
Reply With Quote
  #25  
Old 09-08-2005, 02:11 PM
CodeRed CodeRed is offline
 
Join Date: Aug 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone try it with 3.0.8?

thanks
Reply With Quote
  #26  
Old 09-09-2005, 06:38 PM
akoj akoj is offline
 
Join Date: Jul 2004
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is one of my favorite hacks. Are there plans to release it for 3.5?
Reply With Quote
  #27  
Old 09-09-2005, 06:42 PM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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



~Curt
Reply With Quote
  #28  
Old 12-28-2005, 09:20 PM
Doozilla Doozilla is offline
 
Join Date: Dec 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any luck on a 3.5.x port?
Reply With Quote
  #29  
Old 02-02-2006, 02:27 PM
corbint corbint is offline
 
Join Date: May 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

plz port this to 3.5.X!!!
Reply With Quote
  #30  
Old 11-15-2006, 01:22 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=96926" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=96926</a>
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:37 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.05608 seconds
  • Memory Usage 2,288KB
  • Queries Executed 24 (?)
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)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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