vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide Various BB Code Content From Users (https://vborg.vbsupport.ru/showthread.php?t=105160)

calorie 01-11-2006 10:00 PM

Hide Various BB Code Content From Users
 
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>


IrPr 01-12-2006 06:33 PM

1st click
/me installed
thanks

MPDev 01-12-2006 07:02 PM

Thanks! I was asking for this.... :)

apfparadise 01-12-2006 07:42 PM

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

4number8 01-13-2006 02:47 AM

Thanks, I was wanting to know if their was a way to get this to work on the homepage also? vBadvanced CMPS

Logikos 01-13-2006 03:12 AM

Needs to be fixed in archive
http://www.photoplog.com/forum/archi...x.php/t-1.html

calorie 01-13-2006 04:23 AM

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.

LockeAG 01-13-2006 04:57 AM

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

Logikos 01-13-2006 06:01 AM

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!

calorie 01-13-2006 06:21 AM

@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))



All times are GMT. The time now is 11:43 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.01194 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete