• 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
    • How to disable various bb codes in wiki forums?

    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 4 of 4

    Thread: How to disable various bb codes in wiki forums?

    • Thread Tools
      • Show Printable Version
    1. January 13, 2011 #1
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      584
      Rep Power
      257

      How to disable various bb codes in wiki forums?

      My members are overusing [size] [I] [color] [U] in wiki articles to such a degree that its causing unwanted effects and errors. Looking at an article's source, exposes a sea of code. And Vaultwiki is reacting adversely to this.
      I want to turn these bb codes off in wiki forums. How can I do this?
      Reply With Quote Reply With Quote

    2. January 14, 2011 #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,934
      Blog Entries
      18
      Rep Power
      659
      With VaultWiki's tools, it's only possible to disable custom BB-Codes, not any of the ones that are included with vBulletin.

      What you can do instead is disable the WYSIWYG editor in wiki forums. To do this, you need to create a plugin.

      Hook location: editor_wysiwyg_compatible
      Code:
      if (
      	$choice == 2 AND
      	$GLOBALS['vault']->fetch_instance('field') AND
      	$GLOBALS['vault']->field->fetch_namespaceid($GLOBALS['foruminfo']['forumid']) > 0
      	!isset($_REQUEST['wysiwyg'])
      )
      {
      	$choice = 1;
      }
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. January 14, 2011 #3
      Alfa1
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Alfa1 is offline
      Distinguished Member
      Join Date
      September 26, 2007
      Posts
      584
      Rep Power
      257
      Disabling the WYSIWYG editor is not optimal either.

      Is it possible to make the editor mode start in the mode to show all bb code in the text?
      Reply With Quote Reply With Quote

    4. January 14, 2011 #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,934
      Blog Entries
      18
      Rep Power
      659
      Okay I modified the code above so that it should do what you want. Start on standard editor controls, but allow the user to switch the WYSIWYG if they really want to.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Can we disable the Area tab?
      By Alfa1 in forum VaultWiki Questions
      Replies: 4
      Last Post: February 24, 2016, 4:15 PM
    2. How to disable tags?
      By Alfa1 in forum VaultWiki Questions
      Replies: 1
      Last Post: January 3, 2016, 1:41 PM
    3. Any way to disable numbers in TOC?
      By DragonSigh in forum VaultWiki Questions
      Replies: 1
      Last Post: June 2, 2013, 9:54 PM
    4. Can I make only few forums to work like wiki?
      By vinku in forum Pre-Sales Questions
      Replies: 1
      Last Post: December 20, 2011, 3:01 PM
    5. Forums at /forums but Wiki at /wiki ?
      By Kaelon in forum VaultWiki Questions
      Replies: 4
      Last Post: April 2, 2010, 12:37 PM

    Tags for this Thread

    are, articles, can, code, codes, color, disable, effects, errors, forums, how, how to, its, members, off, sea, size, ted, that, this, turn, various, vaultwiki, wanted, wiki

    View Tag Cloud

    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 4:26 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.