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
  #162  
Old 05-11-2008, 09:03 PM
John Stone's Avatar
John Stone John Stone is offline
 
Join Date: May 2004
Location: Orlando, FL
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I was using with 3.6.7 with no adverse issues. I'm about to deploy 3.7.0--will it still work? I've come to depend on this hack!
Reply With Quote
  #163  
Old 05-14-2008, 10:31 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really cool idea Abe1. I have a question however, are the permissions set in this mod also taken into consideration in /misc.php when generating the list of available BB Codes and examples?

For example, here: https://vborg.vbsupport.ru/misc.php?do=bbcode
Reply With Quote
  #164  
Old 05-15-2008, 01:15 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope. That has always been an issue.

EDIT: But in vBulletin 3.7, some new hooks make it much easier to do. Look at hooks misc_bbcode_bit for custom and misc_bbcode_complete for default bbcodes. For misc_bbcode_bit a continue is not possible, so you must be clever and restore/truncate the templates on each pass.
Reply With Quote
  #165  
Old 05-15-2008, 02:57 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe this only works in vBulletin 3.7.0, because earlier versions don't have these hooks.
If you see this post, Abe, you're free to integrate it into the product.

To handle custom BB-Code perms, plugin at: misc_bbcode_bit
Note: You will need to modify the forum ID for your own setup.
PHP Code:
if (empty($full_parse))
{
    if (!
defined('BBCODE_ENABLED_FORUM'))
    {
        
define('BBCODE_ENABLED_FORUM'2);
    }

    
$full_parse = array(
        
$vbulletin->templatecache['help_bbcodes_bbcode'],
        
$vbulletin->templatecache['help_bbcodes_link']
    );
}

$bbcode['output'] = $bbcode_parser->parse($bbcode['bbcodeexample'], BBCODE_ENABLED_FORUM);

if (empty(
$bbcode_parser->tag_list[($bbcode['twoparams'] ? 'option' 'no_option')][$bbcode['bbcodetag']]))
{
    
$vbulletin->templatecache['help_bbcodes_bbcode'] = '';
    
$vbulletin->templatecache['help_bbcodes_link'] = '';    
}
else
{
    
$vbulletin->templatecache['help_bbcodes_bbcode'] = $full_parse[0];
    
$vbulletin->templatecache['help_bbcodes_link'] = $full_parse[1];

To handle default BB-Code perms, plugin at: misc_bbcode_complete
PHP Code:
$show['bbcodebasic'] = (!empty($bbcode_parser->tag_list['no_option']['b'])) ? true false;
$show['bbcodecolor'] = (!empty($bbcode_parser->tag_list['option']['color'])) ? true false;
$show['bbcodesize'] = (!empty($bbcode_parser->tag_list['option']['size'])) ? true false;
$show['bbcodefont'] = (!empty($bbcode_parser->tag_list['option']['font'])) ? true false;
$show['bbcodealign'] = (!empty($bbcode_parser->tag_list['no_option']['left'])) ? true false;
$show['bbcodelist'] = (!empty($bbcode_parser->tag_list['option']['list'])) ? true false;
$show['bbcodeurl'] = (!empty($bbcode_parser->tag_list['option']['url'])) ? true false;
$show['bbcodecode'] = (!empty($bbcode_parser->tag_list['no_option']['code'])) ? true false;
$show['bbcodephp'] = (!empty($bbcode_parser->tag_list['no_option']['php'])) ? true false;
$show['bbcodehtml'] = (!empty($bbcode_parser->tag_list['no_option']['html'])) ? true false
Reply With Quote
  #166  
Old 05-16-2008, 01:55 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah- thanks for explaining that thincom2000! hopefully Abe incorporates this into the mod.
Reply With Quote
  #167  
Old 05-29-2008, 04:37 PM
Jamyn Jamyn is offline
 
Join Date: May 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to a vb 3.7 version of this, because right now it doesn't seem like there's any other option to disable bbcode per usergroup. I can't believe the devs overlooked that, with the proliferation of IMG spam.
Reply With Quote
  #168  
Old 05-29-2008, 05:08 PM
jojo77 jojo77 is offline
 
Join Date: Mar 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jamyn View Post
I can't believe the devs overlooked that, with the proliferation of IMG spam.

Me too. Not giving us an option for only admins to post HTML poses a huge risk. Should be a no brainer addon.
Reply With Quote
  #169  
Old 06-01-2008, 10:47 PM
anwar.abdullakh anwar.abdullakh is offline
 
Join Date: Oct 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looking forward to a 3.7 version too.
I have some custom BBcodes that I only want my staff to use, I hope you can find the time abe to release a 3.7 version soon.
Reply With Quote
  #170  
Old 06-07-2008, 03:50 PM
Veo Veo is offline
 
Join Date: May 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm need it too.
Reply With Quote
  #171  
Old 06-09-2008, 08:53 PM
Darkstarproject Darkstarproject is offline
 
Join Date: May 2008
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know this isnt made for vb 3.7, but I have installed it and tested it, and it is working just fine on vb 3.7.1. I have custom BB Code as well.
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:10 PM.


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.05710 seconds
  • Memory Usage 2,365KB
  • 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
  • (2)bbcode_php
  • (1)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