RE: [Phpslash-devel] story import
Brought to you by:
joestewart,
nhruby
From: Luis M <le...@ho...> - 2004-10-05 13:49:58
|
>I'm running the latest version of slash and am trying to import stories >from another system into it. >I can pull stories no problem, but if I just insert them into >psl_stories everything breaks. What's the proper way for me to do this? > >-- >Matt "TrollBoy" Wiseman You might have to check the form for creating new stories and see what fields are required for every story. Then write you own script that use the addstory() call from the classes ;-) Joe can correct me on this, but there are many variables that need to be set/modified/increased when a new story is added. So, instead of trying to write to the db directly, you are better off trying to use a PHP script (from the command line maybe) that does this for you using the existing API. ----)(----- Luis Mondesi System Administrator LatinoMixed.com "We think basically you watch television to turn your brain off, and you work on your computer when you want to turn your brain on" -- Steve Jobs in an interview for MacWorld Magazine 2004-Feb No .doc: http://www.fsf.org/philosophy/no-word-attachments.es.html |