• 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 add new articles via script

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

    Thread: How to add new articles via script

    • Thread Tools
      • Show Printable Version
    1. June 4, 2010 #1
      Sebi
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Sebi is offline
      Junior Member
      Join Date
      August 18, 2009
      Posts
      5
      Rep Power
      0

      How to add new articles via script

      We are trying to import a couple of external articles into VaultWiki articles via script. Using the code snippet (http://www.vbulletin.org/forum/showthread.php?t=229654) to add new threads to the vB - with works fine with normal threads - an article is created, the title is shown correct, but the article contains no text.

      Is there an(other) easy solution to add articles to the wiki via script by boardid, userid, title and text ?

      (We are using VaultWiki 2.5.x)

      Thanks,
      Sebi
      Reply With Quote Reply With Quote

    2. June 4, 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
      I believe you also need to do the following:
      Code:
      global $threadinfo, $postinfo;
      
      $threadinfo = fetch_threadinfo($threadid);
      $post = fetch_postinfo($threadinfo['firstpostid']);
      
      require_once(DIR . '/vault/special_plugins_newpost.php');
      special_newpost_complete($post);
      This code would be different in VaultWiki 3. The referenced file path is changed.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. June 4, 2010 #3
      Sebi
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Sebi is offline
      Junior Member
      Join Date
      August 18, 2009
      Posts
      5
      Rep Power
      0
      Thanks, a first quick test looks good, i will proof it later in the evening.
      Reply With Quote Reply With Quote

    Similar Threads

    1. Possible to Turn Blog Posts or Articles into Wiki articles?
      By theflatline in forum VaultWiki Questions
      Replies: 1
      Last Post: August 9, 2010, 11:59 AM
    2. Script name for wiki page?
      By iphoneclub in forum VaultWiki Questions
      Replies: 2
      Last Post: May 8, 2010, 8:25 PM
    3. I purchased where do I download script now?
      By izm in forum VaultWiki Questions
      Replies: 4
      Last Post: September 23, 2009, 11:59 AM
    4. YUI script not found errors
      By mickknutson in forum VaultWiki Questions
      Replies: 3
      Last Post: June 13, 2009, 1:32 PM

    Tags for this Thread

    add, also, articles, code, couple, created, different, easy, first, forum, here, how to, import, into, looks, new, other, quick, script, show, shown, showthread, solution, text, the, there, threads, title, url, using, vaultwiki, vbulletin, via, wiki, with, works, would

    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 3:08 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.