vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to create a article via API / auto-create of articles (https://vborg.vbsupport.ru/showthread.php?t=244747)

leitel 11-13-2010 12:30 PM

Gotta run now but this is what I have to start the ball rolling:

PHP Code:

    $taglist 'tag1, tag2, tag3';
    if (
$taglist)
    {
        require_once 
DIR '/includes/class_taggablecontent.php';
        
$taggable vB_Taggable_Content_Item::create(vB::$vbulletin,
            
vB_Types::instance()->getContentTypeID("vBCms_Article"),
            
$nodedm->getField('contentid'));
        
$taggable->add_tags_to_content($taglist, array('content_limit' => 25));
    } 

Later I will hammer on it further.

leitel 11-21-2010 06:08 PM

Just an update. I am making great progress on this project. I'm finding it increasingly productive to add the articles directly to the database. I would prefer a clean API however with great care, pushing new articles DIRECTLY to vB is sweat!
I wonder if other sites would have interest in bulk importing of articles in to vBCMS?

Adan0s 11-21-2010 06:32 PM

AFAIK there isn't even an API planned. vB4 is just a joke. :/ The only API they are currently implementing is the Mobile-API. Which they demand money for.

Are there additional features you've added in? I'm searching for methods/functions to add attachments from the filesystem right into the article and replace the old links. At least that's some kind of wish. :)

leitel 11-22-2010 01:18 AM

Adan0s, feel free to Skype me at larryeitel. I would be happy to discuss. Sorry I don't use ICQ, etc.


All times are GMT. The time now is 12:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01900 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete