Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #2  
Old 06-14-2004, 01:40 AM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems not to work for vb 3 gold
Reply With Quote
  #3  
Old 06-14-2004, 12:02 PM
Darkling's Avatar
Darkling Darkling is offline
 
Join Date: Aug 2003
Location: w/ the bats in the attic.
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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]
Reply With Quote
  #5  
Old 06-16-2004, 07:18 AM
Karthick Karthick is offline
 
Join Date: Mar 2004
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #6  
Old 06-17-2004, 08:00 PM
Karthick Karthick is offline
 
Join Date: Mar 2004
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 06-17-2004, 10:41 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This one's great - will make my mods life easier when drawing up tournament tables and such - thanks !
Reply With Quote
  #8  
Old 07-21-2004, 08:08 PM
Chriss74 Chriss74 is offline
 
Join Date: Apr 2004
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 08-03-2004, 02:34 PM
mallchin mallchin is offline
 
Join Date: Aug 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
  #10  
Old 08-03-2004, 03:10 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools

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 05:55 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.05024 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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
  • (3)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
  • (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