• 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 4.x Series
    • Bug
    • Missing BB Code Buttons

    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: Missing BB Code Buttons

    • Issue Tools
      • View Changes
    1. issueid=5119 June 20, 2017 8:17 PM
      Thanatos Thanatos is offline
      New Member
      Missing BB Code Buttons
      BB Code buttons for VW missing from forums and vice versa

      Xenforo 1.5.x
      VWL 4.0.17 Patch 1 (from Xenforo site)

      So I installed a number of BB Code addons/Imports from the Xenforo site. I am not using the bbcode manager.

      The problem is, the added codes don't seem to appear when adding pages in the wiki. The places for them are there and if I hove my mouse over them, they highlight and I can use them, but the button doesn't physically appear.

      Vice-versa, the BBCode that is supplied by VWL, doesn't seem to appear in the forums. I see the blank spaces for the buttons and they highlight and work, but no actual button.

      mod list:

      Birthday Thread 1.9
      Calendar 6.0
      Change Date 1.7
      CTA Table BB Code 1.1.1
      DragonByte Tech: Shout (Lite) 7.2.0
      Inline Code 1.0.0
      Register Email 3.6
      s9e Media Pack 20170602
      VaultWiki 4.0.17
      VaultWiki Routes 0.0.0
      XenForo Media Gallery 1.1.12
      XenQuotation 1.0.0
      [h] Roll Dice in Threads RC 2
      [KL] Inline Spoiler 2.0.2
    Issue Details
    Issue Number 5119
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.17
    Fixed Version 4.0.19
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypeLite
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 21, 2017 10:16 AM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. In library/vw/XenForo/CodeEventListener.php, find:
      Code:
      case 'vw_stylevar_shadow':
      Before it, add:
      Code:
      			case 'editor':
      				vw_XenForo_ViewPublic_Helper_Editor::setEditorJson($params['editorOptions']);
      				break;
      Reply Reply  
    2. June 21, 2017 10:30 AM
      Thanatos Thanatos is offline
      New Member
      Hi there.

      I tried adding that piece of code and it didn't seem to fix the BB Code editors in either the forums OR the wiki...

      PLUS...

      I started to get the 'please upgrade to the full version of vault wiki' message in threads in the forums, when I went to post a new thread or reply to a thread.

      so I removed that bit of code and...and the message went away.
      Reply Reply  
    3. This petition for a change to Awaiting Feedback was accepted
      June 22, 2017 11:33 AM
      Thanatos Thanatos is offline
      New Member
      I made the requested change again, today. Since yesterday I seemed to be unable to follow directions.

      Code:
      		switch ($templateName)
      		{
      		Case 'editor':
      				vw_XenForo_ViewPublic_Helper_Editor::setEditorJson($params['editorOptions']);
      				break;
      
      		case 'vw_stylevar_shadow':
      				$params = vw_XenForo_Template_Hook_Admin_StyleProperty::vw_stylevar_shadow($params);
      				break;
      And it didn't fix the buttons in the wiki or the forums.

      Plus, it now gives me the Admin-only "Attention Administrative staff" message in all my forum threads. (it does go away if I remove that code)

      did I do something wrong here too?
       
    4. June 22, 2017 1:19 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, your update was a little misleading. I have tried again on a fresh lite installation and have confirmed the following:
      - The file change fixes the buttons for VaultWiki-supplied BB-Codes in both the forum and the wiki.
      - But it does not fix the buttons for non-wiki custom BB-Codes in either the forum or the wiki.

      I am working on the second problem now.
      Reply Reply  
    5. June 22, 2017 1:35 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/model/tag/vw.php, find:
      Code:
      	public function check_field($tag, $fieldname)
      	{
      After it, add:
      Code:
      			$reverse = array(
      				'nonwiki_editor' => 1,
      				'wiki_editor' => 1,
      				'nonwiki_faq' => 1,
      				'wiki_parse' => 1,
      				'nonwiki_parse' => 1
      			);
      
      			if (isset($reverse["$fieldname"]))
      			{
      				$boolean = false;
      			}
      			else
      			{
      				$boolean = true;
      			}
      
      			$this->bbcode_cache();
      			$tag = strtolower($tag);
      
      			if (isset($this->bbcodecache["$tag"]) AND ($this->bbcodecache["$tag"]['vw_options'] & vw_Hard_Core::model('Bitfield')->get_bit('misc', 'vw_tag_options', $fieldname)))
      			{
      				return $boolean;
      			}
      
      			return !$boolean;
      Reply Reply  
    6. June 22, 2017 1:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      This issue will be fixed in 4.0.19.
      Reply Reply  
    7. June 22, 2017 3:36 PM
      Thanatos Thanatos is offline
      New Member
      Sorry, i tried to describe as I best knew how. If there is a next time, I'll start posting screenshots of invite you over to the forum to see LOL

      Okay, so I entered the 2nd code snipped and the problem is resolved as far as the BBCode buttons. They all appear correctly now, in the forums (for the wiki buttons) and in the wiki (for the custom forum buttons)


      Since the 1st snippet of code you gave me in this thread caused the second problem (with the Administrative Staff message appearing in forum threads) ...is that code still necessary for the button fix? Sorry if that is a stupid question.

      thank you for all your help and assistance in fixing these things (just so you understand it really is appreciated)
      Reply Reply  
    8. This petition for a change to Awaiting Feedback was rejected
      June 25, 2017 10:09 AM
      Thanatos Thanatos is offline
      New Member
      any luck on solving the second part of the problem?

      (re: the administrative message VW gives you for using a lite version of the software on every thread in the forums)
       
    9. June 25, 2017 11:08 AM
      pegasus pegasus is offline
      VaultWiki Team
      That issue will be resolved in 4.0.19.
      Reply Reply  
    10. June 26, 2017 1:05 PM
      Thanatos Thanatos is offline
      New Member
      Ohh okay, I just thought you meant the other part, not the second.

      thanks!
      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 5:21 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 © 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.