vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Administrative and Maintenance Tools - Advanced BBCode Permissions (https://vborg.vbsupport.ru/showthread.php?t=122942)

sina1808 06-09-2007 02:49 PM

hi
I want to know how to disable showing [ url ] tags after activing the plugin
i have disable [ url ] tags !

and I see this in the usergroup manager after intall :

Quote:

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
will using this file ( advanced_bbcode_permissions_4_0_b_1.zip ) solve my problem ?

Fungsten 06-09-2007 06:36 PM

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30

Frozen Tears 06-10-2007 05:53 AM

Ooh! even custom bb codes, nice one man. thx.

Delphiprogrammi 06-11-2007 07:38 PM

To fix the foreach(); errors you have to make the changes explained here i did and it worked fine

Fungsten 06-11-2007 08:38 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1266450)
To fix the foreach(); errors you have to make the changes explained here i did and it worked fine

Where do you find the Hooks? Thanks.

Delphiprogrammi 06-11-2007 09:00 PM

Quote:

Originally Posted by Fungsten (Post 1266500)
Where do you find the Hooks? Thanks.

it's in your admincp => products & plugin system => plugins manager => advanced bbcode permissions.There you'll see a list of all plugins used and at which hook ...

Fungsten 06-11-2007 09:41 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1266521)
it's in your admincp => products & plugin system => plugins manager => advanced bbcode permissions.There you'll see a list of all plugins used and at which hook ...


Quote:

print_yes_no_row("[" . strtoupper($bbcode) . "]",
When the first part of those instructions say to search for:

Quote:

print_yes_no_row("[" . strtolower($bbcode) . "]",
Thanks again!

Delphiprogrammi 06-12-2007 06:03 AM

Quote:

Originally Posted by Fungsten (Post 1266546)
When the first part of those instructions say to search for:



Thanks again!

you must copy the hook code and paste it in an editor doin this it's much easier to find the lines you need secondly are you sure you are running 3.6.x and you have that version installed ?

Fungsten 06-12-2007 07:11 PM

Quote:

Originally Posted by Delphiprogrammi (Post 1266749)
you must copy the hook code and paste it in an editor doin this it's much easier to find the lines you need secondly are you sure you are running 3.6.x and you have that version installed ?

I still couldn't find the code though. I copied it to Word and it still can't find ". strtolower" or "strtolower".

On Edit:

Here's Hook Code:

Quote:


require_once('./includes/class_bbcode.php');
new vB_BbCodeParser($vbulletin, fetch_tag_list());
print_table_header($vbphrase['advanced_bbcode_permissions']);
print_yes_no_row($vbphrase['advanced_bbcode_usergroup_on'], 'usergroup[advanced_bbcode_usergroup_on]', $usergroup['advanced_bbcode_usergroup_on']);
$advanced_bbcode_permissions = explode('|||', $usergroup['advanced_bbcode_permissions']);
foreach ($advanced_bbcode_permissions AS $key => $bbcode)
{
list($core, $bbcode, $yesno) = split("\|\|", $bbcode);
$abe1_bbcode[$core][$bbcode] = $yesno;
}
print_yes_no_row($vbphrase['allow_bbcode_basic'], 'abe1_bbcode[core][allow_bbcode_basic]', $abe1_bbcode['core']['allow_bbcode_basic']);
print_yes_no_row($vbphrase['allow_bbcode_color'], 'abe1_bbcode[core][allow_bbcode_color]', $abe1_bbcode['core']['allow_bbcode_color']);
print_yes_no_row($vbphrase['allow_bbcode_size'], 'abe1_bbcode[core][allow_bbcode_size]', $abe1_bbcode['core']['allow_bbcode_size']);
print_yes_no_row($vbphrase['allow_bbcode_font'], 'abe1_bbcode[core][allow_bbcode_font]', $abe1_bbcode['core']['allow_bbcode_font']);
print_yes_no_row($vbphrase['allow_bbcode_align'], 'abe1_bbcode[core][allow_bbcode_align]', $abe1_bbcode['core']['allow_bbcode_align']);
print_yes_no_row($vbphrase['allow_bbcode_list'], 'abe1_bbcode[core][allow_bbcode_list]', $abe1_bbcode['core']['allow_bbcode_list']);
print_yes_no_row($vbphrase['allow_bbcode_url'], 'abe1_bbcode[core][allow_bbcode_url]', $abe1_bbcode['core']['allow_bbcode_url']);
print_yes_no_row($vbphrase['allow_bbcode_code'], 'abe1_bbcode[core][allow_bbcode_code]', $abe1_bbcode['core']['allow_bbcode_code']);
print_yes_no_row($vbphrase['allow_bbcode_php'], 'abe1_bbcode[core][allow_bbcode_php]', $abe1_bbcode['core']['allow_bbcode_php']);
print_yes_no_row($vbphrase['allow_bbcode_html'], 'abe1_bbcode[core][allow_bbcode_html]', $abe1_bbcode['core']['allow_bbcode_html']);
foreach($vbulletin->bbcodecache AS $custom_bbcode)
{
$custom_bbcodes[$custom_bbcode['bbcodetag']] = $custom_bbcode['bbcodetag'];
}
foreach ($custom_bbcodes AS $bbcode)
{
print_yes_no_row("[" . strtoupper($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
}
print_table_break();
print_column_style_code(array('width: 70%', 'width: 30%'));


MoB Dudditz MD 06-21-2007 05:12 PM

I found that if the thread starter is by a user without a certain BBC permission,
it will pass the restriction to anyone that replies.
For instance:
Registered Usergroup cannot use [IMG] BBC

Registered User creates a thread in which an Admin (who can use [IMG]) replies.
If that admin reply contains an [IMG], it will not parse.
Does anyone have the same problem?

I used [IMG] as an example but the BBC in question does happen to be custom.

sidenote:
I also tried the misc.php modification as per this post
and received an error at the top of my browser when viewing the BBC list page.
Warning: sprintf() [function.sprintf]: Too few arguments in /includes/class_bbcode.php on line 1115


All times are GMT. The time now is 02:56 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.01457 seconds
  • Memory Usage 1,751KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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