• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • [TABLE] conflict with BB Code Table

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: [TABLE] conflict with BB Code Table

    • Issue Tools
      • View Changes
    1. issueid=242 September 15, 2008 11:09 AM
      miyuki miyuki is offline
      New Member
      [TABLE] conflict with BB Code Table

      I was using BB Code Table before installing VaultWiki, but I had to uninstall it because of a conflict with the BB Code Table from VaultWiki.

      Now, I have a funtionnal Table BB Code in the Wiki, but it doesn't work elsewhere in the forum (in regular thread).

      Is it possible to make your BB Code Table functionnal everywhere, in the forum and the wiki ?

      Thanks,
    Issue Details
    Issue Number 242
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Not a Bug
    Priority 3 - Loss of Functionality
    Affected Version 2.0.4
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 15, 2008 6:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      Your old Table Code should have worked normally in non-wiki posts. Was this not the case?
      Reply Reply  
    2. September 16, 2008 3:25 AM
      miyuki miyuki is offline
      New Member
      I confirm it was not the case.
      Reply Reply  
    3. September 16, 2008 8:02 AM
      pegasus pegasus is offline
      VaultWiki Team
      According to the plugin code, it looks to me like your old Table Code would have overridden VaultWiki's code, which was what we intended (provided the other table code had been written a certain way, and it was) and not really a conflict.

      However, in order to extend our table code to the entire forum, you would have to create the following plugins:

      Hook location: bbcode_fetch_tags
      PHP Code:
      if (!function_exists('handle_bbcode_table'))
      {
          function 
      handle_bbcode_table($value)
          {
              require_once(
      DIR . '/vault/special_class_table.php');
              
      $table = new vB_TableCodeParser($this);

              return 
      $table->parse($value) . "\n";
          }
      } 
      Hook location: bbcode_create
      PHP Code:
      // [TABLE]
      $this->tag_list['no_option']['table'] = array(
          
      'callback'            => 'handle_external',
          
      'external_callback'    => 'handle_bbcode_table',
          
      'strip_empty'        => false,
          
      'strip_space_after'    => 10
      ); 
      Reply Reply  
    4. September 16, 2008 1:00 PM
      miyuki miyuki is offline
      New Member
      I get an error message when doing this :
      Code:
      Fatal error: Cannot redeclare handle_bbcode_table()
      Reply Reply  
    5. September 16, 2008 1:18 PM
      pegasus pegasus is offline
      VaultWiki Team
      My mistake. Updated the bbcode_fetch_tags code above.
      Reply Reply  
    6. September 17, 2008 4:37 AM
      miyuki miyuki is offline
      New Member
      I get another error message :
      Code:
      Fatal error: Call to undefined method vB_BbCodeParser::handle_bbcode_table()
      Did I miss something ?
      Reply Reply  
    7. September 17, 2008 1:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      And now you'll notice I updated the bbcode_create plugin.
      Reply Reply  
    8. September 17, 2008 2:02 PM
      miyuki miyuki is offline
      New Member
      This time, I get no errors, but when I try creating a table in the forum, nothing appears... and when I try to edit the message, everything inside the table balises has disappeared, including the balise... I'm confused ???
      Reply Reply  
    9. September 17, 2008 3:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      Link please. Also, are you using the Standard or WYSIWYG editor?
      Reply Reply  
    10. September 18, 2008 3:53 AM
      miyuki miyuki is offline
      New Member
      You can create an account on my forum (www.wild-guilde.eu) and try the table BB-Code in any accessible section.

      By default, the WYSIWYG editor is used.

      Thanks for your help !
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 11:46 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.