1 | |
---|
2 | // liq's feed syndication mod v1.1 |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | //installation: |
---|
7 | |
---|
8 | 1. put all the files in your /common directory. |
---|
9 | |
---|
10 | 2. add the following line to admin_menu.php: |
---|
11 | $menubox->addOption( "Feeds", "?a=admin_feed" ); |
---|
12 | |
---|
13 | 3. youre done. |
---|
14 | |
---|
15 | |
---|
16 | //files |
---|
17 | |
---|
18 | feed.php <- prints out all kills of the actual week in rss format. |
---|
19 | |
---|
20 | feed_fetcher.php <- contains the actual xml parser class. |
---|
21 | |
---|
22 | admin_feed.php <- is the interface to feed_fetcher.php. lets you define feeds of other killboards and import kills. |
---|
23 | |
---|
24 | |
---|
25 | //notes |
---|
26 | |
---|
27 | -> enter feed urls in the format 'http://killboard.eve-d2.com/?a=feed' into the admin interface. |
---|
28 | click 'save' to save your changes before you 'fetch' new kills. |
---|
29 | |
---|
30 | -> clicking the 'fetch' button will get all kills of the actual week. |
---|
31 | |
---|
32 | -> ticking the 'grab-ALL-mails-box' will grab ALL kills! be careful with this option! |
---|
33 | ** it can take several minutes or even hours to have all the kills parsed and added to your database ** |
---|
34 | ** be patient. don't close your browser, don't reload. you only need to use this ONCE in a lifetime ** |
---|
35 | |
---|
36 | |
---|
37 | //changes |
---|
38 | |
---|
39 | //v1.1 |
---|
40 | |
---|
41 | feed.php: |
---|
42 | - now lets you also grab losses, not only kills. |
---|
43 | - will give out only the kills where the request-board-owner (corp or alliance) is victim, |
---|
44 | or in case of losses, the involved. this should speed things up significantly. |
---|
45 | - included a check for Last_Kill_ID so it starts to output kill data only after |
---|
46 | that ID to remove redundancy when fetching a feed more than once. |
---|
47 | |
---|
48 | feed_fetcher.php: |
---|
49 | - included getConfig and setConfig call functions to guarantee backwards compatiblity with older killboard version that miss those functions. |
---|
50 | - included calls to the killboards comment function so you can add predefined comments to autoparsed kills aka. "post your losses noob". |
---|
51 | |
---|
52 | admin_feed.php |
---|
53 | - made the number of feeds user selectable |
---|
54 | - more detailed descriptions |
---|
55 | - option for verbose mode (lets you show/hide errormessages from imported killmails) |
---|
56 | - option to automatically enter a comment with the autoparsed kill |
---|
57 | - option to get kills instead of losses |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | cheers |
---|
62 | //liquidism |
---|