2021-12-14 18:32:47 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2019-08-07 19:53:59 +00:00
|
|
|
|
2023-01-10 22:44:09 +00:00
|
|
|
namespace Shimmie2;
|
|
|
|
|
2019-08-07 19:53:59 +00:00
|
|
|
class BulkAddCSVInfo extends ExtensionInfo
|
|
|
|
{
|
|
|
|
public const KEY = "bulk_add_csv";
|
|
|
|
|
2021-03-14 23:43:50 +00:00
|
|
|
public string $key = self::KEY;
|
|
|
|
public string $name = "Bulk Add CSV";
|
|
|
|
public string $url = self::SHIMMIE_URL;
|
|
|
|
public array $authors = ["velocity37"=>"velocity37@gmail.com"];
|
|
|
|
public string $license = self::LICENSE_GPLV2;
|
|
|
|
public string $description = "Bulk add server-side posts with metadata from CSV file";
|
|
|
|
public ?string $documentation =
|
2019-08-07 19:53:59 +00:00
|
|
|
"Modification of \"Bulk Add\" by Shish.<br><br>
|
2020-10-26 15:25:27 +00:00
|
|
|
Adds posts from a CSV with the five following values: <br>
|
2019-08-07 19:53:59 +00:00
|
|
|
\"/path/to/image.jpg\",\"spaced tags\",\"source\",\"rating s/q/e\",\"/path/thumbnail.jpg\" <br>
|
|
|
|
<b>e.g.</b> \"/tmp/cat.png\",\"shish oekaki\",\"shimmie.shishnet.org\",\"s\",\"tmp/custom.jpg\" <br><br>
|
|
|
|
Any value but the first may be omitted, but there must be five values per line.<br>
|
|
|
|
<b>e.g.</b> \"/why/not/try/bulk_add.jpg\",\"\",\"\",\"\",\"\"<br><br>
|
2020-10-26 15:25:27 +00:00
|
|
|
Post thumbnails will be displayed at the AR of the full post. Thumbnails that are
|
2019-08-07 19:53:59 +00:00
|
|
|
normally static (e.g. SWF) will be displayed at the board's max thumbnail size<br><br>
|
2020-10-26 15:25:27 +00:00
|
|
|
Useful for importing tagged posts without having to do database manipulation.<br>
|
|
|
|
<p><b>Note:</b> requires \"Admin Controls\" and optionally \"Post Ratings\" to be enabled<br><br>";
|
2019-08-07 19:53:59 +00:00
|
|
|
}
|