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
  #2  
Old 08-03-2006, 08:34 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this new version solve this past issue:
https://vborg.vbsupport.ru/showpost....&postcount=117

Also is it compatible for 3.5 series?
Reply With Quote
  #3  
Old 08-03-2006, 08:47 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paul41598
does this new version solve this past issue:
https://vborg.vbsupport.ru/showpost....&postcount=117

Also is it compatible for 3.5 series?
You have to un-install and re-install this one. There are major differances. This one fixes the issues of the vb3.5 version.
Reply With Quote
  #4  
Old 08-03-2006, 08:48 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good thing I never installed the first one for 3.5. I will try this out tonight. Nice job, thanks again Abe
Reply With Quote
  #5  
Old 08-03-2006, 11:22 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm

PHP Code:
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
    
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
    
('1''5''Advanced BBCode Permissions''admin_usergroup_edit''require_once(\'./includes/class_bbcode.php\');\r\nnew vB_BbCodeParser($vbulletin, fetch_tag_list());\r\n\r\nprint_table_header($vbphrase[\'advanced_bbcode_permissions\']);\r\nprint_yes_no_row($vbphrase[\'advanced_bbcode_usergroup_on\'], \'usergroup[advanced_bbcode_usergroup_on]\', $usergroup[\'advanced_bbcode_usergroup_on\']);\r\n\r\n$advanced_bbcode_permissions = explode(\'|||\', $usergroup[\'advanced_bbcode_permissions\']);\r\nforeach ($advanced_bbcode_permissions AS $key => $bbcode)\r\n{\r\n    list($core, $bbcode, $yesno) = split(\"\\|\\|\", $bbcode);\r\n    $abe1_bbcode[$core][$bbcode] = $yesno;\r\n}\r\n\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_basic\'], \'abe1_bbcode[core][allow_bbcode_basic]\', $abe1_bbcode[\'core\'][\'allow_bbcode_basic\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_color\'], \'abe1_bbcode[core][allow_bbcode_color]\', $abe1_bbcode[\'core\'][\'allow_bbcode_color\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_size\'], \'abe1_bbcode[core][allow_bbcode_size]\', $abe1_bbcode[\'core\'][\'allow_bbcode_size\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_font\'], \'abe1_bbcode[core][allow_bbcode_font]\', $abe1_bbcode[\'core\'][\'allow_bbcode_font\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_align\'], \'abe1_bbcode[core][allow_bbcode_align]\', $abe1_bbcode[\'core\'][\'allow_bbcode_align\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_list\'], \'abe1_bbcode[core][allow_bbcode_list]\', $abe1_bbcode[\'core\'][\'allow_bbcode_list\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_url\'], \'abe1_bbcode[core][allow_bbcode_url]\', $abe1_bbcode[\'core\'][\'allow_bbcode_url\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_code\'], \'abe1_bbcode[core][allow_bbcode_code]\', $abe1_bbcode[\'core\'][\'allow_bbcode_code\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_php\'], \'abe1_bbcode[core][allow_bbcode_php]\', $abe1_bbcode[\'core\'][\'allow_bbcode_php\']);\r\nprint_yes_no_row($vbphrase[\'allow_bbcode_html\'], \'abe1_bbcode[core][allow_bbcode_html]\', $abe1_bbcode[\'core\'][\'allow_bbcode_html\']);\r\n\r\nforeach($vbulletin->bbcodecache AS $custom_bbcode)\r\n{\r\n    $custom_bbcodes[$custom_bbcode[\'bbcodetag\']] = $custom_bbcode[\'bbcodetag\'];\r\n}\r\n\r\nforeach ($custom_bbcodes AS $bbcode)\r\n{\r\n    print_yes_no_row(\"[\" . strtoupper($bbcode) . \"]\", \"abe1_bbcode[non_core][$bbcode]\", $abe1_bbcode[non_core][$bbcode]);\r\n}\r\n\r\nprint_table_break();\r\nprint_column_style_code(array(\'width: 70%\', \'width: 30%\'));''advancedbbcodepermissions');

MySQL Error  Unknown column 'executionorder' in 'field list'
Error Number 1054
Date         
ThursdayAugust 3rd 2006 07:19:45 PM
Script       
admincp/plugin.php
Referrer     
plugin.php?do=productadd
Username     
JonB
Classname    
vb_database 
Reply With Quote
  #6  
Old 08-03-2006, 11:27 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.
Attached Files
File Type: xml product-advancedbbcodepermissions.xml (11.0 KB, 68 views)
Reply With Quote
  #7  
Old 08-03-2006, 11:30 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh wow, so same features just ported to work with 3.5. Very cool. It imported fine...now time to test. Thanks Abe, that was very nice
Reply With Quote
  #8  
Old 08-04-2006, 07:04 PM
Darkfire122333 Darkfire122333 is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ony question I have before I install this, is what about in your screenshot. There is 2 [ALIGNMENT] tags. What would happen if you turned one on and one off? What would happen to it in general, also, what if there were more like that? Would they be turned on or off by default?

I am jst wondering becuase maybe there would be a conflict with selecting one off and one on, and making it unusable when I actually want it turned on, but the[LIST] code on, or the alignments on, but the[LIST] code off.

Sorry if I am not clear enough on what I mean.
Reply With Quote
  #9  
Old 08-04-2006, 07:58 PM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Darkfire122333
The ony question I have before I install this, is what about in your screenshot. There is 2 [ALIGNMENT] tags. What would happen if you turned one on and one off? What would happen to it in general, also, what if there were more like that? Would they be turned on or off by default?

I am jst wondering becuase maybe there would be a conflict with selecting one off and one on, and making it unusable when I actually want it turned on, but the[LIST] code on, or the alignments on, but the[LIST] code off.

Sorry if I am not clear enough on what I mean.
It makes sure both are off before disabling it.
Reply With Quote
  #10  
Old 08-05-2006, 12:47 AM
Cajun Cajun is offline
 
Join Date: Jan 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see this in the usergroup manager after intall.

Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
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 09:04 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.05512 seconds
  • Memory Usage 2,343KB
  • 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
  • (1)bbcode_php
  • (2)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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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