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)

Abe1 08-02-2006 10:00 PM

Advanced BBCode Permissions
 
1 Attachment(s)
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.
https://vborg.vbsupport.ru/external/2010/02/12.gif

paul41598 08-03-2006 08:34 PM

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

Also is it compatible for 3.5 series?

Abe1 08-03-2006 08:47 PM

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.

paul41598 08-03-2006 08:48 PM

Good thing I never installed the first one for 3.5. I will try this out tonight. Nice job, thanks again Abe

paul41598 08-03-2006 11:22 PM

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 


Abe1 08-03-2006 11:27 PM

1 Attachment(s)
You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.

paul41598 08-03-2006 11:30 PM

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 :D

Darkfire122333 08-04-2006 07:04 PM

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.

Abe1 08-04-2006 07:58 PM

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.

Cajun 08-05-2006 12:47 AM

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


All times are GMT. The time now is 07:20 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.01674 seconds
  • Memory Usage 1,761KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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