Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Various BB Code Content From Users Details »»
Hide Various BB Code Content From Users
Version: 1.0.0, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-11-2006 Last Update: 05-11-2006 Installs: 156
Uses Plugins
 
No support by the author.

This mod makes it so you can hide various BB code content from certain usergroups. It takes into account both primary and secondary usergroups and is controlled completely through the vB ACP. If you use this mod, please click the install button. Thanks.

The various BBcode content you can hide is as follows:

[B], [I], [U], [COLOR], [SIZE], [FONT], [LEFT], [CENTER], [RIGHT],[INDENT],[LIST], [URL], [EMAIL], [THREAD], [POST], [CODE], [PHP], [HTML], [IMG], [QUOTE]

See the add_custom_bbcodes.txt file for how to add other BB codes.

NOTES: Do not apply any code changes posted before the twenty-second post, and when using this mod, Cached Posts Lifespan should be zero, but turning off post caching can result in slower display time, as posts would then be parsed into HTML at display time rather than at post time.

Before installing this add-on, change this in product-hide_bbcodes.xml:
Code:
<setting varname="hide_bbcode_list" displayorder="200">
<datatype>number</datatype>
To this, and then install; otherwise it errors unsupported operand types:
Code:
<setting varname="hide_bbcode_list" displayorder="200">
<datatype>bitfield</datatype>

Show Your Support

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

Comments
  #2  
Old 01-12-2006, 06:33 PM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1st click
/me installed
thanks
Reply With Quote
  #3  
Old 01-12-2006, 07:02 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! I was asking for this....
Reply With Quote
  #4  
Old 01-12-2006, 07:42 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, I have been asking for this all over, and it's even better, a plug in.

One comment though, does not seem to difficult for a programmer, but the array that gives you the usergroups to show to, It may be easier to do it for usergroups that it WONT show to.

Most of the time (as in my case) the IMG tags will NOT be shown to Unregistered users to promote registrations. I like the idea of an array to customize it, but I had to put in 8 usergroups

Once again, though, THANKS for this. Installed.

here it is at work :
http://aquatic-photography.com/forum...ead.php?t=5730
Reply With Quote
  #5  
Old 01-13-2006, 02:47 AM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I was wanting to know if their was a way to get this to work on the homepage also? vBadvanced CMPS
Reply With Quote
  #6  
Old 01-13-2006, 03:12 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Needs to be fixed in archive
http://www.photoplog.com/forum/archi...x.php/t-1.html
Reply With Quote
  #7  
Old 01-13-2006, 04:23 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.
Reply With Quote
  #8  
Old 01-13-2006, 04:57 AM
LockeAG's Avatar
LockeAG LockeAG is offline
 
Join Date: Aug 2005
Location: Mexico, DF
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by calorie
Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.
Great

But , how can I omit the restiction of [IMG] code on the signatures
Reply With Quote
  #9  
Old 01-13-2006, 06:01 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by calorie
Thanks, fixed. Delete the Hide BBcode Content plugin and then import the new attachment as a product via the ACP. Note that you'll need to either a) edit the XML file to your specs prior to import or b) edit the two plugins after import. Comments are provided, but maybe later I'll set it to use vB options.
Kool thanks man, clicks install!
Reply With Quote
  #10  
Old 01-13-2006, 06:21 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@LockeAG: try the following:
Code:
Replace the following:

if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)))


With the following:

if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)) AND is_numeric($forumid))
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 01:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04508 seconds
  • Memory Usage 2,291KB
  • 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_code
  • (2)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
  • (1)pagenav_pagelinkrel
  • (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