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
  #92  
Old 07-07-2008, 02:46 PM
alirezazt alirezazt is offline
 
Join Date: May 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello my vibulletin ver. is 3.7.2
I Installed
but when i change any settings show this error:
Fatal error: Unsupported operand types in D:\Domains\mydomain.com\wwwroot\forum\includes\adm infunctions_options.php on line 680

It's very useful for me please help me .

thanks
Reply With Quote
  #93  
Old 07-09-2008, 09:32 AM
Whiteyez Whiteyez is offline
 
Join Date: Jun 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do this, https://vborg.vbsupport.ru/showpost....3&postcount=77 and everything should work fine. I did it and its ok.
Reply With Quote
  #94  
Old 07-29-2008, 04:40 PM
Brembo Brembo is offline
 
Join Date: Jul 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To make it work in 3.7.x ... Open the xml file & replace line 357 to
Code:
<datatype>bitfield</datatype>
It will work.. Thanks to who posted above..
Reply With Quote
  #95  
Old 08-09-2008, 12:36 PM
alishahbazi alishahbazi is offline
 
Join Date: Feb 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi dear friend.
i install this hack for vbulletin 3.7.2 but i could not change this hack.
i change this eror viewing :::

Fatal error: Unsupported operand types in /home2/p30pedia/public_html/forum/includes/adminfunctions_options.php on line 680

Please Help Me!
Reply With Quote
  #96  
Old 09-10-2008, 12:21 PM
Protic Protic is offline
 
Join Date: May 2008
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the same error..
and if i use the hack..it even shows " content visible onli to registered " to me even.. in some threads..not all .. ( im admin )..

Please help.
Reply With Quote
  #97  
Old 09-13-2008, 10:13 PM
alimcm alimcm is offline
 
Join Date: Oct 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Protic View Post
I get the same error..
and if i use the hack..it even shows " content visible onli to registered " to me even.. in some threads..not all .. ( im admin )..

Please help.
Yes I have the same problem either !!!
Any Idea how to fix it ?


I run vBulletin 3.7.3 and the content of Codes show " content visible only to registered " to me even.. in some threads..not all .. ( I'm admin )..


I have edited the mod according to post 77 but it still has the problem !
Reply With Quote
  #98  
Old 09-22-2008, 01:58 PM
f4vn f4vn is offline
 
Join Date: Apr 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello calorie

I have this case:

I have 2 group: Registered Member & Senior Member. Register can view all text in code tag. But i would like to do this: Register can view all text in all forums except Software forum. In Software forum only Senior Member can view text in code tag, that mean Senior can view all text in code tag in all forum.
I know where to edit, like this:

Code:
function hide_bbcode_access($hide_bbcode_info)
{
//Get current forumid to compare with the forumid config in ACP, then do some conditional expression, i stuck here 
	$hide_bbcode_blocked = 1;

	$hide_bbcode_disallowed = explode(",",str_replace(" ","",$hide_bbcode_info->options['hide_bbcode_groups']));
	$hide_bbcode_primary = $hide_bbcode_info->userinfo['usergroupid'];
	$hide_bbcode_secondary = explode(",",str_replace(" ","",$hide_bbcode_info->userinfo['membergroupids']));
	$hide_bbcode_intersect = array_intersect($hide_bbcode_disallowed, $hide_bbcode_secondary);

	if (!in_array($hide_bbcode_primary, $hide_bbcode_disallowed) AND empty($hide_bbcode_intersect))
	{
		$hide_bbcode_blocked = 0;
	}
	return $hide_bbcode_blocked;

}
But i dont know how to get current forumid in this function. pls give me some suggestion. Many thanks
Reply With Quote
  #99  
Old 01-29-2009, 09:49 AM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ups..
Reply With Quote
  #100  
Old 01-30-2009, 01:30 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brembo View Post
To make it work in 3.7.x ... Open the xml file & replace line 357 to
Code:
<datatype>bitfield</datatype>
It will work.. Thanks to who posted above..
Allright! with this fix, it works for 3.8.1 aswell
Reply With Quote
  #101  
Old 03-03-2009, 07:14 AM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Unsupported operand types in adminfunctions_options.php on line 692

Why.....?
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 07:49 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.06374 seconds
  • Memory Usage 2,304KB
  • 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
  • (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
  • (4)pagenav_pagelink
  • (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