From c2ad8322efde3e1284e3810c06bf1cd5a75fed34 Mon Sep 17 00:00:00 2001 From: Daku Date: Mon, 26 Dec 2011 21:29:04 +0000 Subject: [PATCH] fixed downloading flash with bookmarklet + added comments --- ext/upload/theme.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/ext/upload/theme.php b/ext/upload/theme.php index 50895783..bc0991cc 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -27,7 +27,7 @@ class UploadTheme extends Themelet { if($i==0){ $upload_list .= "
" . - "". + "". "
"; }else{ $upload_list .="
@@ -113,15 +113,31 @@ class UploadTheme extends Themelet { { /* Danbooru > Shimmie Bookmarklet. This "should" work on any site running danbooru, unless for some odd reason they switched around the id's or aren't using post/list. + Most likely this will stop working when Danbooru updates to v2, all depends if they switch the ids or not >_>. + Clicking the link on a danbooru image page should give you something along the lines of: + 'http://www.website.com/shimmie/upload?url="http://sonohara.donmai.us/data/crazylongurl.jpg&tags="too many tags"&rating="s"&source="http://danbooru.donmai.us/post/show/012345/"' + TODO: Possibly make the entire/most of the script into a .js file, and just make the bookmarklet load it on click (Something like that?) */ $title = "Danbooru to " . $config->get_string('title'); - $html .= '

' . - $title . ' (As above, Click on a Danbooru-run image page. (This also grabs the tags, rating & source!))'; + $html .= '

' . + $title . ' (As above, Click on a Danbooru-run image page. (This also grabs the tags/rating/source!))'; }