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)

Tulsa 04-18-2007 04:27 PM

Quote:

Originally Posted by johnstires (Post 1170050)
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?

thincom2000 04-18-2007 09:20 PM

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.

Makc666 04-19-2007 01:33 PM

Quote:

Originally Posted by Abe1 (Post 1230346)
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".

thincom2000 04-19-2007 04:19 PM

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.

feldon23 04-25-2007 08:15 PM

Quote:

Originally Posted by Abe1 (Post 1201828)
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.

mhmd1983 04-28-2007 08:26 PM

Installed , very nice hack man

princeedward 05-08-2007 08:50 AM

installed...thanks for this good hack... ;)

thincom2000 05-14-2007 04:23 AM

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.

juan71287 05-14-2007 09:08 PM

Quote:

Originally Posted by Stoebi (Post 1064727)
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.

Delphiprogrammi 06-07-2007 09:35 AM

this doesn't work on vBulletin 3.6.7PL1 foreach() errors in the admincp


All times are GMT. The time now is 06:41 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.01342 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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