• 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
    • Convert Legacy Code to BB-Code

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

    Thread: Convert Legacy Code to BB-Code

    • Thread Tools
      • Show Printable Version
    1. July 30, 2010 #1
      Rik Brown
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Rik Brown is offline
      Junior Member
      Join Date
      July 26, 2010
      Posts
      10
      Rep Power
      0

      Convert Legacy Code to BB-Code

      New user running VW 3.0.2.

      I just imported my prior Mediawiki content. I'm now trying to convert the articles (about 500) via:
      Wiki Maintenance Tools -> Convert Legacy Code to BB-Code.

      However, after clicking on the Convert Articles button, only the first article starts processing. I just get a white screen showing "Processing: 3187333" and the script seems to hang there.

      Any suggestions?

      Thanks. -- Rik
      Reply With Quote Reply With Quote

    2. July 30, 2010 #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
      Please first see this report: http://www.vaultwiki.org/issues/1877/

      If that doesn't work, do you have any errors in your log files?

      Try visiting yoursite/showthread.php?p=3187333, save the raw contents of the article in a text file and attach them to your post here.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. July 30, 2010 #3
      Rik Brown
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Rik Brown is offline
      Junior Member
      Join Date
      July 26, 2010
      Posts
      10
      Rep Power
      0
      Attached is the raw text of the first post indicated above.

      I'm not sure which log file in which you might be interested. Is there a wiki.log?

      Regards. -- Rik
      Attached Files Attached Files
      • File Type: txt wiki-content.txt (4.7 KB, 0 views)
      Reply With Quote Reply With Quote

    4. July 30, 2010 #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
      So the fix in the report didn't seem to work for you?
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. July 30, 2010 #5
      Rik Brown
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Rik Brown is offline
      Junior Member
      Join Date
      July 26, 2010
      Posts
      10
      Rep Power
      0
      Sorry, yes, the fix has worked (I made a mistake) and the articles are now processed. The only problem remaining regarding this issue is that the codes linking to images or templates are not working so look like this on the displayed pages:

      {{City_Large|location=San Antonio, Texas}}

      300px|thumb

      -- Rik
      Reply With Quote Reply With Quote

    6. July 30, 2010 #6
      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
      You created a Template namespace in VaultWiki BEFORE converting right?
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. July 31, 2010 #7
      Rik Brown
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Rik Brown is offline
      Junior Member
      Join Date
      July 26, 2010
      Posts
      10
      Rep Power
      0
      Quote Originally Posted by pegasus View Post
      You created a Template namespace in VaultWiki BEFORE converting right?
      I guess I missed that step. So I started over from a new install while creating the Template namespace this time around and re-importing from Mediawiki plus, rebuild all of the namespaces, and Convert Legacy Code to BB-Code.

      Here is what I'm getting now:

      Template:city_large
      300px|thumb

      So its recognizing the template but not displaying it yet. Also, no images are being displayed (I do have the Image namespace). So I'm making progress. Could I be missing something else?

      Thanks again. -- Rik
      Reply With Quote Reply With Quote

    8. August 3, 2010 #8
      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
      There is a problem where if there are too many spaces in the source where you include the template, the template will be rendered as a link. To fix, edit vault/class/bbcode.php. Find:
      Code:
      			$args = $this->strip_front_back_whitespace(substr($text, $parampos + 1, strlen($text) - $parampos - 1), 1);
      		}
      
      		$vault->fetch_instance('string');
      		$templatename = $this->strip_front_back_whitespace($vault->string->substr($text, 0, $parampos), 1);
      		$templatelow = $vault->string->tolower($templatename);
      Replace with:
      Code:
      			$args = trim($this->strip_front_back_whitespace(substr($text, $parampos + 1, strlen($text) - $parampos - 1), 10));
      		}
      
      		$vault->fetch_instance('string');
      		$vault->fetch_instance('encode');
      
      		$templatename = $this->strip_front_back_whitespace($vault->string->substr($text, 0, $parampos), 10);
      		$templatelow = $vault->string->tolower($vault->encode->encode($templatename, TEMPLATE_SPACE));
      In vault/class/bbcode/template.php, find:
      Code:
      				$vault->url->affix_prefix($fetch);
      
      				$fetch['title'] = $vault->string->tolower($fetch['title']);
      Replace with:
      Code:
      				$vault->fetch_instance('encode');
      
      				$vault->url->affix_prefix($fetch);
      
      				$fetch['title'] = $vault->string->tolower($vault->encode->encode($fetch['title'], TEMPLATE_SPACE));
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    9. August 3, 2010 #9
      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
      For the images that aren't being displayed. Take, for example the San_Antonio image mentioned above. What was the original MediaWiki syntax that was used to insert this image?
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. Wiki code buttons
      By catfish_pete in forum VaultWiki Questions
      Replies: 3
      Last Post: July 5, 2011, 4:47 AM
    2. Question about BB Code
      By Jella in forum General Discussion
      Replies: 2
      Last Post: December 26, 2010, 5:58 PM
    3. Comment bb code? What does that do?
      By Alfa1 in forum VaultWiki Questions
      Replies: 6
      Last Post: November 16, 2010, 12:19 PM
    4. bb code for Special
      By mickknutson in forum VaultWiki Questions
      Replies: 4
      Last Post: May 6, 2009, 11:27 AM
    5. Wiki BB-Code not working
      By bockmas in forum VaultWiki Questions
      Replies: 2
      Last Post: January 12, 2009, 1:44 PM

    Tags for this Thread

    333, after, any, aren, articles, before, button, code, content, convert, convert legacy bb-code, could, did, files, first, get, here, legacy, linking, main, maintenance, many, mediawiki, new, only, plus, regarding, right, run, running, screen, script, showing, source, suggestions, sure, that, the, them, there, tools, trying, user, white, worked

    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 6:37 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.