• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Where to Configure CSS Class Whitelist?

    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.

    Results 1 to 6 of 6

    Thread: Where to Configure CSS Class Whitelist?

    • Thread Tools
      • Show Printable Version
    1. December 12, 2015 #1
      Gossamer
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Gossamer is offline
      Junior Member
      Join Date
      May 21, 2015
      Posts
      14
      Rep Power
      0

      Where to Configure CSS Class Whitelist?

      The new feature in 4.0.7, Configurable CSS Class Whitelist for TABLE/DIV/SPAN, where can I find that setting?
      Reply With Quote Reply With Quote

    2. December 12, 2015 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      You will edit the custom BB-Code TABLE, DIV, or SPAN using the forum's BB-Code Manager. There will be a separate option on that page for the whitelist.

      I am looking at the changelogs, however, and unfortunately it looks like this field will not save in 4.0.7 under vBulletin. If you use vBulletin and you find yourself unable to save changes to this field, then you will have to wait until the fix is released in 4.0.8 this coming week.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. December 12, 2015 #3
      Gossamer
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Gossamer is offline
      Junior Member
      Join Date
      May 21, 2015
      Posts
      14
      Rep Power
      0
      Is there anything else I have to do to get this working? I'm running XenForo, added tcat to the whitelist for the TABLE bbcode. I resaved the page I'm using that bbcode on, but it's still not adding the class to the table.

      This is my code:
      Code:
      [table]border="1"
      |-
      | class="tcat" | Class
      | class="tcat" | Sub-Class
      | class="tcat" | Example Weapons
      |-
      | rowspan="3" | Bladed Weapons
      | Daggers
      | Dagger, Stiletto, Hunting dagger, Knives
      |-
      [/table]
      Reply With Quote Reply With Quote

    4. December 12, 2015 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      Oh, I understand. The way it was coded, it will only work for classes added to the main TABLE tag, not to individual cells. I will post a solution for you in a moment.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. December 12, 2015 #5
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      687
      In vault/core/model/parser/handle/clean/vw.php, find:
      Code:
      $this->classes["$whitelistable"]["$className"] = 1;
      After it, add:
      Code:
      					if ($whitelistable == 'table')
      					{
      						foreach (array(
      							'tr',
      							'td',
      							'th',
      							'caption'
      						) AS $tablecell)
      						{
      							$this->classes["$tablecell"]["$className"] = 1;
      						}
      					}
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    6. December 13, 2015 #6
      Gossamer
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Gossamer is offline
      Junior Member
      Join Date
      May 21, 2015
      Posts
      14
      Rep Power
      0
      Great, it works now! Thanks!
      Reply With Quote Reply With Quote

    Similar Threads

    1. Giving a table a class?
      By delicateglow in forum VaultWiki Questions
      Replies: 5
      Last Post: April 21, 2015, 10:55 AM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • 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 Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 11:22 AM.
    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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.