• 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
    • Tables not working when VW is enabled.

    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: Tables not working when VW is enabled.

    • Issue Tools
      • View Changes
    1. issueid=2373 June 23, 2011 6:03 PM
      Trekkan Trekkan is offline
      Junior Member
      Tables not working when VW is enabled.

      I just upgraded to vb 4.1.4 (and latest VW) and the tables don't seem to be working. When I disable vault wiki, they work as expected. I can insert the table just fine, but when I either save or preview the post, the table and other related BBCODE tags are removed and the text is blown away that was in them. If I disable VW, things magically work, including posts that didn't work before.
    Issue Details
    Issue Number 2373
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Text Editor (WYSIWYG, etc)
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 3.0.12
    Fixed Version 3.0.12
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 23, 2011 6:18 PM
      pegasus pegasus is offline
      VaultWiki Team
      In AdminCP > VaultWiki > Wiki Code Manager > Table, what settings do you have?

      Also it would be nice if you could take a screenshot of what you mean by "blown away". I'm not having issues using VW's table BB-Code here.
      Reply Reply  
    2. June 23, 2011 6:22 PM
      Trekkan Trekkan is offline
      Junior Member
      Quote Originally Posted by pegasus
      In AdminCP > VaultWiki > Wiki Code Manager > Table, what settings do you have?

      Also it would be nice if you could take a screenshot of what you mean by "blow away". I'm not having issues using VW's table BB-Code here.
      Right now, I don't have any table, td or tr settings in the VW Code manager. Which is probably the issue, but I don't know what I should put there. This is not really a bug I don't think, but more of something that's gotten screwed up in my installation over time, I just didn't know how else to report the issue. =)

      By blow away, I mean, I could make a table like this:

      Start Table
      <table class="wysiwyg_dashes"><tbody><tr class="wysiwyg_dashes_tr"><td class="wysiwyg_dashes_td">1</td><td class="wysiwyg_dashes_td">
      </td></tr><tr class="wysiwyg_dashes_tr"><td class="wysiwyg_dashes_td">
      </td><td class="wysiwyg_dashes_td">2</td></tr><tr class="wysiwyg_dashes_tr"><td class="wysiwyg_dashes_td">3</td><td class="wysiwyg_dashes_td">
      </td></tr></tbody></table>End table

      But when I preview or save, it's just this:

      Start Table
      End Table

      *EDIT*

      Oddly enough, when I just saved, you can see it spit out HTML code instead of the tables correctly here...
      Reply Reply  
    3. June 23, 2011 7:16 PM
      pegasus pegasus is offline
      VaultWiki Team
      Yes, spitting out the HTML seems to be a bug in the vBulletin Project Tools mod. It doesn't do it in the regular forums here. As I'm supposed to be a developer on Project Tools as well, it seems I have my work cut out for me tonight...

      For now, to post the table code on this site, wrap it in CODE tags, and don't use the WYSIWYG editor mode.
      Reply Reply  
    4. June 23, 2011 8:11 PM
      Trekkan Trekkan is offline
      Junior Member
      Hmm, am I supposed to have some BB Code for TABLE, TD and TR tags? Because I don't, so maybe that's it? The reason I was using the WYSIWYG mode is that's what I was using to create the tables in. But lemme do it on my site, then paste it here.

      This is how it looks when viewing it in "source" mode, which is fine.
      Code:
      Start Table
      [TABLE][TR][TD]1[/TD][TD]2[/TD][/TR][TR][TD]3[/TD][TD]4[/TD][/TR][TR][TD]5[/TD][TD]6[/TD][/TR][/TABLE]End Table
      When I click Preview, save or even back to WYSIWYG mode, This is what it looks like:

      Code:
      Start Table
      End Table
      That's what in the preview window, but the editor window still has the BBCODE correctly listed as above.

      Now if I go back to WYSIWYG, it looks like the stuff in the second code tags again, just the "start table End Table", with nothing in between. If I click source again, the BBCODE is in fact completely gone and the only things left are "Start Table End Table".

      Hopefully that helps. If you'd like, I can also give you access to my forums to test, let me know.

      Thanks for looking into this!
      Reply Reply  
    5. June 24, 2011 1:20 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. In vault/class/bbcode/ckeditor.php, find:
      Code:
      $yesno = (!($bbcode['wikioptions'] & $vault->misc['tagoptions']["$parser_rules"]));
      Replace with:
      Code:
      $yesno = (!($bbcode['wikioptions'] & $vault->misc['wikioptions']["$parser_rules"]));
      Reply Reply  
    6. June 24, 2011 2:14 PM
      Trekkan Trekkan is offline
      Junior Member
      I made the changes, but there is no change on the issue I reported. The same thing is still happening for tables in forum posts as well as wiki articles.
      Reply Reply  
    7. June 24, 2011 2:28 PM
      pegasus pegasus is offline
      VaultWiki Team
      I was able to duplicate the WYSIWYG issue on a test site, and this change fixed it for new posts. The table is no longer "blown away".

      I'm not sure about existing posts, if the table code was saved incorrectly it might be necessary to recreate the table.
      Reply Reply  
    8. June 24, 2011 2:33 PM
      Trekkan Trekkan is offline
      Junior Member
      I dunno, still not working for me, I tried to make a new post, reply to a post, new article, comment on an article, all do the same as originally described. I can give you a forum login if you'd like to see things for yourself?
      Reply Reply  
    9. June 24, 2011 2:34 PM
      pegasus pegasus is offline
      VaultWiki Team
      I would also need FTP login to fix this, as it's no longer happening as described on my test. Please send as a PM.
      Reply Reply  
    10. June 24, 2011 2:46 PM
      Trekkan Trekkan is offline
      Junior Member
      Info sent, thanks!
      Reply Reply  
    11. June 24, 2011 3:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      This occurred because you have deleted the TABLE BB-Code from the custom BB-Code manager, rather than disabling it in Wiki Code Manager. VaultWiki expects it to exist since it put it there. Anyway, I have updated the code so that if it doesn't exist, it treats it as disabled.
      Reply Reply  
    12. June 24, 2011 7:42 PM
      Trekkan Trekkan is offline
      Junior Member
      Ok, makes sense, it's been so long I had no idea what did what when...

      So since it's gone, how do I get it back? Is there a way to regenerate it? If not, can you send me the info I need in order to rebuild them manually?
      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 12:46 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 © 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.