Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #12  
Old 01-13-2006, 01:03 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can i use this just for img, not for quote, php, html

i only need for the images

thanks
Reply With Quote
  #13  
Old 01-13-2006, 03:12 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, nice job again calorie.
I was gonna ask the same thing as croportal, can the bbcode restrictions be set up independently of eachother?
Reply With Quote
  #14  
Old 01-13-2006, 08:42 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For just images use:
Code:
	$zzz_bbcode_array = array(
		'/(\[img])(.*)(\[\/img])/siU'
	);
Reply With Quote
  #15  
Old 01-13-2006, 08:44 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes but i seen something on several places img, i dont understand what i need to move
Reply With Quote
  #16  
Old 01-15-2006, 03:53 PM
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
@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))

Thanks but I try it and the signatures did not appear..
Reply With Quote
  #17  
Old 01-15-2006, 04:15 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay try replacing with this instead:
Code:
if (!in_array($this->registry->userinfo['usergroupid'], array(2,6,9)) AND is_numeric($forumid) AND $forumid > 0)
Reply With Quote
  #18  
Old 01-15-2006, 04:30 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can u make that for url code
Reply With Quote
  #19  
Old 01-15-2006, 04:43 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working on a new version that'll be easier to use via vB options, and it'll include [URL] too.
Reply With Quote
  #20  
Old 01-15-2006, 04:47 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.croportal.net/forum/showthread.php?p=37500#post37500" target="_blank">http://www.croportal.net/forum/showt...7500#post37500</a>

loook here i have insert just for img code, and when guest wathcing you will see that he can click on the link
Reply With Quote
  #21  
Old 01-15-2006, 04:52 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and here is normal

http://www.croportal.net/forum/showp...56&postcount=1
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 09:21 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.05034 seconds
  • Memory Usage 2,296KB
  • 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
  • (5)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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