• 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
    • Feature
    • bb code to accept custom css classes defined in stylesheet

    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: bb code to accept custom css classes defined in stylesheet

    • Issue Tools
      • View Changes
    1. issueid=2492 October 15, 2011 7:15 AM
      Lord Doys Lord Doys is offline
      Junior Member
      bb code to accept custom css classes defined in stylesheet

      I noticed when fixing my templates that all class attributes are being ignored.. span, table, divs etc..

      Digging a little deeper i noticed that the bb_cleaner only accepts certain classes.

      i would like to add the class atribute with my own definitions to any bb code instead of needing to redifine every single tag with inline styles
    Issue Details
    Issue Number 2492
    Issue Type Feature
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Public Release
    Priority 3 - Loss of Functionality
    Suggested Version 3.0.14
    Implemented Version (none)
    Milestone (none)
    Software DependencyAny
    Votes for this feature 0
    Votes against this feature 0
    Attachments 0
    Assigned Users (none)
    Tags editor, Style




    1. October 15, 2011 10:45 AM
      Lord Doys Lord Doys is offline
      Junior Member
      i "fixed" this by removing the $parser->cleaner->accept_attributes from the special_bbcode_divspan function

      it now reads:

      Code:
      function special_bbcode_divspan(&$parser, $value)
      {
      	$innards = explode('|', $value, 2);
      	$tag = strtolower($parser->current_tag['name']);
      	$class = array('vw-' . $tag);
      
      	if ($innards[1])
      	{
      		
      
      		$attributes = $innards[0];
      
      		if ($attributes != " class=\"vw-$tag\"")
      		{
      			$value = $innards[1];
      		}
      	}
      	else
      	{
      		$attributes = " class=\"vw-$tag\"";
      	}
      
      	return "<!-- VAULT $tag --><{$tag}{$attributes}>$value</{$tag}><!-- VAULT $tag -->";
      }
      i might do the same for tables, but i am trying to get rid of ALL tables and replacing them by the GRID 960 system (fluid) for better scalability on various devices
      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 4:39 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.