Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #32  
Old 08-30-2006, 12:24 AM
johnstires johnstires is offline
 
Join Date: Mar 2006
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How difficult would it be to restrict this hack on a per forum basis. I would like to restrict BBcode but only in certain forums.

I also have a question about restricting IMG tags. how else does one control this on a usergroup level.

Willing to pay for the enhancement:

https://vborg.vbsupport.ru/showthrea...81#post1063781
Reply With Quote
  #33  
Old 08-30-2006, 05:03 AM
bhxtyrant bhxtyrant is offline
 
Join Date: Jun 2005
Posts: 205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
You can't install this on a vb3.5 forum. I attached a file that you can. I'm not officaly releasing it though.
Hey abe,Sorry for the bother but i have 3.5.4 installed if i read the post correct then the file in this attachment is made to work with 3.5.4?If so there seems to be a problem because i get a database error that was posted on the first page of this thread after uninstalling the old version and installing the version in your post.
Reply With Quote
  #34  
Old 08-31-2006, 02:15 AM
tekstylez tekstylez is offline
 
Join Date: Aug 2006
Location: Philly
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1
I would need access to you ACP to find the problem.
Abe... I will send a PM with login info...
Reply With Quote
  #35  
Old 08-31-2006, 03:40 AM
G_Man G_Man is offline
 
Join Date: Feb 2006
Location: Washington State
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant.

thanks.
Reply With Quote
  #36  
Old 08-31-2006, 09:15 AM
Stoebi Stoebi is offline
 
Join Date: Apr 2006
Location: Germany, Berlin
Posts: 331
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Code:
Warning: Invalid argument supplied for foreach() in /admincp/usergroup.php(181) : eval()'d code on line 30
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
Reply With Quote
  #37  
Old 09-05-2006, 02:36 AM
G_Man G_Man is offline
 
Join Date: Feb 2006
Location: Washington State
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know if you would want to alter this hack any, but....

What would have been MUCH nicer for me is that the default be 'yes' instead of 'no'. Took me like 20 minutes to go through each Usergroup and turn ON all but two of the BBcodes...

Would have been great to just turn off those two codes for most of my groups.

Just a thought - again, brilliant hack. Cheers.
Reply With Quote
  #38  
Old 09-09-2006, 01:39 AM
seg seg is offline
 
Join Date: Apr 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you much - this solved my problem!


Quote:
Originally Posted by Stoebi
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
Reply With Quote
  #39  
Old 09-15-2006, 01:08 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So there is no chance getting a 3.5 version huh
Reply With Quote
  #40  
Old 10-02-2006, 06:41 PM
TCB's Avatar
TCB TCB is offline
 
Join Date: Jun 2004
Location: the Netherlands
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wonderfull mod..... thanks a lot
Reply With Quote
  #41  
Old 10-03-2006, 01:59 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Abe

Install
Reply With Quote
Reply

Thread Tools

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 06:14 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.05641 seconds
  • Memory Usage 2,350KB
  • Queries Executed 29 (?)
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_code
  • (4)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
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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