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

Reply
 
Thread Tools
Advanced BBCode Permissions Details »»
Advanced BBCode Permissions
Version: 3.0, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.8 Rating:
Released: 08-02-2006 Last Update: 08-24-2006 Installs: 631
DB Changes Uses Plugins
 
No support by the author.

Advanced BBCode Permissions 3.0



About this hack:
This hack will give you advanced control on BBCode. You will be able to define for each usergroup what BBCode they may or may not use. This hack works for both standard AND custom BB code!

Installation information on hack:
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 0
  • Time to install: 10 seconds max
Updates:

Version 3.0 (08/03/06):
  • Initial release of this hack for vb 3.6
  • [CHANGED] Re-did the way the permissions are stored to fix a lot of bugs.

Beta test version 4.0 here: https://vborg.vbsupport.ru/showthread.php?p=1159541

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

Download Now

File Type: zip advanced_bbcode_permissions_3_0.zip (3.1 KB, 3325 views)

Screenshots

File Type: jpg image.JPG (41.7 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
goxy63, TAIFUN_T

Comments
  #132  
Old 06-09-2007, 02:49 PM
sina1808 sina1808 is offline
 
Join Date: Sep 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #133  
Old 06-09-2007, 06:36 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
Reply With Quote
  #134  
Old 06-10-2007, 05:53 AM
Frozen Tears Frozen Tears is offline
 
Join Date: Nov 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooh! even custom bb codes, nice one man. thx.
Reply With Quote
  #135  
Old 06-11-2007, 07:38 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To fix the foreach(); errors you have to make the changes explained here i did and it worked fine
Reply With Quote
  #136  
Old 06-11-2007, 08:38 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
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.
Reply With Quote
  #137  
Old 06-11-2007, 09:00 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
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 ...
Reply With Quote
  #138  
Old 06-11-2007, 09:41 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
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!
Reply With Quote
  #139  
Old 06-12-2007, 06:03 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
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 ?
Reply With Quote
  #140  
Old 06-12-2007, 07:11 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
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%'));
Reply With Quote
  #141  
Old 06-21-2007, 05:12 PM
MoB Dudditz MD MoB Dudditz MD is offline
 
Join Date: Dec 2006
Location: IL
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:34 AM.


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.04845 seconds
  • Memory Usage 2,356KB
  • Queries Executed 27 (?)
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
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete