/[drupal]/contributions/modules/advogato_import/README.txt
ViewVC logotype

Contents of /contributions/modules/advogato_import/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Tue Jul 29 15:02:09 2008 UTC (16 months ago) by deekayen
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
Changes since 1.4: +4 -5 lines
File MIME type: text/plain
finish Drupal 5.x support
1 This module imports Advogato diary entries to a Drupal website
2 during cron runs with the cron.php file in the root directory.
3
4 You must configure the administrative settings before users can queue
5 diary entries to be imported.
6
7 Each cron run is set at a low default number because sometimes Advogato
8 can be bogged down and will cause cron runs to timeout. Since Drupal
9 doesn't really support MySQL transactional DB types, timing out can be
10 a bad thing for keeping track of what has been imported and not.
11
12 INSTALLATION
13 1. put the advogato_import directory to your modules directory
14 2. activate the module at "Administer > Site Building > Modules"
15 3. configure the module at "Administer > Site configuration > Advogato import"
16 4. users can then queue node imports in "My account > advogato_import"
17
18 AUTHOR
19 David Kent Norman
20 http://deekayen.net/
21
22 ADDITIONAL NOTES
23 I created this script for a one-time run of importing my own diary.
24 I don't intend to provide any more development on this module,
25 so if you're a developer itching to make a change, go ahead.
26
27 To delete the entries from Advogato after you import them, I copied
28 Drupal's xmlrpc.php file, put the following to the top it, and ran it
29 at a command prompt with `php -q xmlrpc.php`. It is not implemented
30 in the automated part of this module because of the obvious data
31 destruction if something goes wrong.
32
33 ===========================================================
34
35 <?php
36 set_time_limit(0);
37 $username = 'your_username';
38 $password = 'my_password';
39 $len = (int)xmlrpc('http://www.advogato.org/XMLRPC', 'diary.len', $username);
40 $cookie = xmlrpc('http://www.advogato.org/XMLRPC', 'authenticate', $username, $password);
41 for ($i = 0; $i <= $len; $i++) {
42 echo xmlrpc('http://www.advogato.org/XMLRPC', 'diary.set', $cookie, $i, ' ');
43 }

  ViewVC Help
Powered by ViewVC 1.1.2