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
  #122  
Old 04-18-2007, 04:27 PM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by johnstires View Post
This mod conflicts with the news module for vba cmps. In the news module bbcode only gets parsed for the most recently entered thread. All other threads lose thier parsing. See here for an example:

http://www.prenatalyogacenter.com/cm...php?page=press

When I disable ABBcode the module works fine. Anyone know how to fix this?
Quote:
Since I have this same issue, was there ever a solution to it?
How about if I bump this one? I've had to disable this wonderful hack because I need the parsing of the bbcode on vbadvanced more. Is there anyway to make them play nice together?
Reply With Quote
  #123  
Old 04-18-2007, 09:20 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod functions properly for the most part on showthread and in post preview; however,
disallowed BB-codes still parse in the WYSIWYG editor.

I have been investigating this on my own, and I'm not sure I see any way around it, since WYSIWYG seems to make direct text replacements rather than iterating through any sort of tag list.
Reply With Quote
  #124  
Old 04-19-2007, 01:33 PM
Makc666's Avatar
Makc666 Makc666 is offline
 
Join Date: Dec 2002
Location: MSK-RU
Posts: 392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
This feature really has nothing to do with this hack.
Why not?

1. User are not allowed to use [ MOD] [ /MOD]
1. User made a post.
2. Moderator came an left a note like [ MOD]WARNING![ /MOD] there.
3. User came back and hit EDIT the post.
4. But as user are not allowed to use [ MOD] [ /MOD] he was not able to edit that post.
5. User just removed [ MOD]WARNING![ /MOD] and saved the post.

Sorry there is some mess up here.
User are not allowed to use [ MOD] [ /MOD], bu he just removed it.
That is why I proposed "If user is not allowed to use say bbcode [ B ] , then user is not allowed to EDIT post".
Reply With Quote
  #125  
Old 04-19-2007, 04:19 PM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like you need to use an external callback function for your [MOD] tag, rather than HTML replacement. Since you require the reverse of the Advanced Permissions while editing a post, you should probably just hardcode the checks into the function.
Reply With Quote
  #126  
Old 04-25-2007, 08:15 PM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
Aren't there other image options right now per usergroup?
If only wishing made it so. IMG is the obvious oversight in this otherwise fantastic add-on.
Reply With Quote
  #127  
Old 04-28-2007, 08:26 PM
mhmd1983 mhmd1983 is offline
 
Join Date: Apr 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed , very nice hack man
Reply With Quote
  #128  
Old 05-08-2007, 08:50 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed...thanks for this good hack...
Reply With Quote
  #129  
Old 05-14-2007, 04:23 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems this hack has some issues with the new 3.6.6, since they made some changes to class_bbcode.

Actually it's a conflict if do_parse() is called directly. The bbcode_parse_complete plugin needs a check before restoring $tag_list. Like this:
PHP Code:
if (!empty($this->bbcode_tag_list) AND (THIS_SCRIPT != 'misc'))
{
    
$this->tag_list $this->bbcode_tag_list;

Otherwise the BB-codes in following posts won't parse because you just successfully emptied $tag_list by jumping to do_parse() and skipping bbcode_parse_start.

Also I figured out why my misc.php?do=bbcode changes weren't working for some people. Just make the plugin change above (as well as the misc.php changes here) and disallowed bb-codes won't show there.
Reply With Quote
  #130  
Old 05-14-2007, 09:08 PM
juan71287 juan71287 is offline
 
Join Date: Dec 2003
Location: New York
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stoebi View Post
It happens only with PHP 5. My workaround (posted in vbhacks-germany, too):

Hook: admin_usergroup_edit

Search for
Code:
    foreach ($custom_bbcodes AS $bbcode)
    {
        print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
    }
Replace with
Code:
if ($custom_bbcodes)
{
    foreach ($custom_bbcodes AS $bbcode)
    {
        print_yes_no_row("[" . strtolower($bbcode) . "]", "abe1_bbcode[non_core][$bbcode]", $abe1_bbcode[non_core][$bbcode]);
    }
}

Hook: bbcode_parse_start

Search for
Code:
            foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
            {
                if ($yesno == 0)
                {
                    unset($this->tag_list['no_option']["$bbcode"]);
                    unset($this->tag_list['option']["$bbcode"]);
                }
            }
Replace with
Code:
        if ($abe1_bbcode[non_core])
        {
            foreach ($abe1_bbcode[non_core] AS $bbcode => $yesno)
            {
                if ($yesno == 0)
                {
                    unset($this->tag_list['no_option']["$bbcode"]);
                    unset($this->tag_list['option']["$bbcode"]);
                }
            }
        }

Regards, Stoebi
Worked like a charm, thanks.
Reply With Quote
  #131  
Old 06-07-2007, 09:35 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this doesn't work on vBulletin 3.6.7PL1 foreach() errors in the admincp
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 12:50 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.05230 seconds
  • Memory Usage 2,355KB
  • 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
  • (4)bbcode_code
  • (1)bbcode_php
  • (5)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