[152] | 1 | ////// |
---|
| 2 | ////// ////// |
---|
[175] | 3 | ////// liq's feed syndication mod v1.5 |
---|
[152] | 4 | //////////// |
---|
| 5 | //////////// |
---|
| 6 | //////////// |
---|
| 7 | //////////// |
---|
[148] | 8 | |
---|
| 9 | |
---|
| 10 | |
---|
[152] | 11 | //INSTALLATION: |
---|
[148] | 12 | |
---|
[175] | 13 | |
---|
| 14 | |
---|
| 15 | ##### --> STANDALONE version: |
---|
| 16 | |
---|
| 17 | |
---|
[170] | 18 | 1. put all files in your /common directory |
---|
| 19 | |
---|
| 20 | 2. add the following line to common/admin_menu.php: |
---|
| 21 | $menubox->addOption( "Feeds", "?a=admin_feed" ); |
---|
[175] | 22 | OR if you use eve-dev kilboard version 1.2.0 and above (using smarty templates): |
---|
[170] | 23 | $menubox->addOption("link", "Feeds", "?a=admin_feed"); |
---|
| 24 | |
---|
| 25 | 3. wee. youre done. |
---|
| 26 | |
---|
| 27 | 4. you can access the feed interface now via the menubox in admin menu |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
[175] | 31 | |
---|
| 32 | ###### --> MOD version: |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | 1. create directory mods/feed_syndication |
---|
| 36 | |
---|
[152] | 37 | 2. put the files settings.php and feed_fetcher.php in /mods/feed_syndication directory. |
---|
[170] | 38 | |
---|
[152] | 39 | 3. put feed.php in your /common directory |
---|
[170] | 40 | |
---|
[152] | 41 | 3. login as admin and enable the feed-mod in 'Mods' |
---|
[170] | 42 | |
---|
[152] | 43 | 4. wee. youre done. |
---|
[148] | 44 | |
---|
[170] | 45 | 5. click 'Settings' in the 'Mods' menu to access the feed interface |
---|
| 46 | |
---|
[175] | 47 | additionally you can add the following line to common/admin_menu.php for faster access: |
---|
| 48 | $menubox->addOption( "Feeds", "?a=settings_feed_syndication" ); |
---|
| 49 | OR if you use eve-dev kilboard version 1.2.0 and above (using smarty templates): |
---|
| 50 | $menubox->addOption("link", "Feeds", "?a=settings_feed_syndication"); |
---|
[148] | 51 | |
---|
| 52 | |
---|
| 53 | |
---|
[152] | 54 | //FILES: |
---|
[148] | 55 | |
---|
| 56 | feed.php <- prints out all kills of the actual week in rss format. |
---|
| 57 | |
---|
| 58 | feed_fetcher.php <- contains the actual xml parser class. |
---|
| 59 | |
---|
| 60 | admin_feed.php <- is the interface to feed_fetcher.php. lets you define feeds of other killboards and import kills. |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | |
---|
[152] | 64 | //NOTES: |
---|
[148] | 65 | |
---|
[152] | 66 | -> enter feed urls in the format: http://killboard.eve-d2.com/?a=feed |
---|
| 67 | |
---|
[175] | 68 | -> if you enter a feed from a friendly corp/alliance have the 'friends' box checked else you will only be able to fetch friendly fire kills |
---|
| 69 | |
---|
[170] | 70 | -> a list of known feeds can be found here: http://myeve.eve-online.com/ingameboard.asp?a=topic&threadID=443506&page=1#2 |
---|
[152] | 71 | |
---|
[170] | 72 | -> your actual week is automatically selected in the first and last week boxes. |
---|
[148] | 73 | |
---|
[170] | 74 | -> clicking the 'fetch' button will by default get all kills of the actual week unless you select a different timeframe. |
---|
[148] | 75 | |
---|
[170] | 76 | -> selecting a timeframe with the first and last week boxes lets the fetcher get all mails of this timeframe. |
---|
| 77 | ** be careful with this option! it can take several minutes or even hours to have all |
---|
| 78 | the kills parsed and added to your database, especially if you select a really long timeframe ** |
---|
| 79 | ** be patient. don't close your browser, don't reload. after doing a full fetch first, weekly updates are totally sufficient to keep your board uptodate ** |
---|
| 80 | |
---|
[152] | 81 | -> by default their kills aka. your losses get fetched unless you tick the 'get kills' |
---|
| 82 | option in which case their losses aka. your kills get fetched |
---|
[148] | 83 | |
---|
[152] | 84 | -> GZip compression is enabled by default because the board automatically |
---|
[175] | 85 | checks and decides if a fetched stream supports GZip compression - if not, it uses regular html/rss output. leave this enabled. |
---|
[148] | 86 | |
---|
[152] | 87 | -> if you are running a master killboard (eg. to supply and share killdata with other killboards) edit settings.php and set 'MASTER' to 1. |
---|
| 88 | the board will then even fetch kills not related to the alliance or corp ID you set in the killboards config.php. |
---|
[170] | 89 | leave this option untouched if youre running a normal killboard for your corp or alliance - it will just slow things down and |
---|
| 90 | wont work for you without modifications to the parser class. |
---|
[152] | 91 | |
---|
[170] | 92 | -> the feed is not supposed to be human readable so ffs dont complain about the formatting. |
---|
[152] | 93 | for human readable rss output use the rss mod ( /?a=rss ) instead. |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | |
---|
[175] | 97 | |
---|
[152] | 98 | //VERSION CHANGES: |
---|
[175] | 99 | //v1.5 |
---|
[152] | 100 | |
---|
[175] | 101 | feed.php: |
---|
| 102 | - no changes |
---|
[170] | 103 | |
---|
[175] | 104 | feed_fetcher.php: |
---|
| 105 | - no changes |
---|
| 106 | |
---|
| 107 | admin_feed.php / settings.php |
---|
| 108 | - added a version check (checks my server for the actual version of the mod and gives you an update link if the versions differ) |
---|
| 109 | - added 'select all/none' boxes for the friends and fetch checkbox rows, pretty handy with large feedlists |
---|
| 110 | - fixed small bug with the timeframe selection options and a html bug |
---|
| 111 | |
---|
| 112 | |
---|
[170] | 113 | //v1.4 |
---|
| 114 | |
---|
| 115 | feed.php: |
---|
| 116 | - added selection of the year to output |
---|
| 117 | - added support for friend<->friend killboard fetching |
---|
| 118 | - minor code cleanups |
---|
| 119 | - other stuff i forgot |
---|
| 120 | |
---|
| 121 | feed_fetcher.php: |
---|
| 122 | - added a fix for the memory exhaustion bug some boards had (check if your php is running in php-safe-mode. if so, disable it) |
---|
| 123 | - improved verbose output |
---|
| 124 | |
---|
| 125 | admin_feed.php / settings.php |
---|
| 126 | - replaced the grab-all switch with an advanced range selection system by week and year |
---|
| 127 | - added support for friend<->friend killboard fetching |
---|
| 128 | - minor code cleanups |
---|
| 129 | - other stuff i forgot |
---|
| 130 | |
---|
| 131 | |
---|
[152] | 132 | //v1.3 |
---|
| 133 | |
---|
| 134 | feed.php: |
---|
| 135 | - added support for GZip compressed output |
---|
| 136 | - minor code cleanups |
---|
| 137 | |
---|
| 138 | feed_fetcher.php: |
---|
| 139 | - converted to a mod |
---|
| 140 | - added support for getting GZip compressed feeds and a fallback if the feed is uncompressed |
---|
| 141 | - changed the text in auto-comment to only show the remote killboards url and not the |
---|
| 142 | complete path with all passed variables, making it more readable |
---|
| 143 | |
---|
| 144 | admin_feed.php / settings.php |
---|
| 145 | - converted to a mod |
---|
| 146 | - renamed to settings.php |
---|
| 147 | - added option to fetch streams with Gzip compression - enabled by default |
---|
| 148 | - added support for master killboards whose only purpose is to collect and share kill data, see notes |
---|
| 149 | |
---|
| 150 | |
---|
| 151 | //v1.2 |
---|
| 152 | |
---|
| 153 | feed.php: |
---|
| 154 | - added output of feed's version number |
---|
| 155 | |
---|
| 156 | feed_fetcher.php: |
---|
| 157 | - none |
---|
| 158 | |
---|
| 159 | admin_feed.php |
---|
| 160 | - rearranged options to be inline with other admin settings pages |
---|
| 161 | - added checkboxes to enable / disable fetching specific feed urls |
---|
| 162 | |
---|
| 163 | |
---|
[148] | 164 | //v1.1 |
---|
| 165 | |
---|
| 166 | feed.php: |
---|
| 167 | - now lets you also grab losses, not only kills. |
---|
| 168 | - will give out only the kills where the request-board-owner (corp or alliance) is victim, |
---|
| 169 | or in case of losses, the involved. this should speed things up significantly. |
---|
| 170 | - included a check for Last_Kill_ID so it starts to output kill data only after |
---|
| 171 | that ID to remove redundancy when fetching a feed more than once. |
---|
| 172 | |
---|
| 173 | feed_fetcher.php: |
---|
| 174 | - included getConfig and setConfig call functions to guarantee backwards compatiblity with older killboard version that miss those functions. |
---|
| 175 | - included calls to the killboards comment function so you can add predefined comments to autoparsed kills aka. "post your losses noob". |
---|
| 176 | |
---|
[152] | 177 | admin_feed.php: |
---|
[148] | 178 | - made the number of feeds user selectable |
---|
| 179 | - more detailed descriptions |
---|
| 180 | - option for verbose mode (lets you show/hide errormessages from imported killmails) |
---|
| 181 | - option to automatically enter a comment with the autoparsed kill |
---|
| 182 | - option to get kills instead of losses |
---|
[152] | 183 | - added backwards compatibility to exi's v1.0 mod |
---|
[148] | 184 | |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | cheers |
---|
| 188 | //liquidism |
---|